include popup HTML CSS requirements

This commit is contained in:
buzz-lightsnack-2007 2024-05-12 20:18:39 +08:00
parent 5f97e572a5
commit 6cf97c803e
2 changed files with 11 additions and 13 deletions

View file

@ -1,13 +1,12 @@
<html>
<head>
<script src="../../styles/external/materialize/js/materialize.js"></script>
<script src="../../scripts/pages/popup.js" type="module"></script>
<link href="../../styles/popup.css" rel="stylesheet" type="text/css" />
</head>
<body class="loading">
<label class="flow-text" for="loading"></label>
<div class="progress" data-value="progress">
<div class="indeterminate"></div>
</div>
</body>
<head>
<script src="../../styles/external/materialize/js/materialize.js"></script>
<script src="../../scripts/pages/popup.js" type="module"></script>
</head>
<body class="loading">
<label class="flow-text" for="loading"></label>
<div class="progress" data-value="progress">
<div class="indeterminate"></div>
</div>
</body>
</html>

View file

@ -12,7 +12,7 @@ import logging from "/scripts/logging.js";
class Page_Popup extends Page {
constructor() {
super();
super({"headers": {"CSS": [`/styles/popup.css`]}});
this.content();
this.background();
this.events();
@ -23,7 +23,6 @@ class Page_Popup extends Page {
observe((changes) => {
this.update();
this.switch();
// First, update site data but retain the URL.
});
}