Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
unviere committed Sep 14, 2024
1 parent a003d8a commit 257418b
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 1 deletion.
20 changes: 20 additions & 0 deletions Scripts/masages/style_msg.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,33 @@ document.addEventListener('DOMContentLoaded', (event) => {
if (localStorage.getItem('theme-zwitch-msg-dismissed') === 'true') {
document.getElementById('theme-zwitch-tip').style.display = 'none';
}

if (localStorage.getItem('theme-revamp-dismissed') === 'true') {
document.getElementById('theme-revamp').style.display = 'none';
}

// Add event listener to the button
document.getElementById('theme-zwitch-msg').addEventListener('click', dismissMessage);

document.getElementById('theme-revamp-msg').addEventListener('click', dismissMessage2);
});

function dismissMessage() {
const messageElement = document.getElementById('theme-zwitch-tip');


messageElement.style.display = 'none';
localStorage.setItem('theme-zwitch-msg-dismissed', 'true');


}

function dismissMessage2() {


const messageElement2 = document.getElementById('theme-revamp');


messageElement2.style.display = 'none';
localStorage.setItem('theme-revamp-dismissed', 'true');
}
10 changes: 9 additions & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,15 @@ <h4>play our games and be happy</h4>
</section>

<section class="masages">

<div class="masages-stuff">
<div class="tip" id="theme-revamp">
<div class="title"><h1>our themes get a revamp + new navbar </h1></div>
<div class="dissmiss" id="theme-revamp-msg"><i class="ri-close-circle-fill"></i></div>
<div class="content-masages">
<p>hi there im bussy with revamp all themes modern light will be the defould and there come a dark mode the modern theme will look more modern and you see things change with this changes i also revamp the topbar you will see changes on some pages <br><br> <h1>the following pages are getting updated</h1><br> <a href="https://unviere.github.io/Unviere/games">games </a></p>
</div>
</div>
</div>
<div class="masages-stuff">
<div class="tip" id="theme-zwitch-tip">
<div class="title"><h1>did you know </h1></div>
Expand Down

0 comments on commit 257418b

Please sign in to comment.