Frontend: lib.main.js replaces main.js

Signed-off-by: Fred Boniface <fred@fjla.uk>
This commit is contained in:
Fred Boniface 2023-01-23 18:46:33 +00:00
parent 3e66cdad8d
commit 67cc929158
8 changed files with 8 additions and 25 deletions

View File

@ -12,7 +12,7 @@
<link rel="stylesheet" type="text/css" href="./styles/boards.css"/>
<link rel="icon" type="image/svg+xml" href="./images/icon.svg"/>
<link rel="manifest" type="application/json" href="./manifest.json"/>
<script src="./js/main.js" defer></script>
<script src="./js/lib.main.js" defer></script>
<script src="./js/boards.js" defer></script>
<script src="./js/public-board.js" defer></script>
</head>

View File

@ -12,7 +12,7 @@
<link rel="icon" type="image/svg+xml" href="./images/icon.svg"/>
<link rel="manifest" type="application/json" href="./manifest.json"/>
<title>OwlBoard - Code Lookup</title>
<script src="./js/main.js" defer></script>
<script src="./js/lib.main.js" defer></script>
<script src="./js/find-code.js" defer></script>
</head>

View File

@ -10,6 +10,7 @@
<link rel="stylesheet" type="text/css" href="./styles/main.css"/>
<link rel="icon" type="image/svg+xml" href="./images/icon.svg"/>
<link rel="manifest" type="application/json" href="./manifest.json"/>
<!-- NO SCRIPTS LOADED - NOT REQUIRED AT PRESENT -->
<title>OwlBoard</title>
</head>

View File

@ -10,7 +10,7 @@
<link rel="stylesheet" type="text/css" href="./styles/main.css"/>
<link rel="icon" type="image/svg+xml" href="./images/icon.svg"/>
<link rel="manifest" type="application/json" href="./manifest.json"/>
<script src="./js/main.js" defer></script>
<script src="./js/lib.main.js" defer></script>
<script src="./js/index.js" defer></script>
<title>OwlBoard</title>
</head>

View File

@ -9,6 +9,7 @@
<link rel="stylesheet" type="text/css" href="./styles/main.css"/>
<link rel="icon" type="image/svg+xml" href="./images/icon.svg"/>
<link rel="manifest" type="application/json" href="./manifest.json"/>
<!-- NO SCRIPTS LOADED - NOT REQUIRED AT PRESENT -->
<title>OwlBoard - Report</title>
</head>
<body>

View File

@ -7,8 +7,10 @@ async function storageAvailable(type) {
x = '__storage_test__';
storage.setItem(x, x);
storage.getItem(x);
log(`lib.main.storageAvailable: ${type} is available`)
return true;
} catch (err) {
log(`lib.main.storageAvailable: ${type} is not available`)
return false;
}
}

View File

@ -1,21 +0,0 @@
// Loading Box
async function clearLoading() {
document.getElementById("loading").style = "display: none;";
}
async function showLoading() {
document.getElementById("loading").style = "display: block;";
}
async function setLoadingDesc(desc) {
document.getElementById("loading_desc").textContent = `${desc}`;
}
// Enable delays
const delay = ms => new Promise(res => setTimeout(res, ms));
// Log Helper
function log(msg) {
var time = new Date().toISOString();
console.log(`${time} - ${msg}`)
}

View File

@ -12,7 +12,7 @@
<link rel="icon" type="image/svg+xml" href="./images/icon.svg"/>
<link rel="manifest" type="application/json" href="./manifest.json"/>
<title>OwlBoard - Settings</title>
<script src="./js/main.js" defer></script>
<script src="./js/lib.main.js" defer></script>
<script src="./js/settings.js" defer></script>
</head>