deemixer/webui/public/index.ejs

56 lines
1.5 KiB
Plaintext
Raw Permalink Normal View History

2020-04-07 22:19:27 +00:00
<!DOCTYPE html>
<html class="h-screen" data-theme="dark" dir="ltr" lang="en">
2020-05-08 20:02:08 +00:00
<head>
<meta charset="utf-8" />
2020-05-08 20:02:08 +00:00
<title>deemix</title>
<link href="favicon.ico" rel="shortcut icon" />
<meta
content="width=device-width, initial-scale=1, maximum-scale=1, minimum-scale=1, user-scalable=0"
name="viewport"
/>
<style>
body {
background: hsl(240, 10%, 8%);
color: hsl(0, 0%, 93%);
}
#missingBundle {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
margin: auto;
width: 50%;
padding: 24px;
text-align: center;
font-size: 1.2em;
font-family: sans-serif;
background-color: hsl(240, 12%, 16%);
border-radius: 10px;
2022-02-05 00:12:34 +00:00
display: none;
}
</style>
<script>location.base = "<%= locationBase %>"</script>
2020-05-08 20:02:08 +00:00
<script>
if (localStorage.getItem('selectedTheme')) {
document.documentElement.setAttribute('data-theme', localStorage.getItem('selectedTheme'))
2020-05-08 20:02:08 +00:00
}
</script>
</head>
<body class="w-full h-full overflow-hidden font-sans bg-background-main text-foreground">
<div id="app"></div>
<p id="missingBundle">
If you're reading this it means that <code>js/bundle.js</code> isn't loading correctly.<br/>
Make sure the file is present, if not build the webui.
</p>
2020-05-08 20:02:08 +00:00
</body>
2022-02-05 00:12:34 +00:00
<script>
setTimeout(()=>{
let missingBundle = document.getElementById('missingBundle')
if (missingBundle) missingBundle.style.display = 'block'
}, 3000)
</script>
2021-01-31 15:55:37 +00:00
<script src="js/bundle.js"></script>
</html>