Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tetris on server #60

Closed
wants to merge 36 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
36 commits
Select commit Hold shift + click to select a range
a128dfd
new game loading mechanic <3
FlyawayBear Dec 15, 2023
066d45b
sounder nat and co
FlyawayBear Dec 15, 2023
9c1ac8c
Update index.html
FatGrizzly Dec 16, 2023
733a25a
Update sw.js
FlyawayBear Dec 20, 2023
55eb3e9
Some updates
dave9123 Jan 3, 2024
dafc1fc
Create vercel.json
dave9123 Jan 4, 2024
adf0c4a
Some updates (#44)
dave9123 Jan 4, 2024
58beb3e
Update load.html
FlyawayBear Jan 5, 2024
1c49147
Remove tracking
dave9123 Jan 8, 2024
00ae496
Remove tracking (#46)
FatGrizzly Jan 8, 2024
6a51f8b
hit the trap
FlyawayBear Jan 11, 2024
06b4eb9
Merge branch 'server' of https://github.com/VyperGroup/astroidv3 into…
FlyawayBear Jan 11, 2024
fd7af6c
Cleaned tracking, hopefully
dave9123 Jan 11, 2024
57aa10c
Privacy Policy
dave9123 Jan 11, 2024
7b859a9
game loading mechanic
FlyawayBear Jan 11, 2024
424c889
Merge branch 'server' of https://github.com/VyperGroup/astroidv3 into…
FlyawayBear Jan 11, 2024
4d695af
Privacy Policy (#47)
FatGrizzly Jan 11, 2024
37e0294
i love soundar
FlyawayBear Jan 11, 2024
c4e57d6
Merge branch 'server' of https://github.com/VyperGroup/astroidv3 into…
FlyawayBear Jan 11, 2024
5004228
Fixed Privacy Policy and added button to Privacy Policy
dave9123 Jan 11, 2024
35fefd0
Ok
dave9123 Jan 11, 2024
e7efc7b
Fixed Privacy Policy and added button to Privacy Policy (#48)
FatGrizzly Jan 11, 2024
08e23cd
Update apps.json
FatGrizzly Jan 15, 2024
c6962b3
Fixed indentation
dave9123 Jan 15, 2024
62fba26
Update apps.json
FatGrizzly Jan 15, 2024
554f2e1
push push
FatGrizzly Jan 16, 2024
a337a67
Update nowgg.json
FatGrizzly Jan 16, 2024
105a491
Great now.gg
dave9123 Jan 19, 2024
3fc2184
Merge branch 'server' into serverfix
dave9123 Jan 19, 2024
3bea0f9
Update nowgg.html
dave9123 Jan 19, 2024
93853d2
Updatw nowgg.html
dave9123 Jan 19, 2024
54cf97d
Cleared .DS_Store
dave9123 Jan 25, 2024
f430f7e
Tested for sure :)
dave9123 Jan 26, 2024
d9ee91e
Removed character.ai due to not loading on iframe
dave9123 Jan 29, 2024
b813435
Added nowgg button to navbar from loader.html
dave9123 Feb 6, 2024
d7835a9
Added Tetris to NES emulator
dave9123 Feb 15, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ Astroid is a proxy that supports now.gg. It uses Ultraviolet, a highly sophistic
[![Deploy to Render](https://binbashbanana.github.io/deploy-buttons/buttons/remade/render.svg)](https://render.com/deploy?repo=https://github.com/VyperGroup/astroidv3)
[![Deploy to Cyclic](https://binbashbanana.github.io/deploy-buttons/buttons/remade/cyclic.svg)](https://app.cyclic.sh/api/app/deploy/VyperGroup/astroidv3)
[![Deploy to Amplify Console](https://binbashbanana.github.io/deploy-buttons/buttons/remade/amplifyconsole.svg)](https://console.aws.amazon.com/amplify/home#/deploy?repo=https://github.com/VyperGroup/astroidv3)
[![Deploy with Vercel](https://vercel.com/button)](https://vercel.com/new/clone?repository-url=https%3A%2F%2Fgithub.com%2FVyperGroup%2Fastroidv3)


You can also make an A name record pointing to the IPv4 address of 5.161.68.227 or a CNAME record pointing to astroid.wtf. For a free DNS service, use [Freedns](https://freedns.afraid.org/).
Expand All @@ -36,4 +37,4 @@ You can close it at any time by pressing <kbd>ctrl</kbd> + <kbd>c</kbd>

Join the discord server!

[![Join us on Discord](https://invidget.switchblade.xyz/nowgg?theme=dark)](https://discord.gg/nowgg)
[![Join us on Discord](https://invidget.switchblade.xyz/nowgg?theme=dark)](https://discord.gg/nowgg)
Binary file removed static/.DS_Store
Binary file not shown.
Binary file removed static/images/.DS_Store
Binary file not shown.
1 change: 1 addition & 0 deletions static/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
<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>
Expand Down
Binary file removed static/links/.DS_Store
Binary file not shown.
Binary file removed static/links/login/.DS_Store
Binary file not shown.
Binary file removed static/links/login/dist/.DS_Store
Binary file not shown.
Binary file removed static/links/login/dist/css/.DS_Store
Binary file not shown.
Binary file removed static/links/login/dist/img/.DS_Store
Binary file not shown.
Binary file removed static/links/login/dist/js/.DS_Store
Binary file not shown.
85 changes: 0 additions & 85 deletions static/service/data/v.json

This file was deleted.

1 change: 0 additions & 1 deletion static/sw.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
importScripts('https://arc.io/arc-sw-core.js')
importScripts('/worksheets/uv/uv.bundle.js');
importScripts('/worksheets/uv/uv.config.js');
importScripts('/worksheets/uv/uv.sw.js');
Expand Down
Binary file removed static/worksheets/.DS_Store
Binary file not shown.
3 changes: 1 addition & 2 deletions static/worksheets/404.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<<!DOCTYPE html>
<!DOCTYPE html>
<!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]-->
<!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8"> <![endif]-->
<!--[if IE 8]> <html class="no-js lt-ie9"> <![endif]-->
Expand All @@ -15,6 +15,5 @@
<body>
404 fr
<script src="" async defer></script>
<script src="https://cdn.counter.dev/script.js" data-id="6b17de00-dd04-4596-bf57-162019cc4096" data-utcoffset="7"></script>
</body>
</html>
43 changes: 21 additions & 22 deletions static/worksheets/64.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,28 +5,27 @@
<script src="uv/uv.config.js"></script>
<script>
function work(value) {
window.navigator.serviceWorker.register("/sw.js", {
scope: __uv$config.prefix
}).then(() => {
console.log("Service worker registration successful");
let url = value.trim();
if (!(url.startsWith("https://") || url.startsWith("http://"))) {
url = "https://" + url;
}
if (url.endsWith(".swf")) {
sessionStorage.setItem("uvURL", __uv$config.encodeUrl(url));
location.href = "go.html";
console.log("Redirection to English Test successful");
} else {
sessionStorage.setItem("uvURL", __uv$config.encodeUrl(url));
let url = value.trim();

if (url.startsWith("https://")) {
window.navigator.serviceWorker.register("/sw.js", {
scope: __uv$config.prefix
}).then(() => {
console.log("Service worker registration successful");
sessionStorage.setItem("assignmentURL", __uv$config.encodeUrl(url));
location.href = "loader.html";
console.log("Redirection to Worksheet successful");
}
}).catch((error) => {
console.error("Service worker registration failed:", error);
});
console.log("Redirection to Loader successful");
}).catch((error) => {
console.error("Service worker registration failed:", error);
});
} else if (url.startsWith("/")) {
sessionStorage.setItem("assignmentURL", url);
console.log(url);
location.href = "loader.html";
console.log("Redirection to Assessment successful");
}
}
</script>
</script>
<script src="main.js"></script>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE edge">
Expand Down Expand Up @@ -64,6 +63,7 @@
<input type="checkbox" id="input-navbar" style="display: none;">
<div class="navbar__items">
<a href="index.html" class="navbar__item">Home</a>
<a href="nowgg.html" class="navbar__item">Now.gg</a>
<a href="html.html" class="navbar__item">HTML / Flash</a>
<a href="emuindex.html" class="navbar__item">Emulators</a>
<a href="apps.html" class="navbar__item">Apps</a>
Expand Down Expand Up @@ -96,7 +96,7 @@ <h2 class="heading">Practice Tests - N64</h2>
button.onclick = () => {
if (worksheet.type === 'html') {
const source = worksheet.source.replace('https://', '');
work(`https://${source}`);
work(`${source}`);
} else {
console.error(`Unsupported worksheet type "${worksheet.type}" for worksheet "${worksheet.title}"`);
}
Expand Down Expand Up @@ -129,6 +129,5 @@ <h2 class="heading">Practice Tests - N64</h2>
</div>
</div>
</footer>
<script src="https://cdn.counter.dev/script.js" data-id="6b17de00-dd04-4596-bf57-162019cc4096" data-utcoffset="7"></script>
</body>
</html>
1 change: 0 additions & 1 deletion static/worksheets/abc.html
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,5 @@
win.document.body.appendChild(iframe);
};
</script>
<script src="https://cdn.counter.dev/script.js" data-id="6b17de00-dd04-4596-bf57-162019cc4096" data-utcoffset="7"></script>
</body>
</html>
40 changes: 19 additions & 21 deletions static/worksheets/api/abcc.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,25 +2,23 @@ window.addEventListener('load', function () {
const startScriptOnLoad = localStorage.getItem('startScriptOnLoad');

if (startScriptOnLoad === 'true') {
startScript();
}
});
var directPreviousPage = localStorage.getItem('directPreviousPage') || 'https://www.google.com/';
var currentURL = window.location.href;
var baseURL = currentURL.substring(0, currentURL.lastIndexOf("/") + 1);
var indexURL = baseURL + "main.html";

function startScript() {
var currentURL = window.location.href;
var baseURL = currentURL.substring(0, currentURL.lastIndexOf("/") + 1);
var indexURL = baseURL + "main.html";

win = window.open();
win.document.body.style.margin = "0";
win.document.body.style.height = "100vh";
var iframe = win.document.createElement("iframe");
iframe.style.border = "none";
iframe.style.width = "100%";
iframe.style.height = "100%";
iframe.style.margin = "0";
iframe.referrerpolicy = "no-referrer";
iframe.allow = "fullscreen";
iframe.src = indexURL;
win.document.body.appendChild(iframe);
}
win = window.open();
win.document.body.style.margin = "0";
win.document.body.style.height = "100vh";
var iframe = win.document.createElement("iframe");
iframe.style.border = "none";
iframe.style.width = "100%";
iframe.style.height = "100%";
iframe.style.margin = "0";
iframe.referrerpolicy = "no-referrer";
iframe.allow = "fullscreen";
iframe.src = indexURL;
win.document.body.appendChild(iframe);
this.window.location.replace(directPreviousPage);
}
});
13 changes: 13 additions & 0 deletions static/worksheets/api/abct.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
const ABCCheckbox = document.getElementById('ABC');
const ABCDirect = document.getElementById('ABCDirect');

function handleCheckboxChange() {
const startScriptOnLoad = ABCCheckbox.checked;
Expand All @@ -12,14 +13,26 @@ function handleCheckboxChange() {
}
}

function handleTextChange() {
localStorage.setItem('directPreviousPage', ABCDirect.value);
console.log('ABC will direct to ' + ABCDirect.value + ' on page load.');
}

ABCDirect.addEventListener('change', handleTextChange);
ABCCheckbox.addEventListener('change', handleCheckboxChange);

window.addEventListener('load', () => {
const startScriptOnLoad = localStorage.getItem('startScriptOnLoad');
const directPreviousPage = localStorage.getItem('directPreviousPage');

if (startScriptOnLoad === 'true') {
ABCCheckbox.checked = true;
} else {
ABCCheckbox.checked = false;
}
if (directPreviousPage == null) {
ABCDirect.value = 'https://google.com/';
} else {
ABCDirect.value = directPreviousPage;
}
});
Loading
Loading