-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
20 lines (20 loc) · 993 Bytes
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/5.1.0/css/bootstrap.min.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.4/css/all.min.css">
<link rel="stylesheet" src="css/light-theme.css" id="theme-stylesheet">
<title>Toggle Dark Mode</title>
</head>
<body>
<div class="container my-5">
<h1 class="mb-5">Toggle Dark Mode</h1>
<div class="mb-5" id="theme-toggler"></div>
<p class="mb-5">A smart JavaScript application that automatically inherits the user's prefers-color-scheme, but allows it to be overridden by the user and stored in the user's browser storage to enable site-wide preference and future visits.</p>
<p>Developed by <a href="https://robertd.co.uk">Robert Dixon</a></p>
</div>
<script src="js/script.js"></script>
</body>
</html>