Skip to content

Commit

Permalink
Added prompt before unload by default and fixed indentation on JSON f…
Browse files Browse the repository at this point in the history
…iles
  • Loading branch information
dave9123 committed Oct 26, 2024
1 parent c9c2f1f commit 3d96192
Show file tree
Hide file tree
Showing 19 changed files with 22,606 additions and 22,583 deletions.
5 changes: 2 additions & 3 deletions index.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { createBareServer } from '@tomphttp/bare-server-node';
import { createBareServer } from '@nebula-services/bare-server-node';
import express from "express";
import { createServer } from "node:http";
import { SocksProxyAgent } from 'socks-proxy-agent';
Expand All @@ -9,8 +9,7 @@ import { hostname } from "node:os";
import dotenv from 'dotenv';
import { fileURLToPath } from "url";
const publicPath = fileURLToPath(new URL("./static/", import.meta.url));
const bare = createBareServer('/bare/', {
});
const bare = createBareServer('/bare/', {});
const app = express();
dotenv.config();
app.use(express.static(publicPath));
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
"author": "",
"license": "GPL-3.0-or-later",
"dependencies": {
"@nebula-services/bare-server-node": "^2.0.4",
"@titaniumnetwork-dev/ultraviolet": "^1.0.11",
"@tomphttp/bare-server-node": "^2.0.1",
"dotenv": "^16.3.1",
Expand Down
2 changes: 1 addition & 1 deletion static/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@
<meta name="description" content="Math explained in easy language, plus puzzles, games, worksheets and an illustrated dictionary. For K-12 kids, teachers and parents.">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="fractions.css">
<script async src="https://arc.io/widget.min.js#i2pjQQrd"></script>
</head>
<iframe src="main.html"></iframe>
</body>
<script src="worksheets/api/lod.js"></script>
<script src="worksheets/api/unlod.js"></script>
<script src="worksheets/api/abcc.js"></script>
</html>
4 changes: 2 additions & 2 deletions static/worksheets/api/abc.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ document.getElementById("abc").onclick = function () {
var currentURL = window.location.href;
var baseURL = currentURL.substring(0, currentURL.lastIndexOf("/") + 1);
var indexURL = baseURL + "index.html";

win = window.open();
win.document.body.style.margin = "0";
win.document.body.style.height = "100vh";
Expand All @@ -15,4 +15,4 @@ document.getElementById("abc").onclick = function () {
iframe.allow = "fullscreen";
iframe.src = indexURL; // Load index.html instead of the current URL
win.document.body.appendChild(iframe);
};
};
Loading

0 comments on commit 3d96192

Please sign in to comment.