mirror of
https://github.com/Stone-Red-Code/Stone-Red-Code.github.io.git
synced 2026-09-04 09:06:28 +02:00
Added message when JavaScript disabled
This commit is contained in:
@@ -1,13 +1,12 @@
|
||||
$.get("footer.html", function (data) {
|
||||
$("#footer-placeholder").replaceWith(data);
|
||||
$.get("header.html", function (data) {
|
||||
$("#header-placeholder").replaceWith(data);
|
||||
document.getElementById('header-title').innerHTML = document.querySelector('title').textContent;
|
||||
});
|
||||
|
||||
$.get("nav.html", function (data) {
|
||||
$("#nav-placeholder").replaceWith(data);
|
||||
});
|
||||
|
||||
$.get("header.html", function (data) {
|
||||
$("#header-placeholder").replaceWith(data);
|
||||
document.getElementById('header-title').innerHTML = document.querySelector('title').textContent;
|
||||
});
|
||||
|
||||
$.get("footer.html", function (data) {
|
||||
$("#footer-placeholder").replaceWith(data);
|
||||
});
|
||||
+19
-10
@@ -8,6 +8,14 @@
|
||||
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css"
|
||||
integrity="sha384-MCw98/SFnGE8fJT3GXwEOngsV7Zt27NXFoaoApmYm81iuXoPkFOJwJ8ERdknLPMO" crossorigin="anonymous">
|
||||
<link rel="stylesheet" href="style.css">
|
||||
<noscript>
|
||||
<h1 style="background-color: red;">IF YOU CAN READ THIS ENABLE JAVASCRIPT!<h1>
|
||||
<style type="text/css">
|
||||
.main {
|
||||
display: none;
|
||||
}
|
||||
</style>
|
||||
</noscript>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
@@ -37,7 +45,8 @@
|
||||
<div class="jumbotron">
|
||||
<h2>About this site</h2>
|
||||
<p>This site is not finished and it's still being worked on.<br>
|
||||
Keep in mind, some things here are just placeholders and will be eventually replaced or removed.<br>
|
||||
Keep in mind, some things here are just placeholders and will be eventually replaced or
|
||||
removed.<br>
|
||||
On this page I will post all my current projects and updates.
|
||||
</p>
|
||||
</div>
|
||||
@@ -51,15 +60,15 @@
|
||||
<!--end Footer-->
|
||||
</div>
|
||||
|
||||
<script src="https://code.jquery.com/jquery-3.5.1.slim.min.js"
|
||||
integrity="sha384-DfXdz2htPH0lsSSs5nCTpuj/zy4C+OGpamoFVy38MVBnE+IbbVYUew+OrCXaRkfj"
|
||||
crossorigin="anonymous"></script>
|
||||
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js"
|
||||
integrity="sha384-ho+j7jyWK8fNQe+A12Hb8AhRq26LrZ/JpcUGGOn+Y7RsweNrtN/tE3MoK7ZeZDyx"
|
||||
crossorigin="anonymous"></script>
|
||||
<script src="//code.jquery.com/jquery.min.js"></script>
|
||||
<script src="Scripts/loadNavBarAndFooter.js"></script>
|
||||
<script src="Scripts/quotes.js"></script>
|
||||
<script src="https://code.jquery.com/jquery-3.5.1.slim.min.js"
|
||||
integrity="sha384-DfXdz2htPH0lsSSs5nCTpuj/zy4C+OGpamoFVy38MVBnE+IbbVYUew+OrCXaRkfj"
|
||||
crossorigin="anonymous"></script>
|
||||
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js"
|
||||
integrity="sha384-ho+j7jyWK8fNQe+A12Hb8AhRq26LrZ/JpcUGGOn+Y7RsweNrtN/tE3MoK7ZeZDyx"
|
||||
crossorigin="anonymous"></script>
|
||||
<script src="//code.jquery.com/jquery.min.js"></script>
|
||||
<script src="Scripts/loadNavBarAndFooter.js"></script>
|
||||
<script src="Scripts/quotes.js"></script>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
Reference in New Issue
Block a user