Merge pull request #6 from WesleyBryie/new-site

New site
This commit is contained in:
Wes Bryie 2021-11-18 11:10:34 -05:00 committed by GitHub
commit f3571c654d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 32 additions and 3 deletions

View File

@ -7,6 +7,8 @@
<link rel="stylesheet" src="404.css"> <link rel="stylesheet" src="404.css">
<link href="css/fonts.css" rel="stylesheet" /> <link href="css/fonts.css" rel="stylesheet" />
<title>Page Not Found!</title> <title>Page Not Found!</title>
<script src="js/scripts.js"></script>
<script src="js/domainChecker.js"></script>
</head> </head>
<body> <body>
<h1>Not Found!</h1> <h1>Not Found!</h1>

View File

@ -6,6 +6,8 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>In Development</title> <title>In Development</title>
<link href="css/fonts.css" rel="stylesheet" /> <link href="css/fonts.css" rel="stylesheet" />
<script src="js/scripts.js"></script>
<script src="js/domainChecker.js"></script>
</head> </head>
<body> <body>
<p>This website is in development. Please check back later or contact me if this site had been down for a prolonged period of time.</p> <p>This website is in development. Please check back later or contact me if this site had been down for a prolonged period of time.</p>

View File

@ -13,6 +13,7 @@
<link href="css/styles.css" rel="stylesheet" /> <link href="css/styles.css" rel="stylesheet" />
<link href="css/fonts.css" rel="stylesheet" /> <link href="css/fonts.css" rel="stylesheet" />
<script src="js/scripts.js"></script> <script src="js/scripts.js"></script>
<script src="js/domainChecker.js"></script>
</head> </head>
<body> <body>
<!-- Responsive navbar--> <!-- Responsive navbar-->
@ -53,7 +54,5 @@
</div> </div>
<!-- Bootstrap core JS--> <!-- Bootstrap core JS-->
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/js/bootstrap.bundle.min.js"></script> <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/js/bootstrap.bundle.min.js"></script>
<!-- Core theme JS-->
<script src="js/scripts.js"></script>
</body> </body>
</html> </html>

23
js/domainChecker.js Normal file
View File

@ -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();

View File

@ -6,4 +6,5 @@
// This file is intentionally blank // This file is intentionally blank
// Use this file to add JavaScript to your project // 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.");

View File

@ -13,6 +13,8 @@
<link href="css/styles.css" rel="stylesheet" /> <link href="css/styles.css" rel="stylesheet" />
<!-- Fonts --> <!-- Fonts -->
<link href="css/fonts.css" rel="stylesheet" /> <link href="css/fonts.css" rel="stylesheet" />
<script src="../js/scripts.js"></script>
<script src="../js/domainChecker.js"></script>
</head> </head>
<body> <body>
<!-- Responsive navbar--> <!-- Responsive navbar-->