small updates

This commit is contained in:
Russell2259
2024-02-12 15:56:27 +00:00
parent 35d2473b74
commit 078da78f41
15 changed files with 90 additions and 71 deletions
+1 -1
View File
@@ -2,7 +2,7 @@
"name": "polaris",
"version": "1.2.1",
"description": "The professional unblocked games site.",
"main": "index.js",
"main": "server/index.js",
"type": "module",
"scripts": {
"start": "node server",
+1 -1
View File
@@ -8,7 +8,7 @@ export default useConfig({
minify: false,
//Beta
assetScrambling: false,
allowDangerousTemplateInsert: true,
allowDangerousTemplateInsert: false,
api: {
domain: 'api.polarislearning.org',
secure: true
+1
View File
@@ -11,6 +11,7 @@ import url from 'node:url';
import fs from 'node:fs';
const __dirname = url.fileURLToPath(new URL('../', import.meta.url));
const mode = config.mode;
const templateParser = (data) => {
return new Promise(async (resolve, reject) => {
+20 -20
View File
@@ -23,26 +23,26 @@
</div>
<br>
<br>
<div id="largebillboard1"></div>
<div id="largebillboard1"></div>
<script>
window['nitroAds'].createAd('largebillboard1', {
"refreshTime": 30,
"renderVisibleOnly": true,
"sizes": [
[
"970",
"250"
]
],
"report": {
"enabled": true,
"icon": true,
"wording": "Report Ad",
"position": "top-right"
}
});
</script>
<script>
window['nitroAds'].createAd('largebillboard1', {
"refreshTime": 30,
"renderVisibleOnly": true,
"sizes": [
[
"970",
"250"
]
],
"report": {
"enabled": true,
"icon": true,
"wording": "Report Ad",
"position": "top-right"
}
});
</script>
<!--el:discord_widget-->
@@ -51,4 +51,4 @@ window['nitroAds'].createAd('largebillboard1', {
<!--el:{{mode === 'dev'}}:development-->
</body>
</html>
</html>
+1 -1
View File
@@ -1,7 +1,7 @@
[
{
"date": "2/12/2024",
"simpleDescription": "Proxy now on homepage for convenience"
"simpleDescription": "Added Funny Shooter 2 and changed the featured game to Run 3"
},
{
"date": "1/25/2024",
+11 -2
View File
@@ -167,7 +167,7 @@ hr {
transition: all 0.5s ease;
}
.proxyinput-index:focus{
.proxyinput-index:focus {
width: 30vw;
}
@@ -612,6 +612,15 @@ img.featured:hover {
margin-right: 100px;
}
#changelog i {
overflow: hidden;
white-space: nowrap;
display: block;
/*Converting percentage into px so text-overflow: ellipsis; will apply*/
width: calc(100% - 1px + 1px);
text-overflow: ellipsis;
}
@keyframes beat {
0%,
50%,
@@ -675,4 +684,4 @@ img.featured:hover {
100% {
transform: translate(1px, -2px) rotate(-1deg);
}
}
}
+1 -1
View File
@@ -12,7 +12,7 @@
top: 0;
margin-left: 50px;
margin-right: 50px;
margin-top: 35px;
margin-top: 50px;
color: rgb(255, 255, 255);
z-index: 100;
display: flex;
+3 -4
View File
@@ -210,10 +210,9 @@ if (location.pathname === '/') {
description.textContent = change.simpleDescription;
description.classList = 'small';
log.appendChild(description);
});
const updateChangelog = (amount = 3) => {
const resizeChangelog = (amount = 3) => {
amount = amount - 1;
for (let i = 0; i < document.querySelector('#changelog').children.length; i++) {
@@ -222,8 +221,8 @@ if (location.pathname === '/') {
}
}
updateChangelog(Math.floor(getAvalibleHeight() / logHeight()));
window.addEventListener('resize', () => updateChangelog(Math.floor(getAvalibleHeight() / logHeight())));
resizeChangelog(Math.floor(getAvalibleHeight() / logHeight()));
window.addEventListener('resize', () => resizeChangelog(Math.floor(getAvalibleHeight() / logHeight())));
});
}
+4 -1
View File
@@ -21,12 +21,15 @@
<div id="changelog"></div>
<br><br><hr>
<br><br>
<hr>
<p>
Running Polaris <span id="changelog_version">unknown</span>
<br>
<br>
<small>
Commit: <span id="changelog_version_sha">unknown</span>
<br>
+22 -22
View File
@@ -22,35 +22,35 @@
<div class="cheats"></div>
</div>
<br>
<br>
<br><br>
<div id="largebillboard1"></div>
<script>
window['nitroAds'].createAd('largebillboard1', {
"refreshTime": 30,
"renderVisibleOnly": true,
"sizes": [
[
"970",
"250"
]
],
"report": {
"enabled": true,
"icon": true,
"wording": "Report Ad",
"position": "top-right"
}
});
</script>
<script>
window['nitroAds'].createAd('largebillboard1', {
"refreshTime": 30,
"renderVisibleOnly": true,
"sizes": [
[
"970",
"250"
]
],
"report": {
"enabled": true,
"icon": true,
"wording": "Report Ad",
"position": "top-right"
}
});
</script>
<!--el:discord_widget-->
<script src="/assets/js/main.js" type="module"></script>
<!--el:{{mode === 'dev'}}:development-->
</body>
</html>
</html>
+17 -15
View File
@@ -14,18 +14,20 @@
<body>
<!--el:navbar-->
<!--el:sidebar-->
<script>
window['nitroAds'].createAd('outstreamplayer1', {
"refreshTime": 30,
"format": "floating",
"report": {
"enabled": true,
"icon": true,
"wording": "Report Ad",
"position": "top-left"
}
});
</script>
<script>
window['nitroAds'].createAd('outstreamplayer1', {
"refreshTime": 30,
"format": "floating",
"report": {
"enabled": true,
"icon": true,
"wording": "Report Ad",
"position": "top-left"
}
});
</script>
<div class="content centered">
<h1 style="font-size: 6vh;">Games</h1>
@@ -38,9 +40,9 @@ window['nitroAds'].createAd('outstreamplayer1', {
<input type="text" id="searchInput" placeholder="Search Games">
<br>
<!--el:ad_horizontal-->
<br>
<br>
@@ -60,4 +62,4 @@ window['nitroAds'].createAd('outstreamplayer1', {
<!--el:{{mode === 'dev'}}:development-->
</body>
</html>
</html>
+4 -1
View File
@@ -39,11 +39,14 @@
<a href="/tos" class="blue">Terms of Service</a>
</p>
<!--
Making this an experiment. Don't touch.
<hr>
<form id="wpf">
<input class="proxyinput-index" type="text" id="query" placeholder="Search without restrictions..." />
</form>
</form>-->
<hr>
+2 -1
View File
@@ -19,13 +19,14 @@
<div class="container centered">
<h1 class="title">Proxy</h1>
<text class="proxyDescription">The proxy is moving to the <a href="/" class="blue">home page</a>. Click the logo in the top left to go there.</text>
<p class="proxyDescription">Search the web without restrictions</p>
<form id="wpf">
<input class="proxyinput" type="text" id="query" placeholder="URL or Search Query" />
</form>
</div>
</div>
<br>
<!--el:discord_widget-->
+1 -1
View File
@@ -24,7 +24,7 @@
<div class="right">
<span class="item" id="return">
<i class="fa-solid fa-caret-left fa-lg"></i> <!-- Russell is actively undermining me here... -->
<i class="fa-solid fa-angle-left"></i>
</span>
<!--<span class="item" id="discord-join">
+1
View File
@@ -1,5 +1,6 @@
<script src="https://unpkg.com/eruda@latest/eruda.js"></script>
<script>
alert('a');
eruda.init();
</script>