-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.js
More file actions
20 lines (18 loc) · 1.11 KB
/
index.js
File metadata and controls
20 lines (18 loc) · 1.11 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
const menuHome = () =>{
document.getElementById("contentFrame").setAttribute("src","home.html")
document.getElementById("menuHome").style = "color: black; background-color: white;"
document.getElementById("menuJukebox").style = "color: white; background-color: #298eb5;"
document.getElementById("menuGame").style = "color: white; background-color: #298eb5;"
}
const menuJukebox = () =>{
document.getElementById("contentFrame").setAttribute("src","jukebox.html")
document.getElementById("menuJukebox").style = "color: black; background-color: white;"
document.getElementById("menuHome").style = "color: white; background-color: #298eb5;"
document.getElementById("menuGame").style = "color: white; background-color: #298eb5;"
}
const menuGame = () =>{
document.getElementById("contentFrame").setAttribute("src","game.html")
document.getElementById("menuGame").style = "color: black; background-color: white;"
document.getElementById("menuHome").style = "color: white; background-color: #298eb5;"
document.getElementById("menuJukebox").style = "color: white; background-color: #298eb5;"
}