Skip to content

Add dark mode toggle with localStorage support ✅ #11

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
74 changes: 51 additions & 23 deletions articles.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,20 @@
<html lang="en">
<head>
<title>jon atack - articles</title>
<meta charset="utf-8">
<base target="_blank">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta charset="utf-8" />
<base target="_blank" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link rel="stylesheet" type="text/css" href="/style.css" />
<script defer src="./script.js"></script>
</head>

<body>
<div id="dark-mode-toggle">
<label>
<input type="checkbox" id="darkModeSwitch" />
<span>Dark Mode</span>
</label>
</div>
<div id="content">
<div id="right">
<div class="list">
Expand All @@ -33,17 +40,20 @@
<li>
<a href="donate" target="_self">donate</a>
</li>
<li>
&nbsp;
</li>
<li>&nbsp;</li>
<li class="small">
style:<br>
<a href="https://basicbitch.software" class="small" target="_blank">basicbitch.software</a>
style:<br />
<a
href="https://basicbitch.software"
class="small"
target="_blank"
>basicbitch.software</a
>
</li>
</ul>
</div>
<div class="namecap">
<a href="/" target="_self">&nbsp;jon&nbsp;<br>atack</a>
<a href="/" target="_self">&nbsp;jon&nbsp;<br />atack</a>
</div>
</div>

Expand All @@ -54,32 +64,50 @@
<div class="title">Articles</div>
<ul>
<li>
<a href="/articles/how-to-review-pull-requests-in-bitcoin-core"
target="_self">How to Review Pull Requests in Bitcoin Core</a>
<a
href="/articles/how-to-review-pull-requests-in-bitcoin-core"
target="_self"
>How to Review Pull Requests in Bitcoin Core</a
>
</li>
<li>
<a href="/articles/how-to-contribute-pull-requests-to-bitcoin-core"
target="_self">How to Contribute Pull Requests to Bitcoin Core</a>
<a
href="/articles/how-to-contribute-pull-requests-to-bitcoin-core"
target="_self"
>How to Contribute Pull Requests to Bitcoin Core</a
>
</li>
<li>
<a href="/articles/how-to-compile-bitcoin-core-and-run-the-tests"
target="_self">How to Compile Bitcoin Core and Run the Tests</a>
<a
href="/articles/how-to-compile-bitcoin-core-and-run-the-tests"
target="_self"
>How to Compile Bitcoin Core and Run the Tests</a
>
</li>
<li>
<a href="/articles/books-for-bitcoin-core"
target="_self">Books and Resources for Bitcoin Core</a>
<a href="/articles/books-for-bitcoin-core" target="_self"
>Books and Resources for Bitcoin Core</a
>
</li>
<li>
<a href="/articles/on-reviewing-and-helping-those-who-do-it"
target="_self">On Reviewing, and Helping Those Who Do It</a>
<a
href="/articles/on-reviewing-and-helping-those-who-do-it"
target="_self"
>On Reviewing, and Helping Those Who Do It</a
>
</li>
<li>
<a href="/articles/using-alternative-p2p-networks-with-bitcoin-core"
target="_self">Using Alternative P2P Networks with your Bitcoin Core Node (and more)</a>
<a
href="/articles/using-alternative-p2p-networks-with-bitcoin-core"
target="_self"
>Using Alternative P2P Networks with your Bitcoin Core Node
(and more)</a
>
</li>
<li>
<a href="/articles/epictetus"
target="_self">Thoughts from Epictetus</a>
<a href="/articles/epictetus" target="_self"
>Thoughts from Epictetus</a
>
</li>
</ul>
</div>
Expand Down
8 changes: 8 additions & 0 deletions articles/books-for-bitcoin-core.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,17 @@
<base target="_blank">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" type="text/css" href="/style.css" />
<script defer src="../script.js"></script>

</head>

<body>
<div id="dark-mode-toggle">
<label>
<input type="checkbox" id="darkModeSwitch" />
<span>Dark Mode</span>
</label>
</div>
<div id="content">
<div id="right">
<div class="list">
Expand Down
9 changes: 9 additions & 0 deletions articles/decentralize.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,18 @@
<base target="_blank">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" type="text/css" href="/style.css" />
<script defer src="../script.js"></script>


</head>

<body>
<div id="dark-mode-toggle">
<label>
<input type="checkbox" id="darkModeSwitch" />
<span>Dark Mode</span>
</label>
</div>
<div id="content">
<div id="right">
<div class="list">
Expand Down
8 changes: 8 additions & 0 deletions articles/epictetus.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,17 @@
<base target="_blank">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" type="text/css" href="/style.css" />
<script defer src="../script.js"></script>

</head>

<body>
<div id="dark-mode-toggle">
<label>
<input type="checkbox" id="darkModeSwitch" />
<span>Dark Mode</span>
</label>
</div>
<div id="content">
<div id="right">
<div class="list">
Expand Down
8 changes: 8 additions & 0 deletions articles/how-to-compile-bitcoin-core-and-run-the-tests.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,17 @@
<base target="_blank">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" type="text/css" href="/style.css" />
<script defer src="../script.js"></script>

</head>

<body>
<div id="dark-mode-toggle">
<label>
<input type="checkbox" id="darkModeSwitch" />
<span>Dark Mode</span>
</label>
</div>
<div id="content">
<div id="right">
<div class="list">
Expand Down
8 changes: 8 additions & 0 deletions articles/how-to-contribute-pull-requests-to-bitcoin-core.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,17 @@
<base target="_blank">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" type="text/css" href="/style.css" />
<script defer src="../script.js"></script>

</head>

<body>
<div id="dark-mode-toggle">
<label>
<input type="checkbox" id="darkModeSwitch" />
<span>Dark Mode</span>
</label>
</div>
<div id="content">
<div id="right">
<div class="list">
Expand Down
8 changes: 8 additions & 0 deletions articles/how-to-review-pull-requests-in-bitcoin-core.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,17 @@
<base target="_blank">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" type="text/css" href="/style.css" />
<script defer src="../script.js"></script>

</head>

<body>
<div id="dark-mode-toggle">
<label>
<input type="checkbox" id="darkModeSwitch" />
<span>Dark Mode</span>
</label>
</div>
<div id="content">
<div id="right">
<div class="list">
Expand Down
9 changes: 9 additions & 0 deletions articles/on-reviewing-and-helping-those-who-do-it.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,18 @@
<base target="_blank">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" type="text/css" href="/style.css" />
<script defer src="../script.js"></script>


</head>

<body>
<div id="dark-mode-toggle">
<label>
<input type="checkbox" id="darkModeSwitch" />
<span>Dark Mode</span>
</label>
</div>
<div id="content">
<div id="right">
<div class="list">
Expand Down
8 changes: 8 additions & 0 deletions articles/reviewing-is-humming.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,17 @@
<base target="_blank">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" type="text/css" href="/style.css" />
<script defer src="../script.js"></script>

</head>

<body>
<div id="dark-mode-toggle">
<label>
<input type="checkbox" id="darkModeSwitch" />
<span>Dark Mode</span>
</label>
</div>
<div id="content">
<div id="right">
<div class="list">
Expand Down
43 changes: 26 additions & 17 deletions articles/reviewing-is-voting.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,20 @@
<html lang="en">
<head>
<title>jon atack - Reviewing is Voting</title>
<meta charset="utf-8">
<base target="_blank">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta charset="utf-8" />
<base target="_blank" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link rel="stylesheet" type="text/css" href="/style.css" />
<script defer src="../script.js"></script>
</head>

<body>
<div id="dark-mode-toggle">
<label>
<input type="checkbox" id="darkModeSwitch" />
<span>Dark Mode</span>
</label>
</div>
<div id="content">
<div id="right">
<div class="list">
Expand All @@ -33,33 +40,35 @@
<li>
<a href="/donate" target="_self">donate</a>
</li>
<li>
&nbsp;
</li>
<li>&nbsp;</li>
<li class="small">
style:<br>
<a href="https://basicbitch.software" class="small" target="_blank">basicbitch.software</a>
style:<br />
<a
href="https://basicbitch.software"
class="small"
target="_blank"
>basicbitch.software</a
>
</li>
</ul>
</div>
<div class="namecap">
<a href="/" target="_self">&nbsp;jon&nbsp;<br>atack</a>
<a href="/" target="_self">&nbsp;jon&nbsp;<br />atack</a>
</div>
</div>

<div id="entry_block">
<div class="entry">
<div class="date">Last updated: 9 February 2020</div>
<div class="body">
<p>This article has been renamed and moved!</p>
<p>Here's the link:</p>
<p>
This article has been renamed and moved!
</p>
<p>
Here's the link:
</p>
<p>
<a href="/articles/on-reviewing-and-helping-those-who-do-it"
target="_self">On Reviewing, and Helping Those Who Do It</a>
<a
href="/articles/on-reviewing-and-helping-those-who-do-it"
target="_self"
>On Reviewing, and Helping Those Who Do It</a
>
</p>
</div>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,16 @@
<base target="_blank">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" type="text/css" href="/style.css" />
<script defer src="../script.js"></script>
</head>

<body>
<div id="dark-mode-toggle">
<label>
<input type="checkbox" id="darkModeSwitch" />
<span>Dark Mode</span>
</label>
</div>
<div id="content">
<div id="right">
<div class="list">
Expand Down
Loading