2018-05-05 15:34:13 +00:00
|
|
|
<!doctype html>
|
2017-08-03 16:32:30 +00:00
|
|
|
<html lang="en">
|
|
|
|
<head>
|
2018-05-05 15:34:13 +00:00
|
|
|
<!-- Required meta tags -->
|
2017-08-03 16:32:30 +00:00
|
|
|
<meta charset="utf-8">
|
|
|
|
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
2018-05-05 15:34:13 +00:00
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
2017-08-03 16:32:30 +00:00
|
|
|
|
2019-05-10 21:12:00 +00:00
|
|
|
<link rel="stylesheet" href="css/all.min.css"/>
|
2018-05-05 15:34:13 +00:00
|
|
|
|
|
|
|
<title>OTS - One Time Secrets</title>
|
2021-09-16 17:24:36 +00: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 16:32:30 +00:00
|
|
|
</head>
|
|
|
|
<body>
|
2019-05-10 21:12:00 +00:00
|
|
|
<div id="app"></div>
|
2018-05-05 15:34:13 +00:00
|
|
|
|
2019-05-10 21:12:00 +00:00
|
|
|
<script src="vars.js"></script>
|
|
|
|
<script src="app.js"></script>
|
2017-08-03 16:32:30 +00:00
|
|
|
</body>
|
|
|
|
</html>
|
|
|
|
|