Skip to content

Commit eada136

Browse files
committed
Dark theme style tag before </body> (#63)
Signed-off-by: Daniell Mesquita <[email protected]>
1 parent 5958397 commit eada136

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

1.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,9 @@ zeronet clone
1616
<zeronet> <clearnet> tags
1717
vanity-gen address
1818

19-
Vue Material tabs
19+
links to other frameworkjs places
20+
suggest to download ZeroNet
21+
link on bootstrap material
2022

2123
https://css-tricks.com/now-ever-might-not-need-jquery/
2224

index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@
5555

5656
<zeronet><div class="area" style="background:#1E2429;color:#8e9194"><center><img src="img/zeronet.png"/><h1 style="font-family:'Text Me One'">Hello ZeroNet users_</h1></center>
5757
<p style="color:#8e9194">FrameworkJS have exclusive features to power-up your project on ZeroNet.</p>
58-
<p style="color:#8e9194">We detected that you is visiting this site in ZeroNet. This site is also available on clearnet, but on clearnet you can't see this message. How we can detect it? See the FrameworkJS's features for ZeroNet:</p>
58+
<p style="color:#8e9194">We detected that you are visiting this site in ZeroNet. This site is also available on clearnet, but on clearnet you can't see this message. How we can detect it? See the FrameworkJS's features for ZeroNet:</p>
5959
<ul>
6060
<li>Detect when site visitor is on ZeroNet or clearnet, and change the site display accourding to ZeroNet/clearnet (Putting elements inside <code>&lt;zeronet&gt;</code> or <code>&lt;clearnet&gt;</code> tags - thanks to Daniell and Nofish).</li>
6161
<li>ZeroFrame API</li>

js/page-common.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,10 +55,10 @@ zeroFrame.cmd("serverInfo", {}, (server_info) => {
5555
// Depending on user theme settings, set the theme
5656
switch(server_info.user_settings.theme) {
5757
case "light":
58-
body.innerHTML = '<style>lighttheme</style>' + body.innerHTML
58+
body.innerHTML += '' + body.innerHTML
5959
break
6060
case "dark":
61-
body.innerHTML = '<style>darktheme</style>' + body.innerHTML
61+
body.innerHTML += '<link rel="stylesheet" type="text/css" href="css/dark-common.css">'
6262
break
6363
default:
6464
console.log("Theming not supported. Please upgrade your ZeroNet version.")

0 commit comments

Comments
 (0)