1
0
forked from sent/waves
waves/public/assets/g/basketbros/index.html
2025-04-09 17:11:14 -05:00

464 lines
19 KiB
HTML

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>Basket Bros</title>
<meta name="robots" content="noindex,nofollow" />
<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" />
<link rel="shortcut icon" type="image/png" href="./favicon.png" />
<script type="text/javascript" src="./BasketBros.js?th=448"></script>
<script src="/js/all.min.js"></script>
<script>
window.addEventListener(
"touchmove",
function (event) {
event.preventDefault();
},
{ capture: false, passive: false }
);
if (typeof window.devicePixelRatio != "undefined" && window.devicePixelRatio > 2) {
var meta = document.getElementById("viewport");
meta.setAttribute("content", "width=device-width, initial-scale=" + 2 / window.devicePixelRatio + ", user-scalable=no");
}
window.addEventListener("keydown", function (e) {
if ((e.keyCode == 32 || e.keyCode == 38 || e.keyCode == 40) && e.target == document.body) {
e.preventDefault();
}
});
</script>
<style>
html,
body {
margin: 0;
padding: 0;
height: 100%;
background: #000000;
color: orange;
height: 100%;
width: 100%;
height: 100vh;
width: 100vw;
margin: 0;
padding: 0;
}
.body::-webkit-scrollbar {
/* WebKit */
width: 0px;
}
#openfl-content {
background: #000000;
width: 100%;
height: 100%;
}
#spinner {
-webkit-transform-origin: 50% 50%;
-moz-transform-origin: 50% 50%;
-o-transform-origin: 50% 50%;
transform-origin: 50% 50%;
width: 82px;
height: 81px;
-webkit-animation: spin1 2s infinite linear;
-moz-animation: spin1 2s infinite linear;
-o-animation: spin1 2s infinite linear;
-ms-animation: spin1 2s infinite linear;
animation: spin1 2s infinite linear;
}
</style>
<script>
//Interstitial ad available event
document.addEventListener("aip_interstitialadavailable", function (e) {
console.log("An interstitial ad is available");
});
</script>
<script>
var aiptag = aiptag || {};
aiptag.cmd = aiptag.cmd || [];
aiptag.cmd.display = aiptag.cmd.display || [];
aiptag.cmd.player = aiptag.cmd.player || [];
// Settings
aiptag.consented = false; // GDPR setting, please set this value to false if an EU user has declined or not yet accepted marketing cookies, for users outside the EU please use true and for users accepted the GDPR also use true
aiptag.cmd.player.push(function () {
adplayer = new aipPlayer({
AIP_ADBREAK_COMPLETE: function () {
console.log("Adbreak Completed");
Main.DoneInterstitialAd(false);
},
AD_WIDTH: 960,
AD_HEIGHT: 540,
AD_DISPLAY: "default", //default, fullscreen, center, fill
TRUSTED: true,
LOADING_TEXT: "loading advertisement",
PREROLL_ELEM: function () {
return document.getElementById("preroll");
},
AIP_COMPLETE: function (state) {
/*******************
***** WARNING *****
*******************
Please do not remove the PREROLL_ELEM
from the page, it will be hidden automaticly.
If you do want to remove it use the AIP_REMOVE callback.
*/
Main.DoneVideoAd();
window.document.getElementById("openfl-content").focus();
if (state == null) state = "null";
console.log("Video Ad Complete: " + state);
SendEvent("event", "donevideo-" + lastUnitPlayed + "-" + state);
},
AIP_REMOVE: function () {
// Here it's safe to remove the PREROLL_ELEM from the page if you want. But it's not recommend.
},
});
});
function ShowVideo(theUnitName = null) {
console.log("SHOW_VIDEO");
var aUnitName = "";
if (typeof gCrazySDK !== "undefined") {
gCrazySDK.addEventListener("adFinished", Main.DoneVideoAd); // reenable sound, enable ui
gCrazySDK.addEventListener("adError", Main.DoneVideoAd); // reenable sound, enable ui
gCrazySDK.requestAd();
console.log("CG_AD_REQUESTED");
SendEvent("event", "cgvideo");
return;
}
if (typeof adplayer === "undefined") {
Main.DoneVideoAd(true);
SendEvent("event", "video_adblocked");
console.log("VIDEO_ADBLOCKED");
} else {
var aStr = "preroll";
if (theUnitName != null) aStr = theUnitName;
lastUnitPlayed = aStr;
SendEvent("event", "startvideo-" + aStr);
aiptag.cmd.player.push(function () {
adplayer.startPreRoll(theUnitName);
});
}
}
</script>
</head>
<body style="overflow: hidden;">
<noscript>Enable JavaScript bro!</noscript>
<div id="loading" style="position: absolute; width: 392px; height: 31px; z-index: 15; top: 50%; left: 50%; margin: 100px 0 0 -200px; background: black;">
<img src="assets/loading.png" />
</div>
<div id="game2" style="width: 100%; height: 100%;">
<div id="basketbros-io_160x600" style="float: left; width: 170px; height: 600px; position: relative; top: 50%; -webkit-transform: translateY(-50%); -ms-transform: translateY(-50%); transform: translateY(-50%);">
<script>
if (typeof gCrazySDK == "undefined") {
aiptag.cmd.display.push(function () {
aipDisplayTag.display("basketbros-io_160x600");
});
}
</script>
</div>
<div id="openfl-content" style="width: calc(100% - 320px); float: left;">
<script type="text/javascript">
lime.embed("BasketBros", "openfl-content", 0, 0, { parameters: {} });
</script>
</div>
<div id="preroll" style="width: 960px; height: 540px; background-color: black; display: none; position: absolute; top: 50%; left: 50%; z-index: 100; transform: translate(-50%, -50%);"></div>
<div
id="basketbros-io_160x600_2"
style="float: right; width: 170px; height: 600px; justify-content: right; text-align: right; position: relative; top: 50%; -webkit-transform: translateY(-50%); -ms-transform: translateY(-50%); transform: translateY(-50%);"
>
<script>
if (typeof gCrazySDK == "undefined") {
aiptag.cmd.display.push(function () {
aipDisplayTag.display("basketbros-io_160x600_2");
});
}
</script>
</div>
<div id="basketbros-io_300x250" style="width: 300px; height: 250px; visibility: hidden; display: none; position: absolute; top: 30px; left: 30px; z-index: 100;"></div>
<div id="basketbros-io_300x250_2" style="width: 300px; height: 250px; visibility: hidden; display: none; position: absolute; top: 30px; left: 30px; z-index: 100;"></div>
<div id="basketbros-io_player_300x600" style="visibility: hidden; width: 300px; height: 600px; display: none; position: absolute; top: 30px; left: 30px; z-index: 100;"></div>
<div id="basketbros-io_300x600_m" style="visibility: hidden; width: 300px; height: 600px; display: none; position: absolute; top: 30px; left: 30px; z-index: 100;"></div>
<div id="basketbros-io_728x90" style="visibility: hidden; width: 728px; height: 90px; display: none; position: absolute; top: 30px; left: 30px; z-index: 100;"></div>
</div>
<br />
<div>
<div class="notch-top-left" style="--notch-color: var(--background-color);"></div>
<div class="info-box">
<h3>About BasketBros</h3>
<p>Alt link: www.lookinthe.net. Fun, fast-paced 1 on 1 basketball game with lots of action. Pick from a variety of characters and let the play begin. Go for crazy dunks, hit the stepback 3, or maybe even punch out your opponent!</p>
<p>The controls are very simple: Use either the arrow keys or wasd to control your baller. Jump by pressing the up arrow, and jump again to shoot. Enter/Space will attack if you are on defense.</p>
<p>Be sure to allow notifications so you will know when fun new basketball characters are added to the game!</p>
</div>
<div class="info-box">
<h3>FAQ</h3>
<b>Why isn't the game loading?</b>
<p>You should check your internet connection and make sure our site isn't blocked. Also, disable all ad blockers.</p>
<b>How do I play?</b>
<p>Just hop in and go dunk on some fools!</p>
<b>Which browser should I use?</b>
<p>You should use chrome. It is the only browser guaranteed to work. BasketBros has also been tested to work on FireFox and Safari, but not guaranteed.</p>
</div>
</div>
<div class="section">
<div style="display: flex; flex-direction: row; flex-wrap: wrap; margin: 10px; padding: 2px; justify-content: center;">
<div class="partner">
<script>
function getPartner(y) {
var referrer = document.referrer;
if (referrer.includes("crazygames")) {
return (
'<center><br><div style="transform:translate(' +
"-50" +
"px," +
y +
'px); width=70%; z-index: 101; text-align:right;><font style="font-weight:normal;font-family:Arial;color:#010101;font-size:20px;"><a href="https://crazygames.com" target="_blank">Crazy Games</a></font><br></div></center>'
);
} else if (referrer.includes("iogames.space")) {
return (
'<center><br><div style="transform:translate(' +
"-50" +
"px," +
y +
'px); width=70%; z-index: 101; text-align:right;><font style="font-weight:normal;font-family:Arial;color:#010101;font-size:20px;"><a href="https://iogames.space" target="_blank">IO Games</a></font><br></div></center>'
);
} else if (referrer.includes("poki")) {
return (
'<center><br><div style="transform:translate(' +
"-50" +
"px," +
y +
'px); width=70%; z-index: 101; text-align:right;><font style="font-weight:normal;font-family:Arial;color:#010101;font-size:20px;">Check out our friends at <a href="https://poki.com" target="_blank">Poki</a></font><br></div></center>'
);
} else if (referrer.includes("silver")) {
return (
'<center><br><div style="transform:translate(' +
"-50" +
"px," +
y +
'px); width=70%; z-index: 101; text-align:right;><font style="font-weight:normal;font-family:Arial;color:#010101;font-size:20px;"><a href="https://silvergames.com" target="_blank">Silver Games</a></font><br></div></center>'
);
} else {
return (
'<center><br><div style="transform:translate(' +
"-50" +
"px," +
y +
'px); width=70%; z-index: 101; text-align:right;><font style="font-weight:normal;font-family:Arial;color:#010101;font-size:20px;"><a href="https://crazygames.com" target="_blank">Crazy Games</a></font><br></div></center>'
);
}
return "";
}
document.write(getPartner(0));
</script>
</div>
<br />
<br />
<div class="partner">&nbsp; Would you like to be a partner too? Contact: echo-the-coder@tuta.io </div>
</div>
</div>
<div class="section">
<div style="display: flex; flex-direction: row; flex-wrap: wrap; margin: 10px; padding: 2px; justify-content: center;">
<div class="partner">Mirrors/Proxies: <a href="/">Basket Bros Unblocked / BasketBros Unblocked</a><br /></div>
</div>
</div>
<script data-cfasync="false" src="cdn-cgi/scripts/5c5dd728/cloudflare-static/email-decode.min.js"></script>
<script>
var lastRefresh = 0;
function ShowAd1(doRefresh) {
if (/Android|webOS|iPhone|iPad|iPod|Opera Mini/i.test(navigator.userAgent)) {
return;
}
var l = window.document.getElementById("basketbros-io_160x600");
if (l == null) return;
l.style.display = "";
l.style.visibility = "visible";
l = window.document.getElementById("basketbros-io_160x600");
if (l == null) return;
l.style.display = "";
l.style.visibility = "visible";
if (typeof gCrazySDK !== "undefined") {
var d = new Date();
var ms = d.getTime();
if (ms - lastRefresh > 10000) {
gCrazySDK.requestResponsiveBanner(["basketbros-io_160x600"]);
lastRefresh = ms;
}
} else if (typeof aipDisplayTag !== "undefined") {
aipDisplayTag.refresh("basketbros-io_160x600");
aipDisplayTag.refresh("basketbros-io_160x600_2");
}
}
var lastRefresh6 = 0;
function ShowAd6() {
if (/Android|webOS|iPhone|iPad|iPod|Opera Mini/i.test(navigator.userAgent)) {
return;
}
var l = window.document.getElementById("basketbros-io_300x250");
if (l == null) {
return;
}
l.style.display = "";
l.style.visibility = "visible";
if (typeof gCrazySDK !== "undefined") {
var d = new Date();
var ms = d.getTime();
if (ms - lastRefresh6 > 10000) {
//hndled by the first banner request
//gCrazySDK.requestBanner([{containerId: 'basketbros-io_300x250',size: '300x250',}]);
//gCrazySDK.requestResponsiveBanner(["basketbros-io_300x250"]);
lastRefresh6 = ms;
}
} else if (typeof aipDisplayTag !== "undefined") {
aipDisplayTag.refresh("basketbros-io_300x250");
}
}
var lastRefresh2 = 0;
function ShowAd2() {
if (/Android|webOS|iPhone|iPad|iPod|Opera Mini/i.test(navigator.userAgent)) {
return;
}
var l = window.document.getElementById("basketbros-io_300x250_2");
if (l == null) return;
l.style.display = "";
l.style.visibility = "visible";
if (typeof gCrazySDK !== "undefined") {
var d = new Date();
var ms = d.getTime();
if (ms - lastRefresh2 > 10000) {
//hndled by the first banner request
//gCrazySDK.requestBanner([{containerId: 'basketbros-io_300x250_2',size: '300x250',}]);
gCrazySDK.requestResponsiveBanner(["basketbros-io_300x250", "basketbros-io_300x250_2"]);
lastRefresh2 = ms;
}
} else if (typeof aipDisplayTag !== "undefined") {
aipDisplayTag.refresh("basketbros-io_300x250_2");
}
}
function ShowAd3() {
if (/Android|webOS|iPhone|iPad|iPod|Opera Mini/i.test(navigator.userAgent)) {
return;
}
var l = window.document.getElementById("basketbros-io_728x90");
if (l == null) return;
l.style.display = "";
l.style.visibility = "visible";
if (typeof gCrazySDK !== "undefined") {
gCrazySDK.requestResponsiveBanner(["basketbros-io_728x90"]);
} else if (typeof aipDisplayTag !== "undefined") aipDisplayTag.refresh("basketbros-io_728x90");
}
function ShowAd4() {
if (/Android|webOS|iPhone|iPad|iPod|Opera Mini/i.test(navigator.userAgent)) {
return;
}
if (window.innerWidth < 1200) return;
var l = window.document.getElementById("basketbros-io_player_300x600");
if (l == null) return;
l.style.display = "";
l.style.visibility = "visible";
if (typeof gCrazySDK !== "undefined") {
gCrazySDK.requestResponsiveBanner(["basketbros-io_player_300x600"]);
//gCrazySDK.requestBanner([{containerId: 'basketbros-io_player_300x600',size: '300x600',}]);
} else if (typeof aipDisplayTag !== "undefined") aipDisplayTag.refresh("basketbros-io_player_300x600");
}
function ShowAd7() {
if (/Android|webOS|iPhone|iPad|iPod|Opera Mini/i.test(navigator.userAgent)) {
return;
}
if (window.innerWidth < 1200) return;
var l = window.document.getElementById("basketbros-io_300x600_m");
if (l == null) return;
l.style.display = "";
l.style.visibility = "visible";
if (typeof gCrazySDK !== "undefined") {
gCrazySDK.requestResponsiveBanner(["basketbros-io_player_300x600"]);
//gCrazySDK.requestBanner([{containerId: 'basketbros-io_player_300x600',size: '300x600',}]);
} else if (typeof aipDisplayTag !== "undefined") aipDisplayTag.refresh("basketbros-io_300x600_m");
}
function right(str, chr) {
return str.slice(str.length - chr, str.length);
}
function SetCGInviteLink() {
if (typeof gCrazySDK !== "undefined") {
var meta = document.getElementById("cglink");
var aStr = meta.value;
aStr = right(aStr, 8);
var aCGLink = gCrazySDK.inviteLink({ roomId: aStr });
meta.value = aCGLink;
meta.select;
document.execCommand("Copy");
console.log("COPIED CG URL");
}
}
function ShowAdBreak() {
//check if the adslib is loaded correctly or blocked by adblockers etc.
if (typeof gCrazySDK !== "undefined") {
Main.DoneInterstitialAd(false);
return;
}
if (typeof adplayer === "undefined") {
Main.DoneInterstitialAd(true);
return;
}
aiptag.cmd.player.push(function () {
adplayer.startAdBreak();
});
}
document.getElementById("openfl-content").addEventListener("wheel", doScroll);
function doScroll(event) {
window.scroll(0, window.scrollY + event.deltaY);
}
/* setInterval(function () {
var l = window.document.getElementById('basketbros-io_160x600');
if(l != null && typeof l.style !== 'undefined' && l.style.visibility == 'visible') {
ShowAd5();
}
}, 30000);
setInterval(function () {
var l = window.document.getElementById('basketbros-io_160x600_2');
if(l != null && typeof l.style !== 'undefined' && l.style.visibility == 'visible') {
ShowAd1();
}
}, 32000);*/
var sid = "vqpdso5mdr0n80kkknmkbi3ntg";
function updateStatus(fromEvent = false) {
const req = new XMLHttpRequest();
var aStr = "recordsession.php?s=" + sid;
if (fromEvent == true) aStr = aStr + "&e=1";
req.open("GET", aStr);
req.send();
}
function SendEvent(theEvent, theAction) {
gtag(theEvent, theAction);
updateStatus(true);
//console.log("Sending event: " + theEvent + "/" + theAction);
}
//setInterval(function() { updateStatus, 4*60*1000);
updateStatus(true);
//setInterval(ClearAds, 2000);
</script>
</body>
</html>