Skip to content

Commit

Permalink
added coplay page
Browse files Browse the repository at this point in the history
  • Loading branch information
thekikoman committed Jul 2, 2024
1 parent 7d17fd4 commit a5cfa34
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 0 deletions.
4 changes: 4 additions & 0 deletions enter.js
Original file line number Diff line number Diff line change
Expand Up @@ -300,6 +300,8 @@ function pageSpecificChanges(page){
case "coplay":
topBarColor.style.borderColor = "rgb(146 215 0)";
resetIcons();
icon = document.getElementById("coplayIcon");
icon.style.filter = "saturate(1) brightness(1)";
initCarousel();
break;
default:
Expand Down Expand Up @@ -411,9 +413,11 @@ function resetIcons(){
dmcrIcon = document.getElementById("dmcrIcon");
lfIcon = document.getElementById("lfIcon");
tepIcon = document.getElementById("tepIcon");
coplayIcon = document.getElementById("coplayIcon");
dmcrIcon.style.filter = "saturate(0) brightness(1.6)";
lfIcon.style.filter = "saturate(0)";
tepIcon.style.filter = "saturate(0)";
coplayIcon.style.filter = "saturate(0)";
};

//mobile scroll physics
Expand Down
2 changes: 2 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@
</div>
<div class="modIcon" id="tepIcon" onclick="loadPageContents('the_espionage_project');" onmouseover="playSound('./res/hover.mp3')">
</div>
<div class="modIcon" id="coplayIcon" onclick="loadPageContents('coplay');" onmouseover="playSound('./res/hover.mp3')">
</div>
</div>
<div class="topBarSpacer">
</div>
Expand Down
26 changes: 26 additions & 0 deletions style.css
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,13 @@ h2{
/*filter: drop-shadow(0px 0px 4px wheat);*/
}

h3{
font-family: little-pixel;
color: #cccccc;
font-size: 13px;
/*filter: drop-shadow(0px 0px 4px wheat);*/
}

p{
font-family: little-pixel;
color: #a9a9a9;
Expand All @@ -39,6 +46,10 @@ li{
line-height: 15px;
}

u{
text-decoration: none;
}

iframe{
position: relative;
z-index: 0;
Expand Down Expand Up @@ -276,6 +287,21 @@ iframe{
border-image-slice: 5%
}

#coplayIcon{
background-image: url(./res/coplayIcon.webp);
filter: saturate(0);
border: solid;
border-color: transparent;
}

#coplayIcon:hover{
filter: saturate(1)brightness(1) !important;
cursor: pointer;
border: solid;
border-image-source: url('./res/selector.svg');
border-image-slice: 5%
}

@media screen and (max-width: 1053px) {
.socialIcon{
width: 35px;
Expand Down

0 comments on commit a5cfa34

Please sign in to comment.