-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.js
52 lines (47 loc) · 1.7 KB
/
main.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
var OnMyList = true
window.onload = function () {
document.getElementById("AddListID").src = 'x-white.png';
document.getElementById("AddListID").style.transform = 'rotate(45deg)';
};
function login(){
console.log("Logging In");
document.getElementById("navProfilePicID").style.display = "block";
document.getElementById("navProfilePicID").src = "LunaPic.png";
document.getElementById("navProfileNameID").innerHTML = "Luna";
console.log("You are logged in as Luna");
}
function myList(){
if(OnMyList == true){
document.getElementById("AddListID").src = 'check-purple.png';
document.getElementById("AddListID").style.transform = 'rotate(0deg)';
OnMyList = false;
}
else if (OnMyList == false){
document.getElementById("AddListID").src = 'x-purple.png';
document.getElementById("AddListID").style.transform = 'rotate(45deg)';
OnMyList = true;
}
}
//change Play Button colorn at mouse hover
function playButtonMouseOver(){
document.getElementById("playButtonID").src = 'PlayButton-purple.png';
}
function playButtonMouseNotOver(){
document.getElementById("playButtonID").src = 'PlayButton-white.png';
}
function listButtonMouseOver(){
if(OnMyList == true){
document.getElementById("AddListID").src = 'x-purple.png';
}
else if (OnMyList == false){
document.getElementById("AddListID").src = 'check-purple.png';
}
}
function listButtonMouseNotOver(){
if(OnMyList == true){
document.getElementById("AddListID").src = 'x-white.png';
}
else if (OnMyList == false){
document.getElementById("AddListID").src = 'check-white.png';
}
}