2021-11-23 16:02:04 +01:00
function startCheck ( ) {
console . log ( "Starting domain check. This check makes sure that the website hosted at https://github.com/wesleybryie/wes-website/ is running on https://wesbryie.cf." )
} ;
2021-11-23 16:03:26 +01:00
startCheck ( ) ;
2021-11-18 17:03:23 +01:00
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 ( ) {
2021-11-23 16:03:26 +01:00
if ( domain = "wesbryie" + tld ) {
2021-11-18 17:03:23 +01:00
console . log ( "Thank you for using wesbryie.cf." ) ;
}
else {
console . log ( "why uh, why ya doin that? why ya taking my code?" ) ;
2021-11-23 16:02:04 +01:00
close ( ) ;
2021-11-23 16:03:26 +01:00
stop ( ) ;
2021-11-18 17:03:23 +01:00
}
}
isDomainCorrect ( ) ;