Skip to content

Commit 29ff7b6

Browse files
author
Sanjeevi Rajan
committed
fix: fixed dark mode toggle in privacy and terms and conditions pages by importing app.js
1 parent 8141c1a commit 29ff7b6

2 files changed

Lines changed: 18 additions & 0 deletions

File tree

‎frontend/pages/privacy-policy.html‎

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,14 @@
33

44
<head>
55
<meta charset="UTF-8" />
6+
<script>
7+
(function () {
8+
const theme = localStorage.getItem('bibliodrift_theme');
9+
if (theme === 'night') {
10+
document.documentElement.setAttribute('data-theme', 'night');
11+
}
12+
})();
13+
</script>
614
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
715
<title>Privacy Policy | BiblioDrift</title>
816
<link rel="stylesheet" href="../css/style.css" />
@@ -64,6 +72,7 @@ <h2 style="margin-top: 1.5rem;">Contact</h2>
6472

6573
<script src="../js/config.js"></script>
6674
<script src="../js/footer.js"></script>
75+
<script src="../js/app.js"></script>
6776
<script src="../script/header-scroll.js"></script>
6877
</body>
6978

‎frontend/pages/terms-and-conditions.html‎

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,14 @@
33

44
<head>
55
<meta charset="UTF-8" />
6+
<script>
7+
(function () {
8+
const theme = localStorage.getItem('bibliodrift_theme');
9+
if (theme === 'night') {
10+
document.documentElement.setAttribute('data-theme', 'night');
11+
}
12+
})();
13+
</script>
614
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
715
<title>Terms & Conditions | BiblioDrift</title>
816
<link rel="stylesheet" href="../css/style.css" />
@@ -64,6 +72,7 @@ <h2 style="margin-top: 1.5rem;">Changes</h2>
6472

6573
<script src="../js/config.js"></script>
6674
<script src="../js/footer.js"></script>
75+
<script src="../js/app.js"></script>
6776
<script src="../script/header-scroll.js"></script>
6877
</body>
6978

0 commit comments

Comments
 (0)