Merge branch 'master' into uv-update
This commit is contained in:
Generated
+27
-5138
File diff suppressed because it is too large
Load Diff
+11
-18
@@ -25,25 +25,18 @@
|
||||
<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"
|
||||
}
|
||||
});
|
||||
<div class="centered">
|
||||
<script type="text/javascript">
|
||||
atOptions = {
|
||||
'key' : 'cf0bb7d0401f5ae5534ac09c2e959d20',
|
||||
'format' : 'iframe',
|
||||
'height' : 90,
|
||||
'width' : 728,
|
||||
'params' : {}
|
||||
};
|
||||
document.write('<scr' + 'ipt type="text/javascript" src="//outrightsham.com/cf0bb7d0401f5ae5534ac09c2e959d20/invoke.js"></scr' + 'ipt>');
|
||||
</script>
|
||||
|
||||
</div>
|
||||
<!--el:discord_widget-->
|
||||
|
||||
<script src="/assets/js/main.js" type="module"></script>
|
||||
|
||||
@@ -1,4 +1,12 @@
|
||||
[
|
||||
{
|
||||
"date": "3/10/2024",
|
||||
"simpleDescription": "Fixed Settings Menu and improved Game Search"
|
||||
},
|
||||
{
|
||||
"date": "3/7/2024",
|
||||
"simpleDescription": "Added 10 games"
|
||||
},
|
||||
{
|
||||
"date": "3/1/2024",
|
||||
"simpleDescription": "Fix roblox"
|
||||
|
||||
@@ -337,9 +337,19 @@
|
||||
"image": "/cdn/mindustry/splash.png"
|
||||
},
|
||||
{
|
||||
"name": "Minecraft",
|
||||
"target": "/cdn/3kh0/minecraft-15/index.html",
|
||||
"image": "/cdn/images/mc.jpeg"
|
||||
"name": "Minecraft 1.3",
|
||||
"target": "https://rawcdn.githack.com/CybriaTech/Opium/main/games/eagler-1.3/index.html",
|
||||
"image": "https://i.ytimg.com/vi/IB2h3OTbbvA/sddefault.jpg"
|
||||
},
|
||||
{
|
||||
"name": "Minecraft 1.5.2",
|
||||
"target": "https://rawcdn.githack.com/CybriaTech/Opium/main/games/eagler-1.5.2/index.html",
|
||||
"image": "https://images.squarespace-cdn.com/content/v1/5e172d9413c1a94fc0a5a165/1596626261379-ZV6K2M7DC4S3QNIO82R7/block.jpg?format=500w"
|
||||
},
|
||||
{
|
||||
"name": "Minecraft 1.8",
|
||||
"target": "https://rawcdn.githack.com/CybriaTech/Opium/main/games/eagler-1.8/index.html",
|
||||
"image": "/cdn/images/minecraft.svg"
|
||||
},
|
||||
{
|
||||
"name": "Missiles",
|
||||
@@ -931,7 +941,7 @@
|
||||
"image": "/cdn/3kh0/stick-merge/splash.png"
|
||||
},
|
||||
{
|
||||
"name": "Subway Surfers New York",
|
||||
"name": "Subway Surfers: New York",
|
||||
"target": "/cdn/3kh0/subway-surfers-ny/index.html",
|
||||
"image": "/cdn/3kh0/subway-surfers-ny/NewYorkIcon.png"
|
||||
},
|
||||
@@ -1038,36 +1048,76 @@
|
||||
{
|
||||
"name": "The Chroma Incident",
|
||||
"target": "https://js13kgames.com/games/the-chroma-incident/index.html",
|
||||
"image": "/cdn/images/thechromaincident.png"
|
||||
"image": "/cdn/images/thechromaincident.png"
|
||||
},
|
||||
{
|
||||
"name": "Dino Run 3d",
|
||||
"target": "https://russell2259.github.io/dino3d/",
|
||||
"image": "/cdn/images/dino3d.jpg"
|
||||
"image": "/cdn/images/dino3d.jpg"
|
||||
},
|
||||
{
|
||||
"name": "Burrito Bison: Launcha Libre",
|
||||
"target": "https://rawcdn.githack.com/GameHub88/Yexex-Assets/main/bb/index.html",
|
||||
"image": "https://play-lh.googleusercontent.com/vpTgm9u7-GzZP_MceTWpDi0HbinXd_4phCoTwf4ZspFL-115FtNRdo_SU1p-khLDnLA"
|
||||
"image": "https://play-lh.googleusercontent.com/vpTgm9u7-GzZP_MceTWpDi0HbinXd_4phCoTwf4ZspFL-115FtNRdo_SU1p-khLDnLA"
|
||||
},
|
||||
{
|
||||
"name": "Yohoho.io",
|
||||
"target": "https://rawcdn.githack.com/GameHub88/Yexex-Assets/main/yohoho/index.html",
|
||||
"image": "https://lh3.googleusercontent.com/BulAgT61Ocg2r5obu2apG_IOYUi3t16vdmBwy0uAgmiOatFUfcRVuRKFPGSsz0kRJN8N"
|
||||
"image": "https://lh3.googleusercontent.com/BulAgT61Ocg2r5obu2apG_IOYUi3t16vdmBwy0uAgmiOatFUfcRVuRKFPGSsz0kRJN8N"
|
||||
},
|
||||
{
|
||||
"name": "Jacksmith",
|
||||
"target": "https://moonlight.silvereen.net/src/static/games/jacksmith/index.html",
|
||||
"image": "https://img.poki.com/cdn-cgi/image/quality=78,width=600,height=600,fit=cover,f=auto/ebe99c6629baa3ea5f4d9c13f36a37bb.png"
|
||||
"image": "https://img.poki.com/cdn-cgi/image/quality=78,width=600,height=600,fit=cover,f=auto/ebe99c6629baa3ea5f4d9c13f36a37bb.png"
|
||||
},
|
||||
{
|
||||
"name": "Sans Fight Simulator",
|
||||
"target": "https://jcw87.github.io/c2-sans-fight/",
|
||||
"image": "https://img.itch.zone/aW1nLzE2MDEzODIucG5n/original/oNevX4.png"
|
||||
"image": "https://img.itch.zone/aW1nLzE2MDEzODIucG5n/original/oNevX4.png"
|
||||
},
|
||||
{
|
||||
"name": "Slowroads",
|
||||
"target": "https://slowroads.io",
|
||||
"image": "https://cdn-1.webcatalog.io/catalog/slow-roads/slow-roads-icon-filled-256.png?v=1678597634783"
|
||||
"image": "https://cdn-1.webcatalog.io/catalog/slow-roads/slow-roads-icon-filled-256.png?v=1678597634783"
|
||||
},
|
||||
{
|
||||
"name": "Duck Life 5",
|
||||
"target": "https://rawcdn.githack.com/CybriaTech/Opium/main/games/duck-life-5/index.html",
|
||||
"image": "https://play-lh.googleusercontent.com/JQqSn7wuCj0SxBqpBThNI33qCR9gwY0str2TIAnu-m_xrVCgZk3IPxYK2S7zC9WG0ig"
|
||||
},
|
||||
{
|
||||
"name": "Bloons TD 4",
|
||||
"target": "https://rawcdn.githack.com/CybriaTech/Opium/main/games/btd-4/index.html",
|
||||
"image": "https://assets-prd.ignimgs.com/2022/08/16/bloons-td4-button-1660612386362.jpg"
|
||||
},
|
||||
{
|
||||
"name": "Bloons TD 5",
|
||||
"target": "https://rawcdn.githack.com/CybriaTech/Opium/main/games/btd-5/index.html",
|
||||
"image": "https://m.media-amazon.com/images/M/MV5BNTkzYTJmNWEtOTdjMS00MzBjLWJiZmUtNzhlMDQzYzhkODA2XkEyXkFqcGdeQXVyNTgyNTA4MjM@._V1_.jpg"
|
||||
},
|
||||
{
|
||||
"name": "Raft Wars",
|
||||
"target": "https://rawcdn.githack.com/CybriaTech/Opium/main/games/raft-wars/index.html",
|
||||
"image": "https://i.ytimg.com/vi/FPZMXwGSwpQ/hqdefault.jpg"
|
||||
},
|
||||
{
|
||||
"name": "Raft Wars 2",
|
||||
"target": "https://rawcdn.githack.com/CybriaTech/Opium/main/games/raft-wars-2/index.html",
|
||||
"image": "https://static.wikia.nocookie.net/raftwars/images/c/c2/Rw2.jpg/revision/latest?cb=20141110013832"
|
||||
},
|
||||
{
|
||||
"name": "Run",
|
||||
"target": "https://rawcdn.githack.com/CybriaTech/Opium/main/games/run/index.html",
|
||||
"image": "https://www.coolmathgames.com/sites/default/files/Run_OG-logo.jpg"
|
||||
},
|
||||
{
|
||||
"name": "Run 2",
|
||||
"target": "https://rawcdn.githack.com/CybriaTech/Opium/main/games/run2/index.html",
|
||||
"image": "https://www.coolmathgames.com/sites/default/files/run-2.png"
|
||||
},
|
||||
{
|
||||
"name": "Subway Surfers: Singapore",
|
||||
"target": "https://rawcdn.githack.com/CybriaTech/Opium/main/games/subway-surfers-singapore/index.html",
|
||||
"image": "https://static.wikia.nocookie.net/subwaysurf/images/6/6d/Singapore2019LoadingScreen.png/revision/latest/scale-to-width-down/250?cb=20220403173202"
|
||||
}
|
||||
]
|
||||
@@ -105,6 +105,7 @@ body::-webkit-scrollbar-corner {
|
||||
padding: 0px;
|
||||
margin-right: 2.5px;
|
||||
margin-left: calc(50vw - calc(44vh + 45px));
|
||||
background-color: var(--background-darker);
|
||||
}
|
||||
|
||||
input:focus {
|
||||
@@ -124,7 +125,7 @@ body::-webkit-scrollbar-corner {
|
||||
height: 7.5vh;
|
||||
border-radius: 2vh;
|
||||
font-size: 3vh;
|
||||
background: var(--sidebar-bg);
|
||||
background-color: var(--background-darker);
|
||||
margin-left: 0px;
|
||||
border-top-left-radius: 0px;
|
||||
border-bottom-left-radius: 0px;
|
||||
@@ -136,7 +137,7 @@ body::-webkit-scrollbar-corner {
|
||||
box-shadow: 0.5vh 0.5vh 1vh 0vh var(--shadow-color);
|
||||
cursor: pointer;
|
||||
height: 7.5vh;
|
||||
background: var(--sidebar-bg);
|
||||
background-color: var(--background-darker);
|
||||
color: var(--text);
|
||||
margin-left: 0px;
|
||||
border-radius: 0px;
|
||||
|
||||
@@ -3,7 +3,7 @@ body[data-theme='dark'] {
|
||||
--background-darker: rgba(0, 0, 0, 0.9);
|
||||
--text: #fff;
|
||||
--sidebar-bg: #161f2eef;
|
||||
--button-bg: #1c1c1c69;
|
||||
--button-bg: #332a4769;
|
||||
--shadow-color: #000;
|
||||
--switch-color: #42424259;
|
||||
--switch-active: #2196F3;
|
||||
|
||||
@@ -115,11 +115,13 @@ const load = () => {
|
||||
if (isValidURL(game.target)) createViewPage({
|
||||
target: game.target,
|
||||
title: game.name,
|
||||
image: game.image,
|
||||
proxied: true
|
||||
});
|
||||
else createViewPage({
|
||||
target: game.target,
|
||||
title: game.name
|
||||
title: game.name,
|
||||
image: game.image
|
||||
});
|
||||
}, 500);
|
||||
});
|
||||
@@ -183,8 +185,31 @@ const load = () => {
|
||||
randomGame.click();
|
||||
}
|
||||
});
|
||||
|
||||
};
|
||||
const loadGameFromURL = () => {
|
||||
const urlParams = new URLSearchParams(window.location.search);
|
||||
const gameName = urlParams.get('game');
|
||||
|
||||
if (!gameName) {
|
||||
throw new PolarisError('No game specified in the URL');
|
||||
}
|
||||
|
||||
fetch('/assets/JSON/games.json')
|
||||
.then(res => res.json())
|
||||
.then(data => {
|
||||
const game = data.find(g => g.name === decodeURIComponent(gameName));
|
||||
|
||||
if (!game) {
|
||||
throw new PolarisError(`Game "${gameName}" not found`);
|
||||
}
|
||||
|
||||
renderGames([game]);
|
||||
})
|
||||
.catch(e => new PolarisError('Failed to load game'));
|
||||
};
|
||||
|
||||
export default {
|
||||
load
|
||||
load,
|
||||
loadGameFromURL
|
||||
};
|
||||
@@ -227,4 +227,8 @@ if (window.self === window.top && location.pathname !== '/view') window.addEvent
|
||||
else document.querySelector('.navbar').classList.remove('scrolling');
|
||||
});
|
||||
|
||||
if (window.self !== window.top && document.querySelector('.navbar')) document.querySelector('.navbar').remove();
|
||||
if (window.self !== window.top && document.querySelector('.navbar')) document.querySelector('.navbar').remove();
|
||||
|
||||
if (location.pathname === '/share' && new URLSearchParams(location.search).has('game')) {
|
||||
Games.loadGameFromURL();
|
||||
}
|
||||
@@ -171,7 +171,8 @@ export const createViewPage = (options) => location.href = `/view?load=${btoa(JS
|
||||
return: options.return || location.href,
|
||||
proxied: options.proxied,
|
||||
target: options.target,
|
||||
title: options.title
|
||||
title: options.title,
|
||||
image: options.image
|
||||
}))}`;
|
||||
|
||||
/**
|
||||
|
||||
@@ -58,40 +58,6 @@ if (params.get('load')) {
|
||||
else if (frame.msRequestFullscreen) frame.msRequestFullscreen();
|
||||
});
|
||||
|
||||
/*
|
||||
No
|
||||
|
||||
document.querySelector('#discord-join').addEventListener('click', () => {
|
||||
use the createViewPage function to load the page
|
||||
document.getElementById('loadframe').src = "/uv/service/hvtrs8%2F-dksaopd%2Ccmm-ilvktg%2Fqkmon-aoomwnkt%7B-%3B52427%3B3142839%3A737";
|
||||
swal("How would you like to open this?", {
|
||||
buttons: {
|
||||
cancel: "Cancel",
|
||||
proxy: {
|
||||
text: "Proxy",
|
||||
value: "proxy",
|
||||
},
|
||||
newtab: true,
|
||||
},
|
||||
})
|
||||
.then((value) => {
|
||||
switch (value) {
|
||||
|
||||
case "newtab":
|
||||
window.open("https://dsc.gg/skoolworld", '_blank').focus();
|
||||
break;
|
||||
|
||||
case "proxy":
|
||||
document.getElementById('loadframe').src = "/uv/service/hvtrs8%2F-dksaopd%2Ccmm-ilvktg%2Fqkmon-aoomwnkt%7B-%3B52427%3B3142839%3A737";
|
||||
break;
|
||||
|
||||
default:
|
||||
bruv what
|
||||
swal("you should have joined the server 🙄");
|
||||
}
|
||||
});
|
||||
});*/
|
||||
|
||||
window.addEventListener('fullscreenchange', () => {
|
||||
if (document.fullscreenElement) document.querySelector('#loadframe').style.borderRadius = '0px';
|
||||
else document.querySelector('#loadframe').style.borderRadius = '';
|
||||
|
||||
+2
-18
@@ -15,26 +15,13 @@
|
||||
<!--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>
|
||||
|
||||
<div class="content centered">
|
||||
<h1 style="font-size: 6vh;">Games</h1>
|
||||
|
||||
<div class="popular-games">
|
||||
</div>
|
||||
|
||||
<h1 style="font-size: 4vh;" class="gamesectionheader">All Games <small style="font-size: 2vh;">(200+ 🎉)</small></h1>
|
||||
<h1 style="font-size: 4vh;" class="gamesectionheader">All Games</h1>
|
||||
|
||||
<div class="search">
|
||||
<input type="text" id="searchInput" placeholder="Search Games">
|
||||
@@ -52,8 +39,6 @@
|
||||
|
||||
<br>
|
||||
|
||||
<!--el:ad_horizontal-->
|
||||
|
||||
<div class="games">
|
||||
</div>
|
||||
|
||||
@@ -62,7 +47,6 @@
|
||||
<br>
|
||||
<p>Oops, we couldn't find the game you were looking for.</p>
|
||||
</div>
|
||||
|
||||
<!--el:discord_widget-->
|
||||
|
||||
<script src="/assets/js/main.js" type="module"></script>
|
||||
@@ -70,4 +54,4 @@
|
||||
<!--el:{{mode === 'dev'}}:development-->
|
||||
</body>
|
||||
|
||||
</html>
|
||||
</html>
|
||||
|
||||
@@ -3,7 +3,6 @@
|
||||
|
||||
<head>
|
||||
<!--el:meta-->
|
||||
<!--el:adtop-->
|
||||
<!--el:analytics-->
|
||||
|
||||
<link rel="stylesheet" href="/assets/css/main.css">
|
||||
|
||||
+11
-1
@@ -24,14 +24,24 @@
|
||||
<form id="wpf">
|
||||
<input class="proxyinput" type="text" id="query" placeholder="URL or Search Query" />
|
||||
</form>
|
||||
<br>
|
||||
<br>
|
||||
<div class="centered">
|
||||
<button onclick="joinDiscord()">Join Our Discord (more links)</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<br>
|
||||
|
||||
<!--el:discord_widget-->
|
||||
|
||||
<script src="/assets/js/main.js" type="module"></script>
|
||||
<script>
|
||||
function joinDiscord() {
|
||||
var url = "https://discord.gg/skool-community-950407933408198717";
|
||||
var input = document.getElementById('query');
|
||||
input.value = url;
|
||||
}
|
||||
</script>
|
||||
<!--el:{{mode === 'dev'}}:development-->
|
||||
|
||||
</body>
|
||||
|
||||
@@ -3,7 +3,6 @@
|
||||
|
||||
<head>
|
||||
<!--el:meta-->
|
||||
<!--el:adtop-->
|
||||
<!--el:analytics-->
|
||||
|
||||
<link rel="stylesheet" href="/assets/css/main.css">
|
||||
|
||||
Reference in New Issue
Block a user