Skip to content

Commit

Permalink
remove back to top #4932
Browse files Browse the repository at this point in the history
  • Loading branch information
jainaryan04 committed Nov 10, 2024
1 parent a8adfdf commit 02c3008
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 49 deletions.
22 changes: 0 additions & 22 deletions assets/html/event.html
Original file line number Diff line number Diff line change
Expand Up @@ -1133,33 +1133,11 @@ <h2 style="margin-bottom: 2.4rem; margin-top:0.5rem; font-size: 28px; font-weigh

<!-- adding privacy policy and copyright popup-->
<div class="footer-f" style="text-align: center;">
<div style="display: flex; justify-content: space-between; align-items: center; width: 100%;">
<div id="back-to-top-container" onclick="lenis.scrollTo('#home')" style="display: inline-flex; align-items: center;">
<button class="Btn">
<svg height="1.2em" class="arrow" viewBox="0 0 512 512">
<path
d="M233.4 105.4c12.5-12.5 32.8-12.5 45.3 0l192 192c12.5 12.5 12.5 32.8 0 45.3s-32.8 12.5-45.3 0L256 173.3 86.6 342.6c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3l192-192z">
</path>
</svg>
<p class="text">Back to Top</p>
</button>
</div>

<p style="text-align: center; margin-top: -10px;">
&copy; <script>document.write(new Date().getFullYear())</script> All Rights Reserved. Made with ❤ by Guardian Hackers.
</p>

<div style="margin-left: 10px;">
<button id="translateButton">Translate</button>
</div>
</div>

<div class="row-copy" style="text-align: center; margin-top: -30px;">
<a href="/copyrightpolicy.html" id="copyrightPolicyLink">Copyright Policy</a> |
<a href="/privacynotice.html" id="privacyNoticeLink">Privacy Notice</a> |
<a href="/our-vision.html" id="ourvisionLink">Our Vision</a>
</div>

</div>


Expand Down
29 changes: 2 additions & 27 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -7183,16 +7183,7 @@ <h1>Subscribe to Our Newsletter</h1>

</div>
<div>
<div id="back-to-top-container" onclick="lenis.scrollTo('#home')" class="right">
<button class="Btn">
<svg height="1.2em" class="arrow" viewBox="0 0 512 512">
<path
d="M233.4 105.4c12.5-12.5 32.8-12.5 45.3 0l192 192c12.5 12.5 12.5 32.8 0 45.3s-32.8 12.5-45.3 0L256 173.3 86.6 342.6c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3l192-192z">
</path>
</svg>
<p class="text">Back to Top</p>
</button>
</div>

<div>
<button id="translateButton">Translate</button>
</div>
Expand All @@ -7217,16 +7208,6 @@ <h1>Subscribe to Our Newsletter</h1>
<a href="./contributor/contributorss.html" class="contributors"><i class="fas fa-users"></i> Our Contributors</a> |
<a href="refundpolicy.html" id="refundp">Refund Policy</a>

<!-- Back to Top Button -->
<div id="back-to-top-container" onclick="window.scrollTo({ top: 0, behavior: 'smooth' })" style="display: none; position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); z-index: 1000; align-items: center;">
<button class="Btn" style="background-color: rgba(0, 0, 0, 0.7); color: white; padding: 10px; border-radius: 5px;">
<svg height="1.2em" class="arrow" viewBox="0 0 512 512">
<path d="M233.4 105.4c12.5-12.5 32.8-12.5 45.3 0l192 192c12.5 12.5 12.5 32.8 0 45.3s-32.8 12.5-45.3 0L256 173.3 86.6 342.6c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3l192-192z"></path>
</svg>
<p class="text">Back to Top</p>
</button>
</div>

<!-- Styles for hover effects -->
<style>
#refundp:hover {
Expand All @@ -7248,13 +7229,7 @@ <h1>Subscribe to Our Newsletter</h1>
</style>

<!-- Script for showing the Back to Top button when scrolling -->
<script>
window.onscroll = function() {
const backToTop = document.getElementById('back-to-top-container');
// Show the button if the page is scrolled more than 100px
backToTop.style.display = document.documentElement.scrollTop > 100 ? 'inline-flex' : 'none';
};
</script>

</div>
</div>

Expand Down

0 comments on commit 02c3008

Please sign in to comment.