2018-05-05 11:34:13 -04:00
|
|
|
<!doctype html>
|
2017-08-03 12:32:30 -04:00
|
|
|
<html lang="en">
|
|
|
|
<head>
|
2018-05-05 11:34:13 -04:00
|
|
|
<!-- Required meta tags -->
|
2017-08-03 12:32:30 -04:00
|
|
|
<meta charset="utf-8">
|
|
|
|
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
2018-05-05 11:34:13 -04:00
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
2017-08-03 12:32:30 -04:00
|
|
|
|
2019-05-10 17:12:00 -04:00
|
|
|
<link rel="stylesheet" href="css/all.min.css"/>
|
2018-05-05 11:34:13 -04:00
|
|
|
|
|
|
|
<title>OTS - One Time Secrets</title>
|
2021-09-16 13:24:36 -04:00
|
|
|
|
|
|
|
<script>
|
|
|
|
window.getTheme = () => localStorage.getItem('set-color-scheme') || (window.matchMedia('(prefers-color-scheme: light)').matches ? 'light' : 'dark')
|
|
|
|
|
|
|
|
window.refreshTheme = () => {
|
|
|
|
document.querySelector('html').setAttribute('mode', window.getTheme())
|
|
|
|
}
|
|
|
|
|
|
|
|
window.setTheme = (theme) => {
|
|
|
|
localStorage.setItem('set-color-scheme', theme)
|
|
|
|
window.refreshTheme()
|
|
|
|
}
|
|
|
|
|
|
|
|
// Very early load of theme definition to avoid flickering
|
|
|
|
document.addEventListener('DOMContentLoaded', () => window.refreshTheme())
|
|
|
|
</script>
|
2017-08-03 12:32:30 -04:00
|
|
|
</head>
|
|
|
|
<body>
|
2019-05-10 17:12:00 -04:00
|
|
|
<div id="app"></div>
|
2018-05-05 11:34:13 -04:00
|
|
|
|
2019-05-10 17:12:00 -04:00
|
|
|
<script src="vars.js"></script>
|
|
|
|
<script src="app.js"></script>
|
2017-08-03 12:32:30 -04:00
|
|
|
</body>
|
|
|
|
</html>
|
|
|
|
|