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/ess-site.js

13 lines
315 B
JavaScript
Raw Normal View History

2013-06-06 04:54:00 +00:00
function replaceContent(input) {
2013-08-18 22:14:09 +00:00
$(".content")[0].innerHTML = input;
2013-06-06 04:54:00 +00:00
}
function changeColor(input) {
2013-08-18 22:14:09 +00:00
document.body.style.background = input;
2013-06-06 04:54:00 +00:00
}
function loadAnother() {
2013-08-18 22:14:09 +00:00
h(beg + "index.php?q=-1&c=color", function (data) {
2013-06-06 04:54:00 +00:00
replaceContent(data.content);
changeColor(data.color);
});
return false;
}