This commit is contained in:
Russell2259
2024-01-02 20:34:10 -07:00
parent 8b750a7fb1
commit d7f92bee89
13 changed files with 2264 additions and 1922 deletions
+1
View File
@@ -20,6 +20,7 @@ body {
color: var(--text);
padding-top: 20vh;
background-repeat: no-repeat;
opacity: 0.7;
}
.centered {
+11 -11
View File
@@ -213,19 +213,19 @@ body[data-theme='violet'] {
}
@media screen and (prefers-color-scheme: light) {
body[data-theme='system-default'] {
--background-color: #fff;
--background-darker: var(--background-color)
--text: #000;
--sidebar-bg: #ffffffee;
--button-bg: #ffffff59;
--shadow-color: #4242424b;
--switch-color: #111111b0;
body[data-theme='light'] {
--background-color: rgba(0, 0, 0, 0.8);
--background-darker: rgba(0, 0, 0, 0.9);
--text: #fff;
--sidebar-bg: #161f2eef;
--button-bg: #1c1c1c69;
--shadow-color: #000;
--switch-color: #42424259;
--switch-active: #2196F3;
--scrollbar-color: #4242424b;
--solid: #f6f5f0;
--scrollbar-color: #ffffff59;
--solid: #1b2735;
--hover: #757575;
background: radial-gradient(ellipse at bottom, #b1b1b1 0%, #f6f5f0 100%);
background: radial-gradient(at center bottom, rgb(27, 39, 53) 0%, rgb(9, 10, 15) 100%);;
background-repeat: no-repeat;
}
}
+13 -9
View File
@@ -18,15 +18,19 @@ const load = () => fetch('/assets/JSON/apps.json').then(res => res.json()).then(
}, el);
el.addEventListener('click', async () => {
if (URL.canParse(app.target)) createViewPage({
target: app.target,
title: app.name,
proxied: true
});
else createViewPage({
target: app.target,
title: app.name
});
document.body.style.opacity = '0.7';
setTimeout(() => {
if (URL.canParse(app.target)) createViewPage({
target: app.target,
title: app.name,
proxied: true
});
else createViewPage({
target: app.target,
title: app.name
});
}, 500);
});
});
}).catch(e => new PolarisError('Failed to load Apps'));
+13 -9
View File
@@ -19,15 +19,19 @@ const load = () => fetch('/assets/JSON/cheats.json')
}, el);
el.addEventListener('click', () => {
if (URL.canParse(cheat.target)) createViewPage({
target: cheat.target,
title: cheat.name,
proxied: true
});
else createViewPage({
target: cheat.target,
title: cheat.name
});
document.body.style.opacity = '0.7';
setTimeout(() => {
if (URL.canParse(cheat.target)) createViewPage({
target: cheat.target,
title: cheat.name,
proxied: true
});
else createViewPage({
target: cheat.target,
title: cheat.name
});
}, 500);
});
})).catch(e => new PolarisError('Failed to load cheats.'));
+26 -18
View File
@@ -52,15 +52,19 @@ const load = () => {
document.querySelector('.popular-games').appendChild(popularEl);
popularEl.addEventListener('click', async () => {
if (URL.canParse(game.target)) createViewPage({
target: game.target,
title: game.name,
proxied: true
});
else createViewPage({
target: game.target,
title: game.name
});
document.body.style.opacity = '0.7';
setTimeout(() => {
if (URL.canParse(game.target)) createViewPage({
target: game.target,
title: game.name,
proxied: true
});
else createViewPage({
target: game.target,
title: game.name
});
}, 500);
});
effects.hoverTilt({
@@ -73,15 +77,19 @@ const load = () => {
}
el.addEventListener('click', async () => {
if (URL.canParse(game.target)) createViewPage({
target: game.target,
title: game.name,
proxied: true
});
else createViewPage({
target: game.target,
title: game.name
});
document.body.style.opacity = '0.7';
setTimeout(() => {
if (URL.canParse(game.target)) createViewPage({
target: game.target,
title: game.name,
proxied: true
});
else createViewPage({
target: game.target,
title: game.name
});
}, 500);
});
});
})
+25 -11
View File
@@ -10,6 +10,8 @@ import Apps from './apps.js';
loadEasterEggs();
onbeforeunload = (e) => {
document.body.style.opacity = '0.7';
if (localStorage.getItem('prevent_close') === 'true') {
e.preventDefault();
return e;
@@ -20,6 +22,17 @@ onbeforeunload = (e) => {
scope: '/'
});*/
window.addEventListener('DOMContentLoaded', () => setTimeout(() => document.body.style.opacity = 1, 1000));
document.querySelectorAll('a').forEach(hyperlink => hyperlink.addEventListener('click', (e) => {
if (hyperlink.href && !hyperlink.target && new URL(hyperlink.href).pathname !== location.pathname) {
e.preventDefault();
document.body.style.opacity = '0.7';
setTimeout(() => window.location.href = hyperlink.href, 500);
}
}));
window.onhashchange = () => {
if (location.hash === '#settings') document.querySelector('.sidebar').classList.add('active');
else document.querySelector('.sidebar').classList.remove('active');
@@ -58,18 +71,19 @@ if (location.pathname === '/') {
fetch('/assets/JSON/changelog.json')
.then(res => res.json())
.then(changelog => changelog.forEach(change => {
const date = document.createElement('p');
date.textContent = change.date;
date.classList = 'small';
document.querySelector('#changelog').appendChild(date);
.then(changelog => changelog
.filter((data, i) => !(i >= 3))
.forEach(change => {
const date = document.createElement('p');
date.textContent = change.date;
date.classList = 'small';
document.querySelector('#changelog').appendChild(date);
const descwrap = document.createElement('p');
const description = document.createElement('i');
description.textContent = change.simpleDescription;
description.classList = 'small';
document.querySelector('#changelog').appendChild(description);
}));
const description = document.createElement('i');
description.textContent = change.simpleDescription;
description.classList = 'small';
document.querySelector('#changelog').appendChild(description);
}));
}
if (window.self === window.top && location.pathname !== '/view') {
+1 -1
View File
@@ -1,4 +1,4 @@
// wip
// WIP
const serverOnline = () => {
return new Promise(async (resolve, reject) => {
+4 -2
View File
@@ -9,11 +9,13 @@ const load = () => {
const url = /^(http(s)?:\/\/)?([\w-]+\.)+[\w]{2,}(\/.*)?$/.test(query.value) ? ((!query.value.startsWith('http://') && !query.value.startsWith('https://')) ? 'https://' + query.value : query.value) : 'https://www.google.com/search?q=' + encodeURIComponent(query.value);
createViewPage({
document.body.style.opacity = '0.7';
setTimeout(() => createViewPage({
target: url,
proxied: true,
title: 'Search Results'
});
}), 500);
});
}
+5 -1
View File
@@ -53,7 +53,11 @@ if (params.get('load')) {
else document.querySelector('iframe').style.borderRadius = '';
});
document.querySelector('#return').addEventListener('click', () => location.href = parsedData.return);
document.querySelector('#return').addEventListener('click', () => {
document.body.style.opacity = '0.7';
setTimeout(() => window.location.href = parsedData.return, 500);
});
} else if (parsedData.target && parsedData.redirect === true) {
window.history.replaceState({}, '', '/redirect');
+6 -6
View File
@@ -26,17 +26,17 @@
<h1>Polaris</h1>
<p>
<a href="https://discord.gg/skool-community-950407933408198717" target="_blank" class="link">Discord</a>
<a href="https://discord.gg/skool-community-950407933408198717" target="_blank" class="blue">Discord</a>
-
<a href="https://skoolworld.org" target="_blank" class="link">Links</a>
<a href="https://github.com/Skoolgq/Polaris" target="_blank" class="blue">Source Code</a>
-
<a href="mailto:support@polarislearning.org" target="_blank" class="link">Support Email</a>
<a href="mailto:support@polarislearning.org" target="_blank" class="blue">Support Email</a>
-
<a href="https://forms.gle/9knPLmyAua5Z3wZv5" target="_blank" class="link">Suggest a game</a>
<a href="https://forms.gle/9knPLmyAua5Z3wZv5" target="_blank" class="blue">Suggest a game</a>
-
<a href="/privacy" class="link">Privacy Policy</a>
<a href="/privacy" class="blue">Privacy Policy</a>
-
<a href="/tos" class="link">Terms of Service</a>
<a href="/tos" class="blue">Terms of Service</a>
</p>
<hr>
+47 -11
View File
@@ -1,17 +1,53 @@
<!--el:meta-->
<!--el:analytics-->
<!DOCTYPE html>
<html lang="en">
By using our site your personal information may be collected including:
<head>
<!--el:meta-->
<!--el:adtop-->
<!--el:analytics-->
- email address
- ip address
- other information collected by google adsense service
<link rel="stylesheet" href="/assets/css/main.css">
We do not sell any of your personal information to third parties outside of Google Adsense or other advertising services.
We do not store your personal information outside of advertising services and our analytics service https://counter.dev/.
<title>Polaris</title>
</head>
Our sites code is open source and is hosted on github, it can be found here: https://github.com/Skoolgq
<body>
<!--el:navbar-->
<!--el:sidebar-->
If you have any questions please contact us at skoolwrld@gmail.com
<div class="row mainpage">
<div class="container" style="text-align: left; margin-right: 50px;">
<h1 style="text-align: center;">Privacy Policy</h1>
<!--el:{{mode === 'dev'}}:development-->
<p>
By using our site your personal information may be collected including:
<br>
<br>
- Email Address
<br>
- IP Address
<br>
- Any other ther information collected by google adsense service
<br><br>
We do not sell any of your personal information to third parties outside of Google Adsense or other
advertising services. We do not store your personal information outside of advertising services and our analytics service
<a href="https://counter.dev/" target="_blank" class="blue">https://counter.dev/</a>.
Our sites code is open source and is hosted on github, it can be found here: <a href="https://github.com/Skoolgq/Polaris" target="_blank" class="blue">https://github.com/Skoolgq/Polaris</a>.
<br><br>
If you have any questions please contact us at <a href="mailto:support@polarislearning.org" target="_blank" class="blue">support@polarislearning.org</a>
</p>
</div>
</div>
<script src="/assets/js/main.js" type="module"></script>
<!--el:{{mode === 'dev'}}:development-->
</body>
</html>
+2110 -1841
View File
File diff suppressed because it is too large Load Diff
+2 -2
View File
@@ -1,4 +1,4 @@
<script type="text/javascript">
<!--<script type="text/javascript">
atOptions = {
'key': 'ae1638b56336895e2ecf7d1adc3492a4',
'format': 'iframe',
@@ -8,4 +8,4 @@
};
document.write('<scr' + 'ipt type="text/javascript" src="//outrightsham.com/ae1638b56336895e2ecf7d1adc3492a4/invoke.js"></scr' + 'ipt>');
</script>
</script>-->