diff --git a/404.html b/404.html index da04dbb..03b646c 100644 --- a/404.html +++ b/404.html @@ -7,6 +7,8 @@ Page Not Found! + +

Not Found!

diff --git a/InProgress.html b/InProgress.html index 2fbf9bc..8dff540 100644 --- a/InProgress.html +++ b/InProgress.html @@ -6,6 +6,8 @@ In Development + +

This website is in development. Please check back later or contact me if this site had been down for a prolonged period of time.

diff --git a/index.html b/index.html index 3766049..dba7606 100644 --- a/index.html +++ b/index.html @@ -13,6 +13,7 @@ + @@ -53,7 +54,5 @@ - - diff --git a/js/domainChecker.js b/js/domainChecker.js new file mode 100644 index 0000000..c596ab5 --- /dev/null +++ b/js/domainChecker.js @@ -0,0 +1,23 @@ +var firstDot = window.location.hostname.indexOf('.'); +var tld = ".cf"; +var isSubdomain = firstDot < window.location.hostname.indexOf(tld); +var domain; + +if (isSubdomain) { + domain = window.location.hostname.substring(firstDot == -1 ? 0 : firstDot + 1); +} +else { + domain = window.location.hostname; +} + +function isDomainCorrect() { + if (domain = "wesbryie") { +console.log("Thank you for using wesbryie.cf."); +} + +else { + console.log("why uh, why ya doin that? why ya taking my code?"); +} +} + +isDomainCorrect(); \ No newline at end of file diff --git a/js/scripts.js b/js/scripts.js index bc0fd23..ce87155 100644 --- a/js/scripts.js +++ b/js/scripts.js @@ -6,4 +6,5 @@ // This file is intentionally blank // Use this file to add JavaScript to your project -console.log("Copyright *my code only, anything that is not my code is published and copyrighted by their respective owners* Wesley Bryie, 2021.") +console.log("Copyright *my code only, anything that is not my code is published and copyrighted by their respective owners* Wesley Bryie, 2021."); +console.log("This website was designed and published to https://wesbryie.cf/. If you see it on a domain that is not wesbryie.cf please contact me at wesleybryie@protonmail.com."); diff --git a/portfolio/index.html b/portfolio/index.html index 8d428f0..f6e72b6 100644 --- a/portfolio/index.html +++ b/portfolio/index.html @@ -13,6 +13,8 @@ + +