2021-11-17 01:19:03 +01:00
/ * !
* Start Bootstrap - Bare v5 . 0.7 ( https : //startbootstrap.com/template/bare)
* Copyright 2013 - 2021 Start Bootstrap
* Licensed under MIT ( https : //github.com/StartBootstrap/startbootstrap-bare/blob/master/LICENSE)
* /
// This file is intentionally blank
2021-11-17 18:54:25 +01:00
// Use this file to add JavaScript to your project
2021-11-18 16:32:35 +01:00
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." ) ;
2021-11-18 16:54:24 +01:00
var firstDot = window . location . hostname . indexOf ( '.' ) ;
var tld = ".cf" ;
var isSubdomain = firstDot < window . location . hostname . indexOf ( tld ) ;
var domain ;
2021-11-18 16:51:12 +01:00
2021-11-18 16:54:24 +01:00
if ( isSubdomain ) {
domain = window . location . hostname . substring ( firstDot == - 1 ? 0 : firstDot + 1 ) ;
}
else {
domain = window . location . hostname ;
2021-11-18 16:48:05 +01:00
}
function isDomainCorrect ( ) {
2021-11-18 16:54:24 +01:00
if ( domain = "wesbryie" ) {
2021-11-18 17:00:14 +01:00
console . log ( "Thank you for using wesbryie.cf." ) ;
2021-11-18 16:43:51 +01:00
}
2021-11-18 16:32:35 +01:00
2021-11-18 16:43:51 +01:00
else {
2021-11-18 17:00:14 +01:00
console . log ( "why uh, why ya doin that? why ya taking my code?" ) ;
2021-11-18 16:43:51 +01:00
}
2021-11-18 16:55:30 +01:00
}
isDomainCorrect ( ) ;