Skip to content

Commit

Permalink
initial changes
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanyychen committed Nov 6, 2024
1 parent a7bc499 commit cf88636
Show file tree
Hide file tree
Showing 21 changed files with 111 additions and 242 deletions.
Binary file added assets/.DS_Store
Binary file not shown.
Binary file removed assets/images/aslogo.png
Binary file not shown.
Binary file removed assets/images/hard_hack_fallenstar(2023).png
Binary file not shown.
Binary file removed assets/images/hard_hack_library2(2023).png
Binary file not shown.
Binary file removed assets/images/hard_hack_logo.png
Binary file not shown.
Binary file removed assets/images/hard_hack_small_logo.png
Binary file not shown.
Binary file added assets/images/hcf-banner.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes
Binary file removed assets/images/ieeelogo.png
Binary file not shown.
Binary file added assets/images/l3harris-logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/images/llnl-logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/images/naasco-logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/images/nasc-logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/images/ntagsw-logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/images/scholarssociety-logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/images/tbp-logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed assets/images/tntlogo.png
Binary file not shown.
Binary file removed assets/images/ucsdecelogo.png
Binary file not shown.
25 changes: 25 additions & 0 deletions index.css
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,31 @@ h1 {
text-align: center;
}

#scrollTop {
display: none; /* Hidden by default */
position: fixed; /* Fixed/sticky position */
bottom: 20px; /* Place the button at the bottom of the page */
right: 30px; /* Place the button 30px from the right */
z-index: 99; /* Make sure it does not overlap */
border: none; /* Remove borders */
outline: none; /* Remove outline */
background-color: darkblue; /* Set a background color */
cursor: pointer; /* Add a mouse pointer on hover */
height: 40px;
width: 40px;
border-radius: 10px; /* Rounded corners */
padding: 0px;
text-align: center;
text-justify: center;
line-height: 45px;
color: white;
font-size: 30px;
}

#scrollTop:hover {
background-color: #555; /* Add a dark-grey background on hover */
}

#menu-bar {
position: absolute;
display: flex;
Expand Down
307 changes: 65 additions & 242 deletions index.html

Large diffs are not rendered by default.

21 changes: 21 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,27 @@ $(document).ready(function() {
$("#icon").css({display: "block"});
}

// Get the button:
let scrollButton = document.getElementById("scrollTop");

// When the user scrolls down 20px from the top of the document, show the button
window.onscroll = function() {scrollFunction()};

function scrollFunction() {
if (document.body.scrollTop > 20 || document.documentElement.scrollTop > 20) {
scrollButton.style.display = "block";
} else {
scrollButton.style.display = "none";
}
}

scrollButton.addEventListener("click", toTop);

// When the user clicks on the button, scroll to the top of the document
function toTop() {
document.body.scrollTop = 0; // For Safari
document.documentElement.scrollTop = 0; // For Chrome, Firefox, IE and Opera
}

const height = $(window).height();
const width = $(window).width();
Expand Down

0 comments on commit cf88636

Please sign in to comment.