added a warning about the manual only supporting the 1.12 version atm
All checks were successful
/ web (push) Successful in 27s

This commit is contained in:
Ell 2024-06-28 12:17:43 +02:00
parent 22eea8ed56
commit 3d557cb8a3
3 changed files with 16 additions and 6 deletions

View file

@ -16,9 +16,19 @@
</head>
<body>
<!-- Cookie notification -->
<div id="cookieinfo"></div>
<script src="../scripts/cookieinfo.js"></script>
<div id="notices">
<!-- Cookie notification -->
<div id="cookieinfo"></div>
<script src="../scripts/cookieinfo.js"></script>
<!-- Notification about the fact that the manual is currently stuck on 1.12 -->
<div class="alert alert-warning alert-dismissible fade show" role="alert">
<strong>This manual currently uses information from the 1.12.2 version of the mod.</strong> To get information about Actually Additions for 1.20 and later versions, please use the in-game manual for the time being.
<button type="button" class="close" data-dismiss="alert" id="version-notif-close">
<span>&times;</span>
</button>
</div>
</div>
<div id="sidebar">
<a href="https://ellpeck.de">🏠 Main Site</a>

View file

@ -80,7 +80,7 @@ body {
flex-direction: column;
}
#cookieinfo {
#notices {
position: fixed;
top: 20px;
left: 50%;

View file

@ -4,12 +4,12 @@ if (localStorage.getItem("notification") !== "true") {
This site uses your browser's local storage to store information about your browsing activity.
<br>For more information, check out the <a href="/privacy">privacy policy</a>.
<br>Have a nice day!
<button type="button" class="close" data-dismiss="alert" id="notif-close">
<button type="button" class="close" data-dismiss="alert" id="cookie-notif-close">
<span>&times;</span>
</button>
</div>
`);
$("#notif-close").on("click", function () {
$("#cookie-notif-close").on("click", function () {
localStorage.setItem("notification", "true");
});
}