-
Notifications
You must be signed in to change notification settings - Fork 213
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' of https://github.com/SupratitDatta/Collect-your-…
…GamingTools into overflow-bug
- Loading branch information
Showing
9 changed files
with
187 additions
and
76 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
const checkbox = document.getElementById('checkbox') | ||
const modeLabel = document.getElementById('mode-label') | ||
|
||
// Check if dark mode is already enabled | ||
if (localStorage.getItem('theme') === 'dark') { | ||
document.documentElement.setAttribute('data-theme', 'dark') | ||
checkbox.checked = true | ||
modeLabel.textContent = 'Dark Mode' | ||
} | ||
|
||
// Add event listener for toggle switch | ||
checkbox.addEventListener('change', () => { | ||
if (checkbox.checked) { | ||
document.documentElement.setAttribute('data-theme', 'dark') | ||
localStorage.setItem('theme', 'dark') | ||
modeLabel.textContent = 'Dark Mode' | ||
} else { | ||
document.documentElement.setAttribute('data-theme', 'light') | ||
localStorage.setItem('theme', 'light') | ||
modeLabel.textContent = 'Light Mode' | ||
} | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,6 +13,7 @@ | |
|
||
<body> | ||
<div class="container"> | ||
|
||
<div class="navbar"> | ||
<a href="/"> <img src="images/logo.png" class="logo" alt="Logo"></a> | ||
<a href="/"><span class="website-name">Collect your GamingTools</span></a> | ||
|
@@ -29,15 +30,18 @@ | |
<span class="slider"></span> | ||
</label> | ||
</ul> | ||
|
||
</nav> | ||
|
||
|
||
<!-- Search Bar (initially hidden) --> | ||
<div class="search-bar hidden" id="searchBar"> | ||
<input type="text" id="search-input" placeholder="Search..." /> | ||
<button type="button" onclick="performSearch()">🔍</button> | ||
</div> | ||
|
||
<img src="images/menu.png" class="menu-icon" onclick="toggleMenu()"> | ||
<img src="images/menu.png" class="menu-icon" onclick="toggleMenu()"> | ||
|
||
</div> | ||
<label class="switch"> | ||
<input type="checkbox" id="theme-toggle" onchange="toggleTheme()"> | ||
|
@@ -361,9 +365,22 @@ <h2>Contact Us</h2> | |
|
||
<!-- Scripts --> | ||
<script src="script.js"></script> | ||
<!-- Ionicons Scripts --> | ||
<script type="module" src="https://unpkg.com/[email protected]/dist/ionicons/ionicons.esm.js"></script> | ||
<script nomodule src="https://unpkg.com/[email protected]/dist/ionicons/ionicons.js"></script> | ||
|
||
<script> | ||
window.embeddedChatbotConfig = { | ||
chatbotId: "PQ-VOcdM1R3PiYlZUrsTY", | ||
domain: "www.chatbase.co" | ||
} | ||
</script> | ||
<script | ||
src="https://www.chatbase.co/embed.min.js" | ||
chatbotId="PQ-VOcdM1R3PiYlZUrsTY" | ||
domain="www.chatbase.co" | ||
defer> | ||
</script> | ||
</body> | ||
|
||
|
||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.