Made it better

This commit is contained in:
Stone-Red-Code
2021-01-05 19:21:22 +01:00
parent 9a951b03c4
commit dd6ab311d8
5 changed files with 18 additions and 38 deletions
+7
View File
@@ -0,0 +1,7 @@
$.get("footer.html", function (data) {
$("#footer-placeholder").replaceWith(data);
});
$.get("nav.html", function (data) {
$("#nav-placeholder").replaceWith(data);
});
+1 -3
View File
@@ -16,6 +16,4 @@ var answerArray = new Array(
"“A temporary defeat is nothing if it leads to ultimate victory!” Stephanie Dola (No Game No Life)"
);
window.onload = function getAnswer() {
document.getElementById('quotes').innerHTML = answerArray[Math.floor(Math.random() * answerArray.length)];
}
document.getElementById('quotes').innerHTML = answerArray[Math.floor(Math.random() * answerArray.length)];