13 lines
315 B
JavaScript
Executable file
13 lines
315 B
JavaScript
Executable file
function replaceContent(input) {
|
|
$(".content")[0].innerHTML = input;
|
|
}
|
|
function changeColor(input) {
|
|
document.body.style.background = input;
|
|
}
|
|
function loadAnother() {
|
|
h(beg + "index.php?q=-1&c=color", function (data) {
|
|
replaceContent(data.content);
|
|
changeColor(data.color);
|
|
});
|
|
return false;
|
|
} |