feat(webui): add footer
Also make it automatically open the web when you launch the app.
This commit is contained in:
@ -80,6 +80,8 @@ getLessonButton.addEventListener('click', async () => {
|
||||
for (const [id, video] of Object.entries(ids)) {
|
||||
promises.push(async () => {
|
||||
const checkbox = document.querySelector(`#${id}`);
|
||||
// Disable the checkbox since the user can't download the same video twice
|
||||
checkbox.disabled = true;
|
||||
if (!checkbox.checked) {
|
||||
return;
|
||||
}
|
||||
|
||||
@ -15,6 +15,20 @@ header {
|
||||
background-color: #ffffff50;
|
||||
}
|
||||
|
||||
footer {
|
||||
padding: 20px 0px;
|
||||
bottom: 0;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
position: absolute;
|
||||
width: 100%;
|
||||
background-color: #222;
|
||||
}
|
||||
|
||||
footer a {
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
.block {
|
||||
width: fit-content;
|
||||
border: 1px solid #fff;
|
||||
|
||||
@ -1,3 +1,4 @@
|
||||
<!-- Bro I wish I could use React or other things instead of document.createElement and element.innerHTML += all the times -->
|
||||
<!DOCTYPE html>
|
||||
<head>
|
||||
<link rel="preconnect" href="https://fonts.googleapis.com">
|
||||
@ -48,5 +49,8 @@
|
||||
</div>
|
||||
</div> -->
|
||||
</div>
|
||||
<footer>
|
||||
<span>Developed by <a href="https://git.tretrauit.me/tretrauit" target="_blank">@tretrauit</a></span>
|
||||
</footer>
|
||||
<script src="assets/index.js"></script>
|
||||
</body>
|
||||
Reference in New Issue
Block a user