This repository has been archived on 2019-05-14. You can view files and clone it, but cannot push or open issues or pull requests.
emergencysite/site.js

13 lines
315 B
JavaScript
Executable file

function replaceContent(input) {
$(".content").html(input);
}
function changeColor(input) {
$("body").css("background-color",input);
}
function loadAnother() {
$.getJSON(beg + "index.php?q=-1&c=color", function (data) {
replaceContent(data.content);
changeColor(data.color);
});
return false;
}