mirror of
https://github.com/shaack/bootstrap-auto-dark-mode.git
synced 2025-12-06 07:42:03 +01:00
28 lines
1 KiB
HTML
28 lines
1 KiB
HTML
<!doctype html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet"
|
|
integrity="sha384-9ndCyUaIbzAi2FUVXJi0CjmCapSmO7SnpJef0486qhLnuZ2cdeRhO02iuK6FUUVM" crossorigin="anonymous">
|
|
<title>bootstrap-auto-dark-mode</title>
|
|
<script src="./src/bootstrap-auto-dark-mode.js"></script>
|
|
</head>
|
|
<body class="p-4">
|
|
|
|
<h1>bootstrap-auto-dark-mode</h1>
|
|
|
|
<p>This script automatically switches the Bootstrap theme between light and dark mode, depending on the system settings.</p>
|
|
|
|
<p>Use it by just including <code>bootstrap-auto-dark-mode.js</code> in your header.</p>
|
|
|
|
<code>
|
|
<script src="./src/bootstrap-auto-dark-mode.js"></script>
|
|
</code>
|
|
|
|
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/js/bootstrap.bundle.min.js"
|
|
integrity="sha384-geWF76RCwLtnZ8qwWowPQNguL3RmwHVBC9FhGdlKrxdiJJigb/j/68SIy3Te4Bkz"
|
|
crossorigin="anonymous"></script>
|
|
</body>
|
|
</html>
|