From bd86f4fc950cdc5bb4cb346f48c14a6e356dc4fb Mon Sep 17 00:00:00 2001 From: David Luevano Alvarado Date: Thu, 7 Mar 2024 21:55:16 -0600 Subject: stop tracking live/ --- live/static/scripts/gb.js | 61 ----------------------------------------------- 1 file changed, 61 deletions(-) delete mode 100644 live/static/scripts/gb.js (limited to 'live/static/scripts/gb.js') diff --git a/live/static/scripts/gb.js b/live/static/scripts/gb.js deleted file mode 100644 index e9eb896..0000000 --- a/live/static/scripts/gb.js +++ /dev/null @@ -1,61 +0,0 @@ -// Handle image refresh. -var newImage; -window.onload = function (){ - reimg = document.getElementById('game_img'); - setInterval(function (){ - reimg.src = 'https://gb.ezclap.xyz/image?r=' + Math.random(); - }, 1000) -} - -function input(button){ - - if(typeof button == 'number'){ - $.ajax({ - url: 'https://gb.ezclap.xyz/control?button=' + button + '&callback=https://gb.luevano.xyz', - type: 'GET', - complete: function(xhr){ - let statusCode = xhr.status; - if(statusCode >= 400){ - console.log('Error code: ' + statusCode + '. On input: ' + button); - } - } - }); - } -} - -// jQuery/ajax for handling input. -$(document).ready(function (){ - - $('#btn_right').click(function (){ - input(0); - }); - - $('#btn_left').click(function (){ - input(1); - }); - - $('#btn_up').click(function (){ - input(2); - }); - - $('#btn_down').click(function (){ - input(3); - }); - - $('#btn_a').click(function (){ - input(4); - }); - - $('#btn_b').click(function (){ - input(5); - }); - - $('#btn_select').click(function (){ - input(6); - }); - - $('#btn_start').click(function (){ - input(7); - }); - -}); -- cgit v1.2.3-54-g00ecf