Change favicon
23
3ds/chat/burger.js
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
window.eggActive = false;
|
||||
|
||||
function eggyou(){
|
||||
if(window.eggActive == false){
|
||||
if(!document.getElementById("burg")){
|
||||
x = document.createElement("div");
|
||||
x.id = "burg"; x.style="zindex: 200000; transition-timing-function: ease-out; transition: 4.0s; position: absolute; top: 25px; left: 50%";
|
||||
img = document.createElement("img");
|
||||
img.src = "i/icon_burger.gif";
|
||||
img.id="burger";
|
||||
img.width = "16";
|
||||
img.height = "16";
|
||||
img.style = "transition: all 4s bilinear; width: 32px; height: auto;"; x.appendChild(img); document.body.appendChild(x);
|
||||
window.burgerPix = 32;
|
||||
img.style.height = "auto";
|
||||
window.burgerInt = setInterval(function(){
|
||||
window.burgerPix += 5;
|
||||
img.style.width = window.burgerPix + "px";
|
||||
}, 100);
|
||||
setTimeout(function(){ clearInterval(window.burgerInt); window.eggActive = true; document.getElementById("burg").remove(); }, 4000);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -14,6 +14,7 @@ if(isset($_GET["room"])){
|
|||
|
||||
<html>
|
||||
<head>
|
||||
<script src="burger.js"></script>
|
||||
<style>
|
||||
body {
|
||||
margin: 0px;
|
||||
|
|
@ -39,6 +40,7 @@ if(isset($_GET["room"])){
|
|||
height: 160px;
|
||||
background-color: #ffffff;
|
||||
overflow-y: scroll;
|
||||
overflow-x: hidden;
|
||||
}
|
||||
.scrollable {
|
||||
overflow-y: scroll;
|
||||
|
|
|
|||
BIN
3ds/chat/i/icon_foreveralone.png
Normal file
|
After Width: | Height: | Size: 1.6 KiB |
BIN
3ds/chat/i/icon_megusta.png
Normal file
|
After Width: | Height: | Size: 1.2 KiB |
BIN
3ds/chat/i/icon_ponything.png
Normal file
|
After Width: | Height: | Size: 1.1 KiB |
|
Before Width: | Height: | Size: 3.7 KiB After Width: | Height: | Size: 698 B |
|
Before Width: | Height: | Size: 1.3 KiB After Width: | Height: | Size: 873 B |
|
Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 772 B |
|
|
@ -62,6 +62,8 @@ if(isset($_GET["room"])){
|
|||
</style>
|
||||
|
||||
<!-- Insert polyfill -->
|
||||
<!-- The burger -->
|
||||
<script type="text/javascript" src="burger.js"></script>
|
||||
<script type="text/javascript" src="https://polyfill.io/v3/polyfill.min.js?features=XMLHttpRequest%2CMediaQueryList.prototype.addEventListener"></script>
|
||||
<script type="text/javascript">
|
||||
function lc(xhr){
|
||||
|
|
|
|||
|
|
@ -25,13 +25,13 @@
|
|||
"R(" => "<img alt = 'negitiveepicface' src='i/icon_unknown1.png' />",
|
||||
"RB:" => "<img alt='rainbowepicface' src='i/rbow.png' />",
|
||||
"R:" => "<img alt='epicface' src='i/epic.png' />",
|
||||
":ponything:" => "<img alt='ponything' src='i/icon_ponything.jpg' />",
|
||||
":ponything:" => "<img alt='ponything' src='i/icon_ponything.png' />",
|
||||
":waah:" => "<img alt='waah' src='i/waah.gif' />",
|
||||
":nuu:" => "<img alt='nuu' src='i/nuu.gif' />",
|
||||
":caps:" => "<img alt='caps' src='i/caps.gif' />",
|
||||
":lenny:" => "( ͡° ͜ʖ ͡°)",
|
||||
":shrug:" => "¯\_(ツ)_/¯",
|
||||
":megusta:" => "<img alt='megusta' src='i/icon_megusta.jpg' />",
|
||||
":megusta:" => "<img alt='megusta' src='i/icon_megusta.png' />",
|
||||
":lol:" => "<img alt='lol' src='i/lol.png' />",
|
||||
":troll:" => "<img alt='troll' src='i/icon_trollface.png' />",
|
||||
":no:" => "<img alt='no' src='i/no.png' />",
|
||||
|
|
@ -39,7 +39,7 @@
|
|||
":raeg:" => "<img alt='raeg' src='i/raeg.png' />",
|
||||
":ohplz:" => "<img alt='ohplz' src='i/please.png' />",
|
||||
":ydsay:" => "<img alt='ydsay' src='i/buy_youdontsay.png' />",
|
||||
":falone:" => "<img alt='falone' src='i/icon_foreveralone.jpg' />",
|
||||
":falone:" => "<img alt='falone' src='i/icon_foreveralone.png' />",
|
||||
":doge:" => "<img alt='<DOGE (not the currency)>' src='i/doge.png' />",
|
||||
":trig:" => "<img alt='triggered' src='i/triggered.jpg' />",
|
||||
":wolfthing:" => "<img alt='<•o•>' src='i/wolfthing.gif' />",
|
||||
|
|
|
|||
|
|
@ -101,6 +101,22 @@ function hookmsg($qWho, $qMsg){
|
|||
}
|
||||
}else if(startsWith($_POST["msg"], "/shake")){
|
||||
echo '::eval;window.shakeIt = setInterval(function(){document.body.style = "position:absolute;left:"+(Math.floor(Math.random() * (Math.floor(10) - Math.ceil(0) + 1)) + Math.ceil(0))+"px;top:"+(Math.floor(Math.random() * (Math.floor(10) - Math.ceil(0) + 1)) + Math.ceil(0))+"px;"}, 100); setTimeout(function(){clearInterval(window.shakeIt); document.body.style = "";}, 3000);';
|
||||
}else if(startsWith($_POST["msg"], "/kp ")){
|
||||
if(file_exists("../acc/data/".str_replace("/kp ", "",$_POST["msg"]).".json")){
|
||||
// user exists
|
||||
$script = '<b onload=""><u><img onload="eggyou();" src="i/icon_burger.gif" /> Somebody threw a patty!!</u></b>';
|
||||
echo "::message;".$script;
|
||||
if(count($jsonD["msg"])+1 >= strval($jsonD["max"])){
|
||||
array_pop($jsonD["msg"]);
|
||||
}
|
||||
hookmsg("System", "Somebody threw a patty!");
|
||||
$finalmsg = array("cont"=>$script,"time"=>time(),"type"=>"rawbr","color"=>"grey","visibility"=>"all","from"=>$_SESSION["ts_user"]);
|
||||
array_unshift($jsonD["msg"], $finalmsg);
|
||||
$jsonString = json_encode($jsonD);
|
||||
file_put_contents("data/".$room.".json",$jsonString);
|
||||
}
|
||||
|
||||
|
||||
}else if(startsWith($_POST["msg"], "/query ")){
|
||||
if(str_replace("/query ", "",$_POST["msg"]) !== ""){
|
||||
if(file_exists("../acc/data/".str_replace("/query ", "",$_POST["msg"]).".json")){
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
<?php
|
||||
$isDSi = false;
|
||||
$width = "320";
|
||||
$height1 = "218";
|
||||
$height1 = "215";
|
||||
$height2 = "212";
|
||||
if(strpos($_SERVER["HTTP_USER_AGENT"], "Nintendo DSi") !== false){
|
||||
$width = "240";
|
||||
|
|
|
|||
BIN
docs/favicon.ico
|
Before Width: | Height: | Size: 67 KiB After Width: | Height: | Size: 59 KiB |
BIN
favicon.ico
Normal file
|
After Width: | Height: | Size: 59 KiB |
|
Before Width: | Height: | Size: 11 KiB After Width: | Height: | Size: 11 KiB |