Added Chatbox

This commit is contained in:
TheEmeraldStarr 2020-10-19 10:02:04 -07:00
parent f5d9539d09
commit b9e47f1c20
3 changed files with 66 additions and 0 deletions

36
public/expr/ch.js Normal file
View file

@ -0,0 +1,36 @@
function $(id) {
return document.getElementById(id);
};
//AL
// $('al').onclick = function() {
// document.cookie = '__alloy_cookie_auth=yes; expires=' + (Date.now() + 259200) + '; SameSite=None; domain=.' + auth + '; path=/; Secure;';
// return false;
//};
window.onload = function() {
var url = $('url').value;
var det = document.domain;
var domain = det.replace('www.', '').split(/[/?#]/)[0];
const origin = btoa(url)
window.location.href = "https://c" + domain + "/app";
document.cookie = '__chauth=yes; expires=' + (Date.now() + 259200) + '; SameSite=Lax; domain=.' + auth + '; path=/; Secure;';
return false;
};
// Cookie Auth
var host = location.hostname.split('.');
var auth = location.hostname;
if (host.length == 3) {
auth = `${host[1]}.${host[2]}`;
}
Array.from(document.getElementsByTagId('button')).forEach(e => {
e.addEventListener('click', () => {
document.cookie = 'session; max-age=259200; SameSite=None; domain=' + auth + '; path=/; Secure;';
});
});
window.onload = function() {
$('url').focus();
}

View file

@ -39,6 +39,7 @@
<li class="nav-item" role="presentation"><a class="nav-link" href="/g.html" style="font-family: 'Montserrat Alternates', sans-serif;">Gam<wbr>es</a></li>
<li class="nav-item" role="presentation"><a class="nav-link" href="/y.html" style="font-family: 'Montserrat Alternates', sans-serif;">You<wbr>Tube</a></li>
<li class="nav-item" role="presentation"><a class="nav-link" href="/p.html" style="font-family: 'Montserrat Alternates', sans-serif;">Disc<wbr>ord</a></li>
<li class="nav-item" role="presentation"><a class="nav-link" href="/n.html" style="font-family: 'Montserrat Alternates', sans-serif;">Chatb<wbr>ox</a></li>
<li class="nav-item dropdown"><a class="dropdown-toggle nav-link" data-toggle="dropdown" aria-expanded="false" href="#" style="opacity: 0.80;color: rgb(255,255,255);font-family: 'Montserrat Alternates', sans-serif;">More</a>
<div class="dropdown-menu" role="menu" style="background-color: rgb(33,30,30);font-family: 'Titillium Web', sans-serif;padding: 17%;padding-top: 10%;padding-bottom: 10%;"><a class="dropdown-item text-left text-white-50" role="presentation" href="/k.html" style="color: rgb(255,255,255);padding: 0%;font-family: Lato, sans-serif;">Krunker</a><a class="dropdown-item text-left text-white-50"
role="presentation" href="/info.html" style="color: rgb(255,255,255);padding: 0%;font-family: Lato, sans-serif;">Docs</a><a class="dropdown-item text-white-50" role="presentation" href="/c.html" style="color: rgb(255,255,255);padding: 0%;font-family: Lato, sans-serif;">Credits</a></div>

29
public/n.html Normal file
View file

@ -0,0 +1,29 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, shrink-to-fit=no">
<!-- Important: Use &#8203; to mess with keywords. -->
<title>H&#8203;oly Unb&#8203;loc&#8203;ke&#8203;r</title>
<meta name="description" content="G&#8203;et p&#8203;ast in&#8203;te&#8203;r&#8203;net ce&#8203;n&#8203;s&#8203;or&#8203;sh&#8203;ip tod&#8203;a&#8203;y!
:D">
<link rel="icon" type="image/png" sizes="32x32" href="assets/img/i.png">
<style type="text/css">
body,
html {
margin: 0;
padding: 0;
height: 100%;
overflow: hidden;
}
</style>
</head>
<body>
<!-- AL YT -->
<script src="/expr/ch.js"></script>
</body>
</html>