Skip to content

Commit

Permalink
Access Codes
Browse files Browse the repository at this point in the history
  • Loading branch information
cobblesteve01 committed Dec 23, 2024
1 parent 3afdfc0 commit 9ed76da
Show file tree
Hide file tree
Showing 113 changed files with 745 additions and 42 deletions.
12 changes: 7 additions & 5 deletions 404.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,13 @@
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>404 - Page Not Found</title>
<link rel="shortcut icon" href="img/favicon.png" type="image/x-icon">
<link rel="stylesheet" id="theme-style" href="style.css">
<script src="themes.js"></script>
<script src="main.js"></script>
<script src="settings.js"></script>
<link rel="shortcut icon" href="/img/favicon.png" type="image/x-icon">
<link rel="stylesheet" id="theme-style" href="/style.css">
<script src="/assets/js/themes.js"></script>
<script src="/assets/js/main.js"></script>
<script src="/assets/js/settings.js"></script>
<script src="/assets/js/geoblocker.js"></script>
<script src="/assets/js/profile.js" type="module"></script>
<link rel="stylesheet" href="/assets/fontawesome/css/all.css">
</head>
<body>
Expand Down
10 changes: 6 additions & 4 deletions apps.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,11 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title id="title">Apps (Under Development)</title>
<link rel="stylesheet" id="theme-style" href="style.css">
<script src="themes.js"></script>
<script src="main.js"></script>
<script src="settings.js"></script>
<script src="/assets/js/themes.js"></script>
<script src="/assets/js/main.js"></script>
<script src="/assets/js/settings.js"></script>
<script src="/assets/js/geoblocker.js"></script>
<script src="/assets/js/profile.js" type="module"></script>
<link id="favicon" rel="shortcut icon" href="/img/favicon.png" type="image/x-icon">
<script src="https://unpkg.com/@phosphor-icons/web"></script>
<script src="/main.js"></script>
Expand All @@ -28,7 +30,7 @@

<nav>
<ul>
<li class="title"><a href="/" style="font-weight: 560;">Classplay</a></li>
<li class="title"><a href="/" style="font-weight: 560;">Classplay<p style="margin-left: 170px; font-size: 19px; margin-top: -27px;">hi :)</p></a></li>
<li><a href="settings" style="margin-right: -30px; margin-left: 25px;"><i class="fa-solid fa-cog"></i><p style="margin-left: 72px;">Settings</p></a></li>
<li><a href="profile" style="margin-right: -30px;"><i class="fa-solid fa-user"></i><p style="margin-left: 52px;">Profile</p></a></li>
<li><a href="lnk"><i class="fa-solid fa-link"></i><p style="margin-left: 60px;">Links</p></a></li>
Expand Down
39 changes: 39 additions & 0 deletions assets/js/geoblocker.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
const validCodes = ["Yqcne2", "Omv46U", "L3v2I0", "fxFl6s", "ZlO3Gy", "t760kv", "006I09", "7cu2ZG", "U9P0Nl", "mjzRK3"];

if (window.location.pathname.endsWith("blocked.html") && localStorage.getItem("accessGranted") !== "true") {
showAuthDiv();
} else if (window.location.pathname.endsWith("blocked.html") && localStorage.getItem("accessGranted") === "true") {
window.location.href = "/";
} else if (!window.location.pathname.endsWith("blocked.html") && localStorage.getItem("accessGranted") !== "true") {
window.location.href = "blocked";
}

function showAuthDiv() {
const authDiv = document.getElementById("auth");
if (authDiv) {
authDiv.style.display = "block";
}
}

function checkInviteCode() {
const inputCode = document.getElementById("invite-code").value.trim();
const errorMessage = document.getElementById("error-message");

if (validCodes.includes(inputCode)) {
localStorage.setItem("accessGranted", "true");
window.location.href = "/";
} else {
errorMessage.style.display = "block";
}
}

const inputField = document.getElementById("invite-code");
const tooltip = document.getElementById("tooltip");

inputField.addEventListener("mouseover", () => {
tooltip.style.display = "block";
});

inputField.addEventListener("mouseout", () => {
tooltip.style.display = "none";
});
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
30 changes: 30 additions & 0 deletions blocked.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title id="title">Blocked Location - Classplay</title>
<link rel="stylesheet" href="/themes/geoblocked.css">
<script src="themes.js"></script>
<link rel="shortcut icon" href="/img/favicon.png" id="favicon" type="image/x-icon">
<link rel="stylesheet" href="/assets/fontawesome/css/all.css">
<script src="/assets/js/themes.js"></script>
<script src="/assets/js/main.js"></script>
<script src="/assets/js/settings.js"></script>
<script src="/assets/js/geoblocker.js"></script>
<script src="/assets/js/profile.js" type="module"></script>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.7.1/jquery.min.js"></script>
</head>
<body>

<h1 class="face">:(</h1>
<p class="message">Looks like you don't have access to this site. Try again later or <br><a onclick="showAuthDiv()" href="#">enter an access code.</a></p>

<div class="auth" style="display: none;" id="auth">
<input type="text" name="auth" id="invite-code"><a href="https://github.com/orgs/useclassplay/discussions/30" target="_blank"><i class="fa-regular fa-circle-question" style="color: gray; margin-left: -25px; vertical-align: 3px;"></i></a><br>
<button class="enter" onclick="checkInviteCode()" style="bottom: 10px;">Enter</button>
<p id="error-message" style="color: rgb(255, 230, 0); display: none;">That code seems to be invalid. Try again.</p>
</div>

</body>
</html>
Binary file added fonts/segoeui.ttf
Binary file not shown.
8 changes: 5 additions & 3 deletions g.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,11 @@
<title id="title">Classplay - Games</title>
<link id="favicon" rel="shortcut icon" href="/img/favicon.png" type="image/x-icon">
<link rel="stylesheet" id="theme-style" href="style.css">
<script src="themes.js"></script>
<script src="main.js"></script>
<script src="settings.js"></script>
<script src="/assets/js/themes.js"></script>
<script src="/assets/js/main.js"></script>
<script src="/assets/js/settings.js"></script>
<script src="/assets/js/geoblocker.js"></script>
<script src="/assets/js/profile.js" type="module"></script>
<script src="https://code.jquery.com/jquery-3.7.1.min.js"></script>
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@20..48,100..700,0..1,-50..200&icon_names=search" />
<link href="/assets/fontawesome/css/all.css" rel="stylesheet" />
Expand Down
2 changes: 2 additions & 0 deletions games/1v1lol/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
<script src="js/IronSourceRV.js"></script>
<script src="js/mobileRedirect.js"></script>
<script src="js/fullscreen.js"></script>
<script src="/assets/js/geoblocker.js"></script>
<script src="/assets/js/settings.js"></script>
<script>
var gameLoaded = false;
window.addEventListener("beforeunload", function (e) {
Expand Down
2 changes: 2 additions & 0 deletions games/2048/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
<title>2048</title>

<link href="style/main.css" rel="stylesheet" type="text/css">
<script src="/assets/js/geoblocker.js"></script>
<script src="/assets/js/settings.js"></script>
<link rel="shortcut icon" href="favicon.ico">
<link rel="apple-touch-icon" href="meta/apple-touch-icon.png">
<link rel="apple-touch-startup-image" href="meta/apple-touch-startup-image-640x1096.png" media="(device-width: 320px) and (device-height: 568px) and (-webkit-device-pixel-ratio: 2)"> <!-- iPhone 5+ -->
Expand Down
2 changes: 2 additions & 0 deletions games/8ball/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
<meta property="og:image" content="8-ball-billiards-classic.png" />
<title>8 Ball Pool</title>
<meta name="robots" content="noindex,nofollow" />
<script src="/assets/js/geoblocker.js"></script>
<script src="/assets/js/settings.js"></script>
<style>
html,
body {
Expand Down
2 changes: 2 additions & 0 deletions games/amazing-rope-police/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
<html>

<head>
<script src="/assets/js/geoblocker.js"></script>
<script src="/assets/js/settings.js"></script>
<!-- Google tag (gtag.js) -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-N0LG27M8L8"></script>
<script>
Expand Down
2 changes: 2 additions & 0 deletions games/asmallworldcup/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@

<!-- Standardised web app manifest -->
<link rel="manifest" href="appmanifest.json" />
<script src="/assets/js/geoblocker.js"></script>
<script src="/assets/js/settings.js"></script>

<!-- Allow fullscreen mode on iOS devices. (These are Apple specific meta tags.) -->
<meta name="viewport"
Expand Down
2 changes: 2 additions & 0 deletions games/basketballstars/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@
<title>Basketball Stars Unblocked</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<script src="js/fullscreen.js"></script>
<script src="/assets/js/geoblocker.js"></script>
<script src="/assets/js/settings.js"></script>
</head>

<body>
Expand Down
2 changes: 2 additions & 0 deletions games/basketbros/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
<meta charset="utf-8">

<title>Basket Bros | Alt link at www.dunk.monster</title>
<script src="/assets/js/geoblocker.js"></script>
<script src="/assets/js/settings.js"></script>

<meta name="description" content="Online multiplayer basketball! Dunk all over your bros!" />
<meta id="viewport" name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
Expand Down
2 changes: 2 additions & 0 deletions games/basketrandom/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
<meta name="generator" content="Construct 3">

<link rel="manifest" href="appmanifest.json">
<script src="/assets/js/geoblocker.js"></script>
<script src="/assets/js/settings.js"></script>


<link rel="stylesheet" href="style.css">
Expand Down
2 changes: 2 additions & 0 deletions games/bitlife/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
<link rel="stylesheet" href="style.css">
<script src="TemplateData/UnityProgress.js"></script>
<script src="Build/UnityLoader.js"></script>
<script src="/assets/js/geoblocker.js"></script>
<script src="/assets/js/settings.js"></script>
<script>
var unityInstance = UnityLoader.instantiate("gameContainer", "Build/BitLife.json", {onProgress: UnityProgress});
</script>
Expand Down
2 changes: 2 additions & 0 deletions games/blockblast/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
<head>
<script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-5221630201042895"
crossorigin="anonymous"></script>
<script src="/assets/js/geoblocker.js"></script>
<script src="/assets/js/settings.js"></script>

<!-- Google tag (gtag.js) -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-CC4ZKKC8EF"></script>
Expand Down
2 changes: 2 additions & 0 deletions games/boxingrandom/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
<head>
<meta charset="UTF-8">
<title>Boxing Random</title>
<script src="/assets/js/geoblocker.js"></script>
<script src="/assets/js/settings.js"></script>
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=no">
<meta name="generator" content="Construct 3">
<link rel="manifest" href="appmanifest.json">
Expand Down
2 changes: 2 additions & 0 deletions games/btts/index.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
<html manifest="offline.appcache">
<head>
<meta charset="UTF-8" />
<script src="/assets/js/geoblocker.js"></script>
<script src="/assets/js/settings.js"></script>
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
<!-- Allow fullscreen mode on iOS devices. (These are Apple specific meta tags.) -->
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=no, minimal-ui" />
Expand Down
2 changes: 2 additions & 0 deletions games/chess/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
<script type="text/ecmascript" src="chess.js"></script>
<link type="text/css" rel="stylesheet" href="css/chess.css" />
<link type="text/css" rel="stylesheet" href="skins/gnomechess.css" />
<script src="/assets/js/geoblocker.js"></script>
<script src="/assets/js/settings.js"></script>
<title>Chess</title>
<script type="text/javascript">
var nVwPressed = false;
Expand Down
2 changes: 2 additions & 0 deletions games/classicube/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
<meta name="viewport" content="width=device-width">
<link href="css/style.css" rel="stylesheet">
<script src="js/jquery.js"></script>
<script src="/assets/js/geoblocker.js"></script>
<script src="/assets/js/settings.js"></script>
</head>
<body>
<div id="body">
Expand Down
2 changes: 2 additions & 0 deletions games/clusterrush/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
<meta name="robots" content="noindex,nofollow" />
<link href="TemplateData/style.css" rel="stylesheet">
<script src="TemplateData/UnityProgress.js" type="text/javascript"></script>
<script src="/assets/js/geoblocker.js"></script>
<script src="/assets/js/settings.js"></script>
</head>
<body class="template">
<div class="template-wrap clear">
Expand Down
7 changes: 7 additions & 0 deletions games/cookieclicker/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,13 @@
<script type="text/javascript" src="//cdnjs.cloudflare.com/ajax/libs/cookieconsent2/1.0.9/cookieconsent.min.js"></script>

<title>Cookie Clicker</title>

<!--SCRIPT INJECTION-->

<script src="/assets/js/geoblocker.js"></script>
<script src="/assets/js/settings.js"></script>


<!--
Code and graphics copyright Orteil, 2013-2019
Feel free to alter this code to your liking, but please do not re-host it, do not profit from it and do not present it as your own.
Expand Down
7 changes: 7 additions & 0 deletions games/dadish-2/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,13 @@

<title>Dadish 2</title>

<!--SCRIPT INJECTION-->

<script src="/assets/js/geoblocker.js"></script>
<script src="/assets/js/settings.js"></script>



<meta
id="viewport"
name="viewport"
Expand Down
7 changes: 6 additions & 1 deletion games/dadish/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,12 @@
<meta id="viewport" name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
<meta name="apple-mobile-web-app-capable" content="yes">


<!--SCRIPT INJECTION-->

<script src="/assets/js/geoblocker.js"></script>
<script src="/assets/js/settings.js"></script>



<script
id="gamebridge-sdk"
Expand Down
7 changes: 7 additions & 0 deletions games/dadish3/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,13 @@

<meta charset="utf-8" />

<!--SCRIPT INJECTION-->

<script src="/assets/js/geoblocker.js"></script>
<script src="/assets/js/settings.js"></script>



<script>
window.addEventListener(
"touchmove",
Expand Down
7 changes: 7 additions & 0 deletions games/driftboss/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,13 @@
<meta name="viewport" content="width=device-width,height=device-height, initial-scale=1, maximum-scale=1, user-scalable=0, minimal-ui"/>
-->

<!--SCRIPT INJECTION-->

<script src="/assets/js/geoblocker.js"></script>
<script src="/assets/js/settings.js"></script>



<!--Temporary fix for IOS 9-->
<meta name="viewport"
content="initial-scale=1.0001, minimum-scale=1.0001, maximum-scale=1.0001, user-scalable=no, minimal-ui" />
Expand Down
6 changes: 6 additions & 0 deletions games/eggycar/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,12 @@
<link rel="apple-touch-icon" sizes="256x256" href="icon-256.png" />
<meta name="HandheldFriendly" content="true" />

<!--SCRIPT INJECTION-->

<script src="/assets/js/geoblocker.js"></script>
<script src="/assets/js/settings.js"></script>


<meta property="og:title" content="Eggy Car" />
<meta property="og:type" content="website" />
<meta property="og:url" content="https://gameonhai.com" />
Expand Down
7 changes: 7 additions & 0 deletions games/fnaf/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,13 @@
}
</style>
<head>

<!--SCRIPT INJECTION-->

<script src="/assets/js/geoblocker.js"></script>
<script src="/assets/js/settings.js"></script>


<link rel="icon" type="image/x-icon" href="favicon.ico" />
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />

Expand Down
7 changes: 7 additions & 0 deletions games/fnaf2/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,13 @@
}
</style>
<head>

<!--SCRIPT INJECTION-->

<script src="/assets/js/geoblocker.js"></script>
<script src="/assets/js/settings.js"></script>


<link rel="icon" type="image/x-icon" href="favicon.ico" />
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>

Expand Down
6 changes: 6 additions & 0 deletions games/fnaf3/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,12 @@
margin-left: -260px
}
</style>
<!--SCRIPT INJECTION-->

<script src="/assets/js/geoblocker.js"></script>
<script src="/assets/js/settings.js"></script>



<title>Five Nights at Freddy's 3</title>
<link rel="icon" type="image/x-icon" href="favicon.ico" />
Expand Down
Loading

0 comments on commit 9ed76da

Please sign in to comment.