Skip to content
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

Added animated toggle switch with moon and sun emojis #743

Merged
merged 2 commits into from
Oct 9, 2021
Merged
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
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