Making it a seperate script because i am not a simple kind of dev
This commit is contained in:
parent
1afe7a9ad6
commit
a77bc12b1c
|
@ -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();
|
|
@ -7,28 +7,4 @@
|
|||
// 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("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.");
|
||||
|
||||
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();
|
||||
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.");
|
Loading…
Reference in New Issue