-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathscript.js
120 lines (100 loc) · 4.65 KB
/
script.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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
document.getElementById('arsenal').onclick = paintArsenal
document.getElementById('aston-villa').onclick = paintAstonVilla
document.getElementById('bournemouth').onclick = paintBournemouth
document.getElementById('brighton').onclick = paintBrighton
document.getElementById('brentford').onclick = paintBrentford
document.getElementById('burnley').onclick = paintBurnley
document.getElementById('chelsea').onclick = paintChelsea
document.getElementById('crystal-palace').onclick = paintCrystalPalace
document.getElementById('everton').onclick = paintEverton
document.getElementById('fulham').onclick = paintFulham
document.getElementById('liverpool').onclick = paintLiverpool
document.getElementById('luton').onclick = paintLuton
document.getElementById('manchester-city').onclick = paintManchesterCity
document.getElementById('manchester-united').onclick = paintManchesterUnited
document.getElementById('newcastle').onclick = paintNewcastle
document.getElementById('nottingham-forest').onclick = paintNottinghamForest
document.getElementById('sheffield-united').onclick = paintSheffieldUnited
document.getElementById('tottenham').onclick = paintTottenham
document.getElementById('west-ham').onclick = paintWestHam
document.getElementById('wolverhampton').onclick = paintWolverhampton
function paintArsenal() {
document.querySelector('body').style.backgroundColor = 'rgb(239, 1, 7)'
document.querySelector('body').style.color = 'rgb(255, 255, 255)'
}
function paintAstonVilla() {
document.querySelector('body').style.backgroundColor = 'rgb(149, 191, 229)'
document.querySelector('body').style.color = 'rgb(103, 14, 54)'
}
function paintBournemouth() {
document.querySelector('body').style.backgroundColor = 'rgb(218, 41, 28)'
document.querySelector('body').style.color = 'rgb(0, 0, 0)'
}
function paintBrighton() {
document.querySelector('body').style.backgroundColor = 'rgb(0, 87, 184)'
document.querySelector('body').style.color = 'rgb(255, 205, 0)'
}
function paintBrentford() {
document.querySelector('body').style.backgroundColor = 'rgb(193, 0, 0)'
document.querySelector('body').style.color = 'rgb(255, 255, 255)'
}
function paintBurnley() {
document.querySelector('body').style.backgroundColor = 'rgb(108, 29, 69)'
document.querySelector('body').style.color = 'rgb(153, 214, 234)'
}
function paintChelsea() {
document.querySelector('body').style.backgroundColor = 'rgb(3, 70, 148)'
document.querySelector('body').style.color = 'rgb(209, 211, 212)'
}
function paintCrystalPalace() {
document.querySelector('body').style.backgroundColor = 'rgb(27, 69, 143)'
document.querySelector('body').style.color = 'rgb(167, 165, 166)'
}
function paintEverton() {
document.querySelector('body').style.backgroundColor = 'rgb(39, 68, 136)'
document.querySelector('body').style.color = 'rgb(255, 255, 255)'
}
function paintFulham() {
document.querySelector('body').style.backgroundColor = 'rgb(0, 0, 0)'
document.querySelector('body').style.color = 'rgb(255, 255, 255)'
}
function paintLiverpool() {
document.querySelector('body').style.backgroundColor = 'rgb(200, 16, 46)'
document.querySelector('body').style.color = 'rgb(246, 235, 97)'
}
function paintLuton() {
document.querySelector('body').style.backgroundColor = 'rgb(247, 143, 30)'
document.querySelector('body').style.color = 'rgb(0, 0, 0)'
}
function paintManchesterCity() {
document.querySelector('body').style.backgroundColor = 'rgb(108, 171, 221)'
document.querySelector('body').style.color = 'rgb(28, 44, 91)'
}
function paintManchesterUnited() {
document.querySelector('body').style.backgroundColor = 'rgb(218, 41, 28)'
document.querySelector('body').style.color = 'rgb(251, 225, 34)'
}
function paintNewcastle() {
document.querySelector('body').style.backgroundColor = 'rgb(45, 41, 38)'
document.querySelector('body').style.color = 'rgb(255, 255, 255)'
}
function paintNottinghamForest() {
document.querySelector('body').style.backgroundColor = 'rgb(221, 0, 0)'
document.querySelector('body').style.color = 'rgb(255, 255, 255)'
}
function paintSheffieldUnited() {
document.querySelector('body').style.backgroundColor = 'rgb(238, 39, 55)'
document.querySelector('body').style.color = 'rgb(0, 0, 0)'
}
function paintTottenham() {
document.querySelector('body').style.backgroundColor = 'rgb(19, 34, 87)'
document.querySelector('body').style.color = 'rgb(255, 255, 255)'
}
function paintWestHam() {
document.querySelector('body').style.backgroundColor = 'rgb(122, 38, 58)'
document.querySelector('body').style.color = 'rgb(27, 177, 231)'
}
function paintWolverhampton() {
document.querySelector('body').style.backgroundColor = 'rgb(253, 185, 19)'
document.querySelector('body').style.color = 'rgb(35, 31, 32)'
}