Skip to content

Commit

Permalink
Merge pull request #743 from anmolg84/anmol-gupta
Browse files Browse the repository at this point in the history
Added animated toggle switch with moon and sun emojis
  • Loading branch information
fineanmol authored Oct 9, 2021
2 parents 52dfe2a + 9ba808a commit 1187862
Show file tree
Hide file tree
Showing 2 changed files with 359 additions and 283 deletions.
19 changes: 17 additions & 2 deletions Contributors.html
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@
<span class="heading">CONTRIBUTORS </span>

<div class="heart"></div>
<label class="theme-switch" for="checkbox">
<!-- <label class="theme-switch" for="checkbox">
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-sun"
viewBox="0 0 16 16">
Expand All @@ -108,7 +108,11 @@
<input type="checkbox" class="checkbox" id="checkbox" />
<div class="slider round"></div>
</label>
</label> -->
<div class="tdnn">
<div class="moon">
</div>
</div>
<p class=" rubberBand delay-4s">Add yourself to the list if you contribute.</p>
<hr style="width:80%">
</div>
Expand Down Expand Up @@ -354,7 +358,10 @@
<a class="box-item" href="https://github.com/NEELAKANTAGOUDAPATIL"><span>NEELAKANTA GOUDA PATIL</span></a>
<a class="box-item" href="https://github.com/shashishekhar11"><span>shashishekhar11</span></a>
<a class="box-item" href="https://github.com/H-M-Noman123"><span>H-M-Noman123</span></a>

<a class="box-item" href="https://github.com/barunipriyats/"><span>Baruni Priya T S</span></a>
<a class="box-item" href="https://github.com/anmolg84"><span>Anmol Gupta</span></a>




Expand Down Expand Up @@ -474,6 +481,14 @@
<div class="container">
<div id="stats" style="margin-top: 1rem;"></div>
</div>
<script>
$('.tdnn').click(function () {
$("body").toggleClass('light');
$(".moon").toggleClass('sun');
$(".tdnn").toggleClass('day');
});
</script>
<script type="text/javascript" src="https://code.jquery.com/jquery-3.1.0.min.js"></script>
</body>

</html>
Loading

0 comments on commit 1187862

Please sign in to comment.