Skip to content

Commit

Permalink
hi huma
Browse files Browse the repository at this point in the history
  • Loading branch information
MapleAtMorning committed Jun 3, 2024
1 parent 88a9d4c commit e3c567f
Show file tree
Hide file tree
Showing 4 changed files with 40 additions and 1 deletion.
Binary file added img/misc/huma.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@ <h4 class="info-title">State of the Game</h4>
</main>

<footer>
<img src="img/misc/huma.png" style="display: none;" id="hiddenhuma">
<gu-footer></gu-footer>
</footer>

Expand Down
17 changes: 16 additions & 1 deletion js/homepage.js
Original file line number Diff line number Diff line change
Expand Up @@ -104,4 +104,19 @@ function delayedLoop(delay) {
}, delay)
}

delayedLoop(timeBetweenRotate);
delayedLoop(timeBetweenRotate);

// Huma
// ===============================================================================================================================

const huma = document.getElementById("hiddenhuma")

function hidehuma(){
let i = Math.round(Math.random() * 25)
console.log(i)
if (i == 1){
huma.style.display = "block"
}
}

hidehuma()
23 changes: 23 additions & 0 deletions styles/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -293,4 +293,27 @@ Footer

footer{
margin-top: 1.75rem;
position: relative;
}

#hiddenhuma{
position: absolute;
z-index: -1;
right: clamp(5%, 3vw, 0px);
top: -50%;
width: 150px;
}

@media only screen and (width < 1700px){

#hiddenhuma{
right: 0px;
}
}

@media only screen and (width < 1500px){

#hiddenhuma{
right: -150px;
}
}

0 comments on commit e3c567f

Please sign in to comment.