Skip to content

Commit

Permalink
Merge pull request #207 from yash19sinha/main
Browse files Browse the repository at this point in the history
footer changed on toggle
  • Loading branch information
avinash201199 authored Oct 7, 2023
2 parents bd8a2a1 + 3d5c754 commit 7dc8126
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 3 deletions.
6 changes: 3 additions & 3 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@

<body>

<nav class="navbar navbar-default navbar-expand-lg bg-white thinner">
<nav class="navbar navbar-default navbar-expand-lg bg-white thinner navcol">
<div class="container-fluid">
<div class="maintitle">
<img src="./img/logo.gif"
Expand Down Expand Up @@ -150,9 +150,9 @@ <h3><span id="d1"></span></h3>

<!-- FOOTER -->
<footer>
<div class="container-fluid my-class">
<div class="container-fluid my-class foot">
<div class="container">
<p class="textfooter">Made with 💝 by Avinash</p>
<p class="textfooter" style="margin-top: 2rem;">Made with 💝 by Avinash</p>

<div>
<ul style="color: white" class="social-links">
Expand Down
6 changes: 6 additions & 0 deletions jquery.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ function setLightTheme() {
$('body').css({ "background": "linear-gradient(to right, #191654, #43C6AC)" })
$('.digit').css({ "color": "white" })
$('#light').prop("checked", false);
$('.foot').css({ "background": "white" });


}

function setDarkTheme() {
Expand All @@ -14,6 +17,9 @@ function setDarkTheme() {
$('.digit').css({ "color": "rgb(216 137 31)" });
$('.buttons').css({ "border-color": "white" });
$('#light').prop("checked", true);
$('.foot').css({ "background": "#a7a7a7 " });


}

var prefersDarkThemeMql = window.matchMedia("(prefers-color-scheme: dark)");
Expand Down
2 changes: 2 additions & 0 deletions script.js
Original file line number Diff line number Diff line change
Expand Up @@ -280,3 +280,5 @@ setInterval(() => {
$id('d1').innerHTML = date;
}, 1000);



1 change: 1 addition & 0 deletions style.css
Original file line number Diff line number Diff line change
Expand Up @@ -418,6 +418,7 @@ footer {
align-items: center;
text-decoration-color: white;
text-emphasis-style: bold;

}

.social-links {
Expand Down

0 comments on commit 7dc8126

Please # to comment.