Re-release of Multistream Title Updater

Minor Printer.bot improvements
This commit is contained in:
nuttylmao
2025-09-13 21:12:33 +10:00
parent d95462f65a
commit c5e9890eb2
36 changed files with 1389 additions and 593 deletions
File diff suppressed because one or more lines are too long
+14
View File
@@ -0,0 +1,14 @@
<!DOCTYPE html>
<html lang="en">
<head>
<link rel="stylesheet" href="../../../.common/styles/global.css" />
<link rel="stylesheet" href="./style.css" />
</head>
<body>
</body>
</html>
<script src="script.js"></script>
+45
View File
@@ -0,0 +1,45 @@
//////////////////////
// GLOBAL VARIABLES //
//////////////////////
const sbAction = '';
/////////////////////////
// STREAMER.BOT EVENTS //
/////////////////////////
window.parent.sbClient.on('General.Custom', (response) => {
console.debug(response.data);
CustomEvent(response.data);
})
/////////////////
// PRINTER BOT //
/////////////////
//////////////////////
// HELPER FUNCTIONS //
//////////////////////
///////////////////////
// PAGE INTERACTIONS //
///////////////////////
///////////////////
// PAGE SETTINGS //
///////////////////
+3
View File
@@ -0,0 +1,3 @@
body {
margin: 1em;
}
+20
View File
@@ -0,0 +1,20 @@
<head>
<meta charset="UTF-8">
<link rel="stylesheet" href="../.common/styles/global.css" />
<link rel="icon" href="../../.resources/logo.png" type="image/png">
<title>nutty</title>
<style>
#dock-wrapper {
width: 100vw;
height: 100vh;
}
</style>
</head>
<body>
<iframe id="dock-wrapper"></iframe>
<script src="script.js"></script>
</body>
</html>
+16
View File
@@ -0,0 +1,16 @@
// Construct URL
const currentURL = window.location.href;
let baseURL = currentURL;
if (baseURL.endsWith("index.html"))
baseURL = baseURL.replace("index.html", "");
const configJson = "?config=" + baseURL + "config.json";
// Implement widget dock core
window.dockWrapper = document.getElementById('dock-wrapper');
dockWrapper.src = `../../.common/core/widget-dock-core${configJson}`;
dockWrapper.addEventListener('load', () => {
dockWrapper.contentWindow.content.src = baseURL + '/contents';
});