Skip to content

Commit

Permalink
Revert "Corrected Back-To-Top button"
Browse files Browse the repository at this point in the history
  • Loading branch information
aditya-bhaumik authored Jul 31, 2024
1 parent f5671f0 commit c30dbe2
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 46 deletions.
40 changes: 0 additions & 40 deletions css/backToTopButton.css

This file was deleted.

31 changes: 31 additions & 0 deletions css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -1954,6 +1954,37 @@ button:hover {
/* Yellow color for selected star */
}

#backToTopBtn {
position: fixed;
bottom: 50px;
right: 31px;
height: 50px;
width: 50px;
padding: 10px 15px;
font-size: 20px;
cursor: pointer;
border: none;
background: linear-gradient(#1845ad, #23a2f6);
color: white;
border-radius: 50%;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
transition: 500ms;
display: none;
justify-content: center;
align-items: center;
z-index: 9999;
}

#backToTopBtn:hover {
background: linear-gradient(to right, #ff512f, #f09819);
opacity: 1;
transform: scale(1.05);
box-shadow: 0 8px 12px rgba(0, 0, 0, 0.2);
}
.indexpage #backToTopBtn {
bottom: 130px;
}

.header {
margin-top: 100px;
width: 100vw;
Expand Down
5 changes: 1 addition & 4 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,14 @@
<title>Random Disco Light Simulator</title>
<link rel="icon" href="assets/images/favicon/favicon.ico" type="image/x-icon" />
<link rel="stylesheet" href="css/style.css">
<link rel="stylesheet" href="css/backToTopButton.css">
<script src="https://unpkg.com/@lottiefiles/lottie-player@latest/dist/lottie-player.js"></script>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.1/css/all.min.css"
integrity="sha512-DTOQO9RWCH3ppGqcWaEA1BIZOC6xxalwEsw9c2QQeAIftl+Vegovlnee1c9QX4TctnWMn13TZye+giMm8e2LwA=="
crossorigin="anonymous" referrerpolicy="no-referrer" />
<link href="https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap" rel="stylesheet">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
<script src="https://www.youtube.com/iframe_api"></script>
<script src="/js/backToTopBtn.js"></script>
<style>/* style.css */

.form-group {
Expand Down Expand Up @@ -156,11 +156,9 @@
</lottie-player>
</div>
</div>

<div class="indexpage">
<button id="backToTopBtn" title="Back to Top" aria-label="Back to Top" onclick="backToTop()"><i class="fas fa-arrow-up"></i></button>
</div>

<!-- Generate snowflakes dynamically with JavaScript -->
<div class="snowflakes">
<div id="particles-js"></div>
Expand Down Expand Up @@ -683,7 +681,6 @@ <h2>Account Not Available</h2>
<script src="js/background.js"></script>
<script src="js/social.js"></script>
<script src="js/script.js"></script>
<script src="/js/backToTopBtn.js"></script>
<script type="text/javascript">
function googleTranslateElementInit() {
new google.translate.TranslateElement({ pageLanguage: 'en' }, 'google_translate_element');
Expand Down
2 changes: 0 additions & 2 deletions js/backToTopBtn.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,3 @@ document.addEventListener("DOMContentLoaded", function () {
window.scrollTo({ top: 0, behavior: 'smooth' });
}
});


0 comments on commit c30dbe2

Please sign in to comment.