Skip to content

Commit f5939b6

Browse files
committed
ZeroNet tab in Elements.html (#76)
Signed-off-by: Daniell Mesquita <[email protected]>
1 parent b1a56ba commit f5939b6

File tree

3 files changed

+40
-14
lines changed

3 files changed

+40
-14
lines changed

1.txt

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
closeable tabs
2+
13
.color-bg {background:#00A185}
24
.color-txt {color:#00A185}
35
.gradient-bg {
@@ -13,23 +15,16 @@ C:\Users\Notebook Positivo\fmwk
1315

1416
docs:
1517
zeronet clone
18+
zeronet tab in elements
1619
<zeronet> <clearnet> tags
1720
vanity-gen address
1821

1922
links to other frameworkjs places
2023
suggest to download ZeroNet
2124
link on bootstrap material
2225

23-
https://css-tricks.com/now-ever-might-not-need-jquery/
24-
25-
https://github.com/vuetifyjs/vuetify-loader
26-
27-
<meta name="theme-color" content="#004863">
28-
2926
https://yoast.com/dev-blog/safari-pinned-tab-icon-mask-icon/
3027

31-
zeronet tab in elements
32-
3328
modification date
3429

3530
header menu
@@ -52,7 +47,12 @@ fix error in tiled list
5247
build instructions
5348
Upgr guide
5449

55-
zn download
56-
5750
https://github.com/donnemartin/system-design-primer
58-
ready-sites: Plasnerd, P crpt, Gittex, Notestick, ultracreator, YM
51+
ready-sites: Eventlr, Plasnerd, Floflis
52+
P crpt, Gittex, Notestick, ultracreator, YM
53+
54+
https://css-tricks.com/now-ever-might-not-need-jquery/
55+
56+
https://github.com/vuetifyjs/vuetify-loader
57+
58+
<meta name="theme-color" content="#004863">

elements.html

Lines changed: 28 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,10 @@ <h1><i class="material-icons">widgets</i> Elements</h1>
105105
<li class="nav-item">
106106
<a aria-controls="css" aria-selected="false" class="nav-link" data-toggle="tab" href="#css" id="css-tab" role="tab"><i class="material-icons">format_paint</i> CSS</a>
107107
</li>
108-
<div class="nav-tabs-indicator" style="left: 0px; right: 1238.82px;"></div><div class="nav-tabs-indicator" style="left: 0px; right: 1238.82px;"></div><div class="nav-tabs-indicator" style="left: 0px; right: 1238.82px;"></div></ul>
108+
<li class="nav-item">
109+
<a aria-controls="zerotb" aria-selected="false" class="nav-link" data-toggle="tab" href="#zerotb" id="zerotb-tab" role="tab"><i class="material-icons">format_paint</i> ZeroNet</a>
110+
</li>
111+
<div class="nav-tabs-indicator" style="left: 0px; right: 1238.82px;"></div><div class="nav-tabs-indicator" style="left: 0px; right: 1238.82px;"></div><div class="nav-tabs-indicator" style="left: 0px; right: 1238.82px;"></div><div class="nav-tabs-indicator" style="left: 0px; right: 1238.82px;"></div></ul>
109112
</div><div class="tab-content" id="justifiedTabContent">
110113
<div aria-labelledby="pages-tab" class="tab-pane fade active show" id="pages" role="tabpanel">
111114
<div class="nav-tabs-scrollable">
@@ -125,7 +128,7 @@ <h1><i class="material-icons">widgets</i> Elements</h1>
125128
<li class="nav-item">
126129
<a aria-controls="navigation" aria-selected="false" class="nav-link" data-toggle="tab" href="#navigation" id="navigation-tab" role="tab"><i class="material-icons">view_list</i> Navigation</a>
127130
</li>
128-
<div class="nav-tabs-indicator" style="left: 0px; right: 1238.82px;"></div><div class="nav-tabs-indicator" style="left: 0px; right: 1238.82px;"></div><div class="nav-tabs-indicator" style="left: 0px; right: 1223.33px;"></div><div class="nav-tabs-indicator" style="left: 0px; right: 1223.33px;"></div></ul>
131+
<div class="nav-tabs-indicator" style="left: 0px; right: 1238.82px;"></div><div class="nav-tabs-indicator" style="left: 0px; right: 1238.82px;"></div><div class="nav-tabs-indicator" style="left: 0px; right: 1223.33px;"></div><div class="nav-tabs-indicator" style="left: 0px; right: 1223.33px;"></div><div class="nav-tabs-indicator" style="left: 0px; right: 1223.33px;"></div></ul>
129132
</div>
130133
<div class="tab-content" id="justifiedTabContent">
131134
<div aria-labelledby="reading-tab" class="tab-pane fade active show" id="reading" role="tabpanel"><h1><i class="material-icons">format_color_text</i> Headings</h1><h1>Heading 1</h1><h2>Heading 2</h2><h3>Heading 3</h3><h4>Heading 4</h4><h5>Heading 5</h5><h6>Heading 6</h6><br><textarea onclick="this.focus();this.select()" readonly="readonly" style="margin:6px 41px;width: 392px;height: 44px;">&lt;h1&gt;Heading 1&lt;/h1&gt;
@@ -409,6 +412,29 @@ <h4 class="color">Heading 4</h4>
409412
<h5 class="color">Heading 5</h5>
410413
<h6 class="color">Heading 6</h6><span class="badge color">Badge</span><p class="color">Paragraph</p>
411414
<span class="color">Span</span></div>
415+
<div aria-labelledby="zerotb-tab" class="tab-pane fade" id="zerotb" role="tabpanel"><p>FrameworkJS is the world's first click-to-clone/start web framework! Also, it is the first working and near-complete framework/boilerplate on ZeroNet.</p><p>There are some exclusive and funny things for ZeroNet.</p>
416+
<h1><i class="material-icons">add_circle</i> Zite clone</h1>
417+
<p>To make your users able to have a clone of your zite.</p>
418+
<p>Did you saw the "<a onclick="clone()" title="You can also see it working by clicking here! Hehe :D"><i class="material-icons">add_circle</i> Create your own zite</a>" button? It gives you a personalized clone of FrameworkJS. You can also make your zite (ZeroNet sites are called zites) cloneable by putting the following value on your element:</p>
419+
<code>onclick="clone()"</code>
420+
<p>It calls the following function:</p>
421+
<blockquote>/*Clones FrameworkJS and opens your own project*/
422+
function clone() {
423+
return zeroPage.getSiteInfo().then(function(siteInfo){zeroPage.cmd("siteClone", [siteInfo.address])});
424+
}</blockquote>
425+
<h2><i class="material-icons">add_circle</i> Custom clone</h2>
426+
<p>You can create many custom clonning functions as you need, to clone a specific zite or a merged one. You can use a string instead of static address.</p>
427+
<p>The bellow example, is also included in page-common.js:</p>
428+
<blockquote>/*Clones the zite you want. You can use this as model to create your own clonning functions*/
429+
function cloneselect() {
430+
return zeroPage.cmd("siteClone", ["1Fmwk685eaX7GjoQ7JKo3QvywizGfnYRCB"]);
431+
}</blockquote>
432+
<p>An good example of clonning is Git Center, that clones a git template merged zite, to create your own repo.</p>
433+
<h1><i class="material-icons">view_list</i> Change display according to location: ZeroNet or Clearnet</h1>
434+
<p>Want to avoid confusions of your site on Internet (WWW/Clearnet) and ZeroNet? Want to say something that applies for Clearnet but not for ZeroNet, or else?</p>
435+
<p>Simply, use <code>&lt;clearnet&gt;</code> or <code>&lt;zeronet&gt;</code> tags, and anything included on those tags will be shown or hidden according to the location.</p>
436+
<h1>Other things</h1>
437+
<p>To learn more about ZeroNet development, visit the <a href="https://zeronet.io/docs/" target="blank">Official Documentation</a> or <a href="https://daniellmesquita.gitbook.io/the-truth-about-zeronet/" target="blank">The truth about ZeroNet</a>.</p></div>
412438

413439

414440
</div>

index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,7 @@ <h1 id="comments"><i class="material-icons">comment</i> Comments <span class="ba
302302

303303
<footer>
304304
<div class="footer-shadow"></div>
305-
<center>Last update in 11/11/2018 at 11:59</center>
305+
<center>Last update in 11/11/2018 at 17:37</center>
306306
<img src="img/seal-1.png" width="167px" height="94px" style="-webkit-user-drag:element;margin-right: 5px;"> <a href="https://plasnerd.github.io/PEHTML/" target="blank" class="no-opacity"><img src="https://plasnerd.github.io/PEHTML/img/seal-2.png" width="167px" height="94px" title="Built with PEHTML" style="-webkit-user-drag:element"></a>
307307
<div class="social-icons"><a href="https://github.com/Plasnerd/Framework.js/" target="blank"><img src="img/social/github.svg" width="40px" height="40px" title="See first the news and improve FrameworkJS in GitHub" alt="GitHub"></a><!-- <a href="https://facebook.com/" target="blank"><img src="img/social/facebook.svg" width="40px" height="40px" title="Like us and receive latest news feed about FrameworkJS progress and other development tools" alt="Facebook"></a>--><!--<a href="https://twitter.com/" target="blank"><img src="img/social/twitter.svg" width="40px" height="40px" title="Follow us and receive latest news feed about FrameworkJS progress and other development tools" alt="Twitter"></a>--><!--<a href="https://.deviantart.com" target="blank"><img src="img/social/deviantart.svg" width="40px" height="40px" title="Follow us and receive latest backgrounds, designs and apps" alt="Deviantart"></a>--></div><div class="social-buttons"></div>
308308
<copyright><center>(c) 2014-2018 <a href="https://plasnerd.github.io/" target="blank"><small>Plasnerd</small></a>. Thanks to <b>Jesus</b>, our Lord.</center></copyright>

0 commit comments

Comments
 (0)