mirror of
https://github.com/KevinMidboe/zoff.git
synced 2025-10-29 18:00:23 +00:00
Made remote to onepage site, and changed the pingTimeout serverside
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
var start = true;
|
||||
var id;
|
||||
|
||||
$(document).ready(function (){
|
||||
document.title = "Zöff Remote";
|
||||
@@ -30,10 +29,13 @@ $("#skipbutton").on("click", function()
|
||||
|
||||
$("#remoteform").on("submit", function()
|
||||
{
|
||||
/*
|
||||
if(start)
|
||||
window.location.href = '/remote/'+document.getElementById("remoteform").chan.value;
|
||||
else
|
||||
Remotecontroller.control();
|
||||
*/
|
||||
Remotecontroller.control();
|
||||
});
|
||||
|
||||
var Remotecontroller = {
|
||||
@@ -42,8 +44,12 @@ var Remotecontroller = {
|
||||
{
|
||||
if(start)
|
||||
{
|
||||
if(!id)id = $("#code-input").val().toLowerCase();
|
||||
$("#code-input").val("");
|
||||
if(!id)
|
||||
{
|
||||
id = document.getElementById("remoteform").chan.value;
|
||||
window.history.pushState("object or string", "Title", "/remote/"+id);
|
||||
}
|
||||
document.getElementById("remoteform").chan.value = "";
|
||||
start = false;
|
||||
|
||||
$(".rc").css("display", "block");
|
||||
|
||||
Reference in New Issue
Block a user