Skip to content
This repository has been archived by the owner on Jul 13, 2020. It is now read-only.

Commit

Permalink
Fix issues #12 and #10
Browse files Browse the repository at this point in the history
After 3 days, I finally got it; but at what cost?
  • Loading branch information
sabianroberts committed May 14, 2020
1 parent e18c212 commit dbc0d12
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 10 deletions.
32 changes: 24 additions & 8 deletions click.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,26 @@
function toPage(frompage, topage) {
$(`.menulisting#${frompage}`).css("display", "none");
$(`.menulisting#${topage}`).css("display", "flex");
}

function blankBackground() {
var useBlank = document.getElementsByTagName('guide')
var body = document.getElementsByTagName("body")[0]
useBlank.style.body.backgroundImage = "url('https://media.discordapp.net/attachments/649968233553723405/709086018942402631/image1.jpg')";
$(".menulisting#" + frompage).css("display", "none");
$(".menulisting#" + topage).css("display", "flex");

$('main').removeClass();

switch (topage) {
case 'main':
$('main').addClass('bground1');
break;
case 'more':
$('main').addClass('bground1');
break;
case 'guide':
$('main').addClass('bground2');
break;
case 'custom':
$('main').addClass('bground1');
break;
case 'adult':
$('main').addClass('bground2');
break;
}


}
8 changes: 6 additions & 2 deletions style.css
Original file line number Diff line number Diff line change
Expand Up @@ -69,9 +69,13 @@ main {
}

button {
background: white;
background: transparent;
border: none !important;
font-size: 0;
font-size: 20;
position: absolute;
top: -13%;
left: 30%;
text-align: right;
}

.menulisting li {
Expand Down

0 comments on commit dbc0d12

Please sign in to comment.