diff --git a/home/home.js b/home/home.js index 31c0686..121d9c1 100644 --- a/home/home.js +++ b/home/home.js @@ -6,13 +6,12 @@ script.onload = function(){ } script.onerror = function(){ script.src = "error.js"; - document.getElementByTagName("script").remove(); } let body = document.createElement("body"); body.onload = function(){ console.log("Website loaded!"); } body.onerror = function(err){ - document.getElementByTagName("body").remove(); + alert("website failed to load"); } if(window.location.href == "https://pytube832.github.io/learncodingforfreethree/home/home.js"){history.back();} diff --git a/home/homep.php b/home/homep.php new file mode 100644 index 0000000..2591ef3 --- /dev/null +++ b/home/homep.php @@ -0,0 +1,3 @@ +