Skip to content

Commit

Permalink
Fixed Buttons not working issue #198 (#216)
Browse files Browse the repository at this point in the history
  • Loading branch information
JollyJolli authored Oct 29, 2024
2 parents d43f56b + 732f64e commit e7657d5
Show file tree
Hide file tree
Showing 3 changed files with 58 additions and 62 deletions.
33 changes: 15 additions & 18 deletions src/form.html
Original file line number Diff line number Diff line change
Expand Up @@ -29,16 +29,16 @@
content="Contribute to Hacktoberfest by editing the HacktoberWall mural and become part of the open-source community!" />
<meta name="twitter:image" content="/img/logo.webp" />
<meta name="twitter:image:alt" content="Hacktoberfest Logo" />
<!-- Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-G6EQC4D6KY"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'G-G6EQC4D6KY');
</script>
<!-- End Google Analytics -->
<!-- Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-G6EQC4D6KY"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag() { dataLayer.push(arguments); }
gtag('js', new Date());

gtag('config', 'G-G6EQC4D6KY');
</script>
<!-- End Google Analytics -->
<!-- Favicon -->
<link rel="icon" href="./img/favicon.ico" type="image/x-icon" />
<link rel="shortcut icon" href="./img/favicon.ico" type="image/x-icon" />
Expand All @@ -64,23 +64,20 @@
</a>
<i id="halloweenIcon" class="fas fa-ghost" aria-hidden="true"></i>
</div>

<div class="header-controls">
<button id="surpriseButton" class="contact-btn" aria-label="Contact" tabindex="0">
<a href="tos.html">ToS</a>
</button>
<a href="tos.html" class="contact-btn" aria-label="ToS" tabindex="0">ToS</a>
<button id="surpriseButton" class="surprise-btn" aria-label="Surprise Me!" tabindex="0">
Surprise Me!
</button>
<button id="surpriseButton" class="contact-btn" aria-label="Contact" tabindex="0">
<a href="index.html">Home</a>

</button>
<a href="index.html" class="contact-btn" aria-label="Home" tabindex="0">Home</a>
<button id="toggleButton" class="toggle-btn" aria-label="Toggle between dark mode and light mode" tabindex="0">
<i class="fas fa-sun" aria-hidden="true"></i>
</button>
</div>
</header>


<div class="carousel">
<div class="carousel-slide">
☀️ Join the Hacktoberfest mural! Add your contribution by updating the
Expand Down Expand Up @@ -143,4 +140,4 @@ <h2>Contact Us</h2>

</body>

</html>
</html>
47 changes: 21 additions & 26 deletions src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -32,16 +32,16 @@
<meta name="twitter:image" content="/img/logo.webp" />
<meta name="twitter:image:alt" content="Hacktoberfest Logo" />

<!-- Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-G6EQC4D6KY"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'G-G6EQC4D6KY');
</script>
<!-- End Google Analytics -->
<!-- Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-G6EQC4D6KY"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag() { dataLayer.push(arguments); }
gtag('js', new Date());

gtag('config', 'G-G6EQC4D6KY');
</script>
<!-- End Google Analytics -->

<!-- Favicon -->
<link rel="icon" href="/img/favicon.ico" type="./image/x-icon" />
Expand Down Expand Up @@ -80,20 +80,15 @@
</button>

<nav id="headerControls" class="header-controls">
<button id="surpriseButton" class="contact-btn" aria-label="Contact">
<a href="tos.html">ToS</a>
</button>
<button id="aboutUsButton" class="about-us-btn" aria-label="About Us">
<a href="#about-us-section">About Us</a>
</button>
<button id="surpriseButton" class="surprise-btn" aria-label="Surprise Me!">
Surprise Me!
</button>
<button id="surpriseButton" class="contact-btn" aria-label="Contact">
<a href="form.html">Contact</a>
</button>
<button class="contact-btn" aria-label="ToS" onclick="window.location.href='tos.html';">ToS</button>
<button class="about-us-btn" aria-label="About Us" onclick="window.location.href='#about-us-section';">About
Us</button>
<button class="surprise-btn" aria-label="Surprise Me!">Surprise Me!</button>
<button class="contact-btn" aria-label="Contact" onclick="window.location.href='form.html';">Contact</button>
<button id="toggleButton" class="toggle-btn" aria-label="Toggle theme"></button>
</nav>


</header>

<!-- Ghost Image for Animation -->
Expand Down Expand Up @@ -245,16 +240,16 @@ <h3>Phanty78 (Co-Owner)</h3>
<script src="js/app.min.js"></script>
<script src="js/modal.min.js"></script>
<script>
document.addEventListener('DOMContentLoaded', function() {
document.addEventListener('DOMContentLoaded', function () {
const navToggle = document.getElementById('navToggle');
const headerControls = document.getElementById('headerControls');
navToggle.addEventListener('click', function() {

navToggle.addEventListener('click', function () {
headerControls.classList.toggle('show');
});
});
</script>

</body>

</html>
</html>
40 changes: 22 additions & 18 deletions src/tos.html
Original file line number Diff line number Diff line change
Expand Up @@ -32,16 +32,16 @@
<meta name="twitter:image" content="/img/logo.webp" />
<meta name="twitter:image:alt" content="Hacktoberfest Logo" />

<!-- Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-G6EQC4D6KY"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'G-G6EQC4D6KY');
</script>
<!-- End Google Analytics -->
<!-- Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-G6EQC4D6KY"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag() { dataLayer.push(arguments); }
gtag('js', new Date());

gtag('config', 'G-G6EQC4D6KY');
</script>
<!-- End Google Analytics -->

<!-- Favicon -->
<link rel="icon" href="/img/favicon.ico" type="./image/x-icon" />
Expand Down Expand Up @@ -73,15 +73,16 @@
</div>

<div class="header-controls">
<button id="contactButton" class="contact-btn" aria-label="Contact">
<a href="form.html">Contact</a>
<button class="contact-btn" aria-label="Contact" onclick="window.location.href='form.html';">
Contact
</button>
<button id="contactButton" class="contact-btn" aria-label="Contact">
<a href="index.html">Home</a>
<button class="contact-btn" aria-label="Home" onclick="window.location.href='index.html';">
Home
</button>
</div>
</header>


<div class="container">
<section id="terms-of-service">
<h2>Software Open Source License with Reserved Rights</h2>
Expand Down Expand Up @@ -129,14 +130,17 @@ <h3>4. Attribution Requirements</h3>
<h3>5. Contributions</h3>
<ul>
<li>a) All contributions to the project are subject to review and approval by the Owners.</li>
<li>b) By contributing to the project, contributors agree that their contributions will be under the terms of this license.</li>
<li>b) By contributing to the project, contributors agree that their contributions will be under the terms of
this license.</li>
</ul>

<h3>6. Warranty and Liability</h3>
<p>THE SOFTWARE IS PROVIDED "AS IS", WITHOUT ANY WARRANTY OF ANY KIND, EXPRESS OR IMPLIED. IN NO EVENT SHALL THE OWNERS BE LIABLE FOR ANY CLAIM, DAMAGES, OR OTHER LIABILITIES.</p>
<p>THE SOFTWARE IS PROVIDED "AS IS", WITHOUT ANY WARRANTY OF ANY KIND, EXPRESS OR IMPLIED. IN NO EVENT SHALL THE
OWNERS BE LIABLE FOR ANY CLAIM, DAMAGES, OR OTHER LIABILITIES.</p>

<h3>7. Termination</h3>
<p>The rights granted under this license will automatically terminate if the User fails to comply with any of its terms and conditions.</p>
<p>The rights granted under this license will automatically terminate if the User fails to comply with any of its
terms and conditions.</p>

<h3>8. Miscellaneous</h3>
<ul>
Expand All @@ -154,4 +158,4 @@ <h3>8. Miscellaneous</h3>
</div>
</body>

</html>
</html>

0 comments on commit e7657d5

Please sign in to comment.