Skip to content

Instantly share code, notes, and snippets.

@mrcsparker
Created September 1, 2016 02:34
Show Gist options
  • Save mrcsparker/224a0f70aaf78cbb36842a27e17e73e0 to your computer and use it in GitHub Desktop.
Save mrcsparker/224a0f70aaf78cbb36842a27e17e73e0 to your computer and use it in GitHub Desktop.
AB Solutions - This House Has People In It
$(document).ready(function() {
/**
* @return {undefined}
*/
function val() {
$("input").val(function() {
return this.value.toLowerCase();
});
}
/**
* @return {undefined}
*/
function get() {
$("input").focus();
$("html, body").scrollTop($(document).height());
}
/**
* @return {undefined}
*/
function start() {
$(document).on("showlog", "#selectlog", function(dataAndEvents) {
val();
/** @type {string} */
var run = "help";
/** @type {string} */
var bubbles = "print";
var name = $("#selectlog").val();
/** @type {string} */
var eval = "cd..";
/** @type {Array} */
var elems = ["00001", "00012", "00032", "00042", "00083", "00147", "00443", "00456", "00949", "01088", "01263", "02114", "02955", "03560", "04520", "05008", "07264", "08232", "11009", "22038", "30002", "31786", "40234", "50032", "64830", "66392", "82301", "87600", "96200"];
/** @type {string} */
var ch = "00451";
if ($.inArray(name, elems) !== -1) {
if (/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)) {
window.open("http://i.cdn.turner.com/adultswim/big/infomercials/thhpii/l/" + name + ".mp4", "_blank");
} else {
/** @type {(Window|null)} */
var w = window.open("", "", "width=630, height=340,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no");
w.document.write("<video id='log' style='margin:-20px;' width='650' height='360' autoplay><source src='http://i.cdn.turner.com/adultswim/big/infomercials/thhpii/l/" + name + ".mp4' type='video/mp4'></video><script src='https://ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js'>\x3c/script><script>document.title = '" + name + "'; document.getElementById('log').addEventListener('ended',myHandler,false);function myHandler(e) {window.close();}\x3c/script>");
}
$("enterlog, #selectlog").remove();
$("body").append("Enter Log Number > Retrieving " + name + "<br>");
$("body").append('<enterlog>Enter Log Number > <input type="text" id="selectlog"/><br><br></enterlog>');
get();
} else {
if (name == ch) {
/** @type {string} */
var x_pj8OtyO2I = "x-pj8OtyO2I";
if (/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)) {
window.open("https://www.youtube.com/embed/" + x_pj8OtyO2I + "?modestbranding=1&controls=0&rel=0&showinfo=0&start=10&autoplay=1", "_blank");
} else {
/** @type {(Window|null)} */
w = window.open("", "", "width=630, height=340,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no");
w.document.write('<div id="player" style="margin:-8px"></div><script src="https://ajax.googleapis.com/ajax/libs/jquery/2.2.0/jquery.min.js">\x3c/script><script src="http://www.youtube.com/player_api">\x3c/script><script>var player;function onYouTubePlayerAPIReady() {player = new YT.Player("player", {height: "360",width: "640",videoId: "' + x_pj8OtyO2I + '",playerVars: {"showinfo": 0,"controls": 0,"rel": 0,"modestbranding": 1,"start": 10,},events: {"onReady": onPlayerReady,"onStateChange": onPlayerStateChange}});}function onPlayerReady(event) {event.target.playVideo();}function onPlayerStateChange(event) {if(event.data === 0) {window.close();}} $("body").hide();$("html").css("background-color","blue");setTimeout(function(){$("body").show();},4000);\x3c/script>');
}
$("enterlog, #selectlog").remove();
$("body").append("Enter Log Number > Retrieving " + name + "<br>");
$("body").append('<enterlog>Enter Log Number > <input type="text" id="selectlog"/><br><br></enterlog>');
get();
}
if (name == eval) {
$(document).off("showlog", "#selectlog");
$("enterlog, #selectlog").remove();
$("body").append("Enter Log Number > ../<br><br>");
update();
}
if (!(name == eval) && (!(name == ch) && (!(name == run) && !(name == bubbles)))) {
$("enterlog, #selectlog").remove();
$("body").append("Enter Log Number > Bad command or filename<br>");
$("body").append('<enterlog>Enter Log Number > <input type="text" id="selectlog"/><br><br></enterlog>');
get();
}
}
});
}
/**
* @return {undefined}
*/
function callback() {
$(document).on("gotoarchives", "#archivespword", function(dataAndEvents) {
val();
/** @type {string} */
var vs = "help";
/** @type {string} */
var ms = "print";
/** @type {string} */
var x = "sadday";
var g = $("#archivespword").val();
/** @type {string} */
var cmax = "cd..";
if (g == x) {
$(document).off("gotoarchives", "#archivespword");
$("archives").replaceWith("Enter Password > ******<br><br>");
setTimeout(function() {
$("body").append("Password Authenticated<br><br>");
}, 200);
setTimeout(function() {
$.get("text.html", function(sourceContainer) {
var sorted = $(sourceContainer).find("files");
$("body").append(sorted);
});
}, 400);
setTimeout(function() {
$("files").contents().unwrap();
}, 600);
setTimeout(function() {
get();
}, 800);
setTimeout(function() {
init();
}, 1E3);
}
if (!(g == vs) && (!(g == ms) && !(g == x))) {
if (g == cmax) {
$("enterarchives").remove();
$("archives").replaceWith("Enter Password > ../<br><br>");
$("body").append("<br>");
$(document).off("gotoarchives", "#archivespword");
update();
} else {
$("body").append("Incorrect password<br>");
$("err").remove();
$("body").append("<err></err>");
$("#archivespword").val("");
get();
}
}
});
}
/**
* @return {undefined}
*/
function init() {
$(document).on("keyup", "#thefile", function(event) {
if (event.keyCode == 13) {
$(this).trigger("showfile");
}
});
$(document).on("showfile", "#thefile", function(dataAndEvents) {
val();
var data = $("#thefile").val();
var f = data.toUpperCase();
/** @type {string} */
var D = "cd..";
/** @type {string} */
var C = "help";
/** @type {string} */
var FALSE = "print";
/** @type {string} */
var newModel = "file80072";
/** @type {Array} */
var inheritables = ["file16988", "file25448", "file44876", "file69051", "file69992", "file19235", "file51235", "file58992", "file67020", "file78324"];
/** @type {Array} */
var elems = ["file06077", "file06126", "file08488", "file12520", "file24349", "file30274", "file34720", "file37374", "file46442", "file53439", "file82377", "file86875", "file87526", "file87567", "file88521", "file89003", "file89818", "file90043", "file96246", "file99712"];
/** @type {Array} */
var selection = ["file02203", "file13184", "file34248", "file50834", "file54851", "file63432", "file66589", "file67087", "file67264", "file82971", "file82983", "file93737"];
if ($.inArray(data, inheritables) !== -1) {
/** @type {(Window|null)} */
var pagerNum = window.open("archives/RECOVERED_FILES/" + data, "", "width=600,height=900,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no");
var o = data.toUpperCase();
$("loadfiles").remove();
$("body").append("Enter Filename > Retrieving " + o + "<br>");
$("body").append('<loadfiles>Enter Filename > <input type="text" id="thefile"></loadfiles>');
get();
}
if ($.inArray(data, elems) !== -1) {
setTimeout(function() {
$("loadfiles").replaceWith("Enter Filename > Retrieving File<br><br>");
}, 200);
setTimeout(function() {
$.get("text.html", function(sourceContainer) {
var sHTML = $(sourceContainer).find(data);
$("body").append(sHTML);
});
}, 400);
setTimeout(function() {
$(data).contents().unwrap();
}, 800);
setTimeout(function() {
$("body").append('<loadfiles>Enter Filename > <input type="text" id="thefile"></loadfiles>');
}, 1E3);
setTimeout(function() {
get();
}, 1200);
}
if ($.inArray(data, selection) !== -1) {
if (/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)) {
window.open("archives/RECOVERED_FILES/" + data + ".wav", "_blank");
} else {
$("body").append("<wav><audio id='wav' autoplay><source src='archives/RECOVERED_FILES/" + data + ".wav' type='audio/wav'></audio><script>document.getElementById('wav').addEventListener('ended',myHandler,false);function myHandler(e) {$('wav').remove();}\x3c/script></wav>");
}
$("loadfiles").remove();
$("body").append("Enter Filename > Playing " + f + "<br>");
$("body").append('<loadfiles>Enter Filename > <input type="text" id="thefile"></loadfiles>');
get();
}
if (data == D) {
$(document).off("showfile", "#thefile");
$("loadfiles").remove();
$("body").append("Enter Filename > ../<br><br>");
update();
}
if (data == newModel) {
if (/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)) {
$("loadfiles").remove();
$("body").append("Enter Filename > Program could not start because the following file is missing or corrupt:<br>:>/ARCHIVES/RECOVERED_FILES/boomcat.dll<br>Please re-install a copy for the above file.<br>");
$("body").append('<loadfiles>Enter Filename > <input type="text" id="thefile"></loadfiles>');
} else {
$("loadfiles, audio").remove();
$("body").append("Enter Filename > Running FILE80072.EXE . . .<br>");
setTimeout(function() {
$("body").append('<exe><iframe frameborder="0" src="boomcat/index.html"></iframe></exe>');
}, 200);
setTimeout(function() {
$("exe").css("visibility", "visible");
}, 800);
$(document).on("keyup", "#printq", function(event) {
if (event.keyCode == 13) {
$(this).trigger("printThat");
}
});
$(document).on("printThat", "#printq", function(dataAndEvents) {
val();
var ms = $("#printq").val();
/** @type {string} */
var s = "y";
/** @type {string} */
var d = "n";
if (ms == s) {
$(document).off("printThat", "#printq");
setTimeout(function() {
$("#printq").replaceWith("Y");
}, 200);
setTimeout(function() {
$("body").append('<iframe src="boomcat/assets/youwin.pdf" id="youwin"></iframe>');
}, 400);
setTimeout(function() {
$("#youwin").get(0).contentWindow.print();
}, 1E3);
setTimeout(function() {
$("body").append('<loadfiles>Enter Filename > <input type="text" id="thefile"></loadfiles>');
}, 1200);
setTimeout(function() {
get();
}, 1400);
setTimeout(function() {
$("#youwin").remove();
}, 1800);
}
if (ms == d) {
$("body").append('<loadfiles>Enter Filename > <input type="text" id="thefile"></loadfiles>');
get();
$(document).off("printThat", "#printq");
}
if (!(ms == s) && !(ms == d)) {
$("#printq").replaceWith("Error");
$("body").append('Print Award? Y / N > <input type="text" id="printq"><br>');
get();
}
});
}
}
if ($.inArray(data, inheritables) == -1 && ($.inArray(data, elems) == -1 && ($.inArray(data, selection) == -1 && (!(data == D) && (!(data == newModel) && (!(data == C) && !(data == FALSE))))))) {
$("loadfiles").replaceWith("Enter Filename > Bad command or filename<br>");
$("body").append('<loadfiles>Enter Filename > <input type="text" id="thefile"></loadfiles>');
get();
}
});
}
/**
* @return {undefined}
*/
function setup() {
$(document).on("showlurker", "#thing", function(dataAndEvents) {
val();
/** @type {string} */
var wanted = "help";
/** @type {string} */
var CLEANUP = "print";
/** @type {string} */
var scope = "waarnemin";
var type = $("#thing").val();
/** @type {string} */
var curCSS = "cd..";
if (type !== scope) {
if (type == curCSS) {
$("x").remove();
$("xxxx:last-of-type").replaceWith("Enter Password > ../<br><br>");
$(document).off("showlurker", "#thing");
update();
}
if (!(type == curCSS) && (!(type == wanted) && !(type == CLEANUP))) {
$("body").append("Incorrect password<br>");
$("err").remove();
$("body").append("<err></err>");
$("#thing").val("");
get();
}
} else {
$("#thing, err").remove();
$(document).off("showlurker", "#thing");
$("xxxx:last-of-type").replaceWith("Enter Password > *********<br><br>");
setTimeout(function() {
$("body").append("Password Authenticated<br><br>");
}, 200);
setTimeout(function() {
$.get("text.html", function(sourceContainer) {
var lineSeparator = $(sourceContainer).find("xxx");
$("body").append(lineSeparator);
});
}, 400);
setTimeout(function() {
$("xxx").contents().unwrap();
}, 600);
setTimeout(function() {
$("body").append("<br><br><enternumber><numb>Enter Number > <input type='text' id='numberxx'/><br></numb></enternumber>");
}, 800);
setTimeout(function() {
get();
}, 1E3);
}
});
$(document).on("keyup", "#numberxx", function(event) {
if (event.keyCode == 13) {
$(this).trigger("showxx");
}
});
$(document).on("showxx", "#numberxx", function(dataAndEvents) {
val();
/** @type {string} */
var c2 = "help";
/** @type {string} */
var c1 = "print";
var i = $("#numberxx").val();
/** @type {Array} */
var elems = ["1", "2", "3"];
/** @type {string} */
var last = "cd..";
if ($.inArray(i, elems) !== -1) {
if (/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)) {
window.open("l/x" + i + ".mp4", "_blank");
} else {
/** @type {(Window|null)} */
var printWin = window.open("", "", "width=630, height=340,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no");
printWin.document.write("<video id='xx' style='margin:-20px;' width='650' height='360' autoplay><source src='l/x" + i + ".mp4' type='video/mp4'></video><script src='https://ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js'>\x3c/script><script>document.title = '" + i + "'; document.getElementById('xx').addEventListener('ended',myHandler,false);function myHandler(e) {window.close();}\x3c/script>");
}
$("enternumber").remove();
$("body").append("Enter Number > Retrieving XXXXXXX" + i + "<br>");
$("body").append("<enternumber><numb>Enter Number > <input type='text' id='numberxx'/><br></numb></enternumber>");
get();
}
if ($.inArray(i, elems) == -1) {
if (i == last) {
$(document).off("showxx", "#numberxx");
$("enternumber").remove();
$("body").append("Enter Number > ../<br><br>");
update();
}
if (!(i == last) && (!(i == c2) && !(i == c1))) {
$("enternumber").remove();
$("body").append("Enter Number > Bad command or filename<br>");
$("body").append("<enternumber>Enter Number > <input type='text' id='numberxx'/><br></enternumber>");
get();
}
}
});
}
/**
* @return {undefined}
*/
function update() {
$("err").after("<br>").remove();
$.get("text.html", function(sourceContainer) {
var lineSeparator = $(sourceContainer).find("logs_archives");
$("body").append(lineSeparator);
});
setTimeout(function() {
$("logs_archives").contents().unwrap();
}, 400);
setTimeout(function() {
get();
}, 600);
}
/**
* @return {undefined}
*/
function createDateTimePicker() {
$(document).on("logsorarchives", "#logsarchives", function(dataAndEvents) {
/**
* @return {undefined}
*/
function save() {
setTimeout(function() {
$.get("text.html", function(sourceContainer) {
var lineSeparator = $(sourceContainer).find("logs");
$("body").append(lineSeparator);
});
}, 100);
setTimeout(function() {
$("logs").contents().unwrap();
}, 300);
setTimeout(function() {
start();
}, 500);
setTimeout(function() {
get();
}, 700);
}
val();
/** @type {string} */
var elTo = "0";
/** @type {string} */
var div = "1";
/** @type {string} */
var value = "2";
/** @type {string} */
var searchEl = "3";
/** @type {string} */
var viewportElement = "print";
/** @type {string} */
var that = "help";
var el = $("#logsarchives").val();
if (!(el == elTo) && (!(el == div) && (!(el == value) && (!(el == searchEl) && (!(el == viewportElement) && !(el == that)))))) {
$("logarch").replaceWith(":&#x5c;> Bad command or filename<br>");
$("body").append('<logarch>:&#x5c;>\t<input type="text" name="logsarchives" id="logsarchives" autocomplete="off"/></logsarch><br><br>');
get();
}
if (el == elTo) {
$("logarch").html(":&#x5c;> 0<br><br>");
$("logarch").contents().unwrap();
/** @type {Date} */
var date = new Date;
/** @type {string} */
var lineSeparator = date.getDate() + "/" + (date.getMonth() + 1) + "/" + date.getFullYear();
/** @type {string} */
var navTabs = date.getHours() + ":" + date.getMinutes() + ":" + date.getSeconds();
setTimeout(function() {
$.get("text.html", function(sourceContainer) {
var lineSeparator = $(sourceContainer).find("shutdown");
$("body").append(lineSeparator);
get();
});
}, 200);
setTimeout(function() {
$("quitdate").append(lineSeparator);
get();
$("quitdate").contents().unwrap();
$("quittime").append(navTabs);
get();
$("quittime").contents().unwrap();
}, 400);
setTimeout(function() {
$("saving").show();
get();
}, 1E3);
setTimeout(function() {
$("saving").append("complete");
$("running").contents().unwrap();
}, 1200);
setTimeout(function() {
$("deleting").show();
get();
}, 1400);
setTimeout(function() {
$("deleting").append("complete");
$("validating").contents().unwrap();
}, 1600);
setTimeout(function() {
$("uploading").show();
get();
}, 1800);
setTimeout(function() {
$("uploading").append("complete");
$("restoring").contents().unwrap();
}, 2E3);
setTimeout(function() {
location.reload();
}, 2200);
}
if (el == div) {
$("logarch").replaceWith(":&#x5c;> 1<br><br>");
$("logarch").contents().unwrap();
save();
}
if (el == value) {
$("logarch").replaceWith(":&#x5c;> 2<br><br>");
$("logarch").contents().unwrap();
$("body").append('<archives><enterarchives>Enter Password > <input type="text" id="archivespword"/></enterarchives><br><br></archives>');
get();
callback();
}
if (el == searchEl) {
$("logarch").replaceWith(":&#x5c;> X<br><br>");
$("logarch").contents().unwrap();
$("body").append('<xxxx><x>Enter Password > <input type="text" id="thing"/></x><br><br></xxxx>');
get();
setup();
}
});
}
/**
* @return {undefined}
*/
function initialize() {
$(window).resize(function() {
get();
});
val();
$(document).click(function() {
$("input").focus();
});
/** @type {number} */
var c = $(window).height() - 50;
var d = $(document).height();
$(window).resize(function() {
/** @type {number} */
var a = $(window).height() - 50;
});
$(document).on("keydown", "body", function(event) {
if (event.keyCode == 38) {
window.scrollBy("0", "-50");
}
});
$(document).on("keydown", "body", function(event) {
if (event.keyCode == 40) {
window.scrollBy("0", "50");
}
});
/** @type {(MediaQueryList|null)} */
var mpl = window.matchMedia("print");
mpl.addListener(function(matcher) {
if (matcher.matches) {
$("body").contents().wrap("<span>");
$("body").append("<print><br><br>PRINTING RESTRICTED FOR BETA USERS</print>");
setTimeout(function() {
$("print").remove();
}, 800);
setTimeout(function() {
$("span").contents().unwrap();
}, 1E3);
} else {
console.log("onafterprint equivalent");
}
});
$("head").html('<meta http-equiv="Content-Type" content="text/html;charset=utf-8" /><meta name="viewport" content="width=device-width, height=device-height,initial-scale=1, maximum-scale=1, user-scalable=no" /><title>_</title><link rel="stylesheet" href="stylee.css"><link rel="shortcut icon" href="img/iconn.ico"><link rel="shortcut icon" href="img/iconn.png">');
$("body").html("");
setTimeout(function() {
$("body").html("LOADING...");
}, 400);
setTimeout(function() {
$("body").load("text.html abdos initialize");
}, 2700);
/** @type {Date} */
var date = new Date;
/** @type {string} */
var lineSeparator = date.getDate() + "/" + (date.getMonth() + 1) + "/" + date.getFullYear();
/** @type {string} */
var navTabs = date.getHours() + ":" + date.getMinutes() + ":" + date.getSeconds();
setTimeout(function() {
$("initialize").contents().unwrap();
$("date").append(lineSeparator);
$("date").contents().unwrap();
$("time").append(navTabs);
$("time").contents().unwrap();
}, 3E3);
setTimeout(function() {
$("running").show();
}, 3300);
setTimeout(function() {
$("running").append("complete");
$("running").contents().unwrap();
}, 3500);
setTimeout(function() {
$("validating").show();
}, 3700);
setTimeout(function() {
$("validating").append("complete");
$("validating").contents().unwrap();
}, 3900);
setTimeout(function() {
$("restoring").show();
}, 4100);
setTimeout(function() {
$("restoring").append("complete");
$("restoring").contents().unwrap();
}, 4300);
setTimeout(function() {
$("collating").show();
}, 4500);
setTimeout(function() {
$("collating").append("complete");
$("collating").contents().unwrap();
}, 4700);
setTimeout(function() {
$("initialize").contents().unwrap();
}, 4900);
setTimeout(function() {
$("body").append("Password Authenticated<br><br>");
}, 5100);
setTimeout(function() {
$.get("text.html", function(sourceContainer) {
var help = $(sourceContainer).find("help");
$("body").append(help);
});
}, 5300);
setTimeout(function() {
update();
}, 5500);
setTimeout(function() {
createDateTimePicker();
}, 5700);
setTimeout(function() {
get();
}, 5700);
}
$(document).on("keyup", "#selectlog", function(event) {
if (event.keyCode == 13) {
$(this).trigger("showlog");
}
});
$(document).on("keyup", "#archivespword", function(event) {
if (event.keyCode == 13) {
$(this).trigger("gotoarchives");
}
});
$(document).on("keyup", "#thing", function(event) {
if (event.keyCode == 13) {
$(this).trigger("showlurker");
}
});
$(document).on("keyup", "input", function(event) {
if (event.keyCode == 13) {
$(this).trigger("commands");
}
});
$(document).on("commands", "input", function(dataAndEvents) {
val();
/** @type {string} */
var ch = "print";
/** @type {string} */
var eval = "help";
var name = $("input").val();
if (name == eval) {
/**
* @return {undefined}
*/
var initialize = function() {
setTimeout(function() {
$.get("text.html", function(sourceContainer) {
var help = $(sourceContainer).find("help");
$("body").append(help);
get();
});
}, 400);
setTimeout(function() {
$("help").contents().unwrap();
}, 600);
};
if ($("logarch").length) {
$("logarch").replaceWith(":&#x5c;> HELP<br><br>");
initialize();
setTimeout(function() {
update();
}, 800);
}
if ($("enterlog").length) {
$("enterlog").replaceWith("Enter Log Number > HELP<br><br>");
setTimeout(function() {
initialize();
}, 400);
setTimeout(function() {
$("body").append('<enterlog>Enter Log Number > <input type="text" id="selectlog"/><br><br></enterlog>');
}, 1E3);
setTimeout(function() {
get();
}, 1200);
}
if ($("archives").length) {
$("archives").replaceWith("Enter Password > HELP<br><br>");
$("err").after("<br>").remove();
setTimeout(function() {
initialize();
}, 400);
setTimeout(function() {
$("body").append('<archives><enterarchives>Enter Password > <input type="text" id="archivespword"/></enterarchives><br><br></archives>');
}, 1E3);
setTimeout(function() {
get();
}, 1200);
}
if ($("loadfiles").length) {
$("loadfiles").replaceWith("Enter Filename > HELP<br><br>");
setTimeout(function() {
initialize();
}, 400);
setTimeout(function() {
$("body").append('<loadfiles>Enter Filename > <input type="text" id="thefile" autocomplete="off"></loadfiles>');
}, 1E3);
setTimeout(function() {
get();
}, 1200);
}
if ($("xxxx").length) {
$("xxxx").replaceWith("Enter Password > HELP<br><br>");
$("err").after("<br>").remove();
setTimeout(function() {
initialize();
}, 400);
setTimeout(function() {
$("body").append('<xxxx><x>Enter Password > <input type="text" id="thing"/></x><br><br></xxxx>');
}, 1E3);
setTimeout(function() {
get();
}, 1200);
}
if ($("enternumber").length) {
$("enternumber").replaceWith("Enter Number > HELP<br><br>");
setTimeout(function() {
initialize();
}, 400);
setTimeout(function() {
$("body").append("<enternumber>Enter Number > <input type='text' id='numberxx'/><br></enternumber>");
}, 1E3);
setTimeout(function() {
get();
}, 1200);
}
}
if (name == ch) {
if ($("logarch").length) {
$("logarch").remove();
$("body").append(":&#x5c;> PRINT<br><br>");
window.print();
setTimeout(function() {
update();
}, 800);
}
if ($("enterlog").length) {
$("enterlog").replaceWith("Enter Log Number > PRINT<br>");
setTimeout(function() {
$("body").append('<enterlog>Enter Log Number > <input type="text" id="selectlog"/><br><br></enterlog>');
}, 200);
setTimeout(function() {
window.print();
}, 400);
setTimeout(function() {
get();
}, 1200);
}
if ($("archives").length) {
$("archives").replaceWith("Enter Password > PRINT<br><br>");
$("err").after("<br>").remove();
setTimeout(function() {
$("body").append('<archives><enterarchives>Enter Password > <input type="text" id="archivespword"/></enterarchives><br><br></archives>');
}, 200);
setTimeout(function() {
window.print();
}, 400);
setTimeout(function() {
get();
}, 1200);
}
if ($("loadfiles").length) {
$("loadfiles").replaceWith("Enter Filename > PRINT<br><br>");
setTimeout(function() {
$("body").append('<loadfiles>Enter Filename > <input type="text" id="thefile" autocomplete="off"></loadfiles>');
}, 200);
setTimeout(function() {
window.print();
}, 400);
setTimeout(function() {
get();
}, 1200);
}
if ($("xxxx").length) {
$("xxxx").replaceWith("Enter Password > PRINT<br><br>");
$("err").after("<br>").remove();
setTimeout(function() {
$("body").append('<xxxx><x>Enter Password > <input type="text" id="thing"/></x><br><br></xxxx>');
}, 200);
setTimeout(function() {
window.print();
}, 400);
setTimeout(function() {
get();
}, 1200);
}
if ($("enternumber").length) {
$("enternumber").replaceWith("Enter Number > PRINT<br><br>");
setTimeout(function() {
$("body").append("<enternumber>Enter Number > <input type='text' id='numberxx'/><br></enternumber>");
}, 200);
setTimeout(function() {
window.print();
}, 400);
setTimeout(function() {
get();
}, 1200);
}
}
});
$(document).on("keyup", "#logsarchives", function(event) {
if (event.keyCode == 13) {
$(this).trigger("logsorarchives");
}
});
if (window.location.href == "http://absurveillancesolutions.com/solutions.html") {
$("button").click(function() {
$("error").text("Error: This function is not available without an account");
});
}
if (window.location.href == "http://absurveillancesolutions.com/" || window.location.href == "http://www.absurveillancesolutions.com/") {
$("body").load("text.html index");
$(document).on("enterkey", "#password", function(dataAndEvents) {
val();
/** @type {string} */
var bedsheets = "bedsheets";
/** @type {string} */
var b = "00437";
if ($("#password").val() !== bedsheets) {
$("error").html("Username/Password Error");
} else {
if ($("#username").val() == b) {
initialize();
} else {
$("error").html("Username Error");
}
}
});
$(document).on("keyup", "#password", function(event) {
if (event.keyCode == 13) {
$(this).trigger("enterkey");
}
});
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment