-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathteaching.js
66 lines (62 loc) · 1.48 KB
/
teaching.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
function newStyle() {
let newColor = '';
let newFont = '';
let x = Math.floor(Math.random()*7);
switch (x){
case 0:
newColor = 'red';
newFont = 'Times New Roman';
break;
case 1:
newColor = 'blue';
newFont = 'Florence, cursive';
break;
case 2:
newColor = 'yellow';
newFont = 'Verdana';
break;
case 3:
newColor= 'purple';
newFont = 'Courier New';
break
case 4:
newColor = 'cyan';
newFont = 'Georgia';
break;
case 5:
newColor = 'maroon';
newFont = 'Palatino';
break;
case 6:
newColor = 'lime';
newFont = 'Impact';
break;
}
let elem = document.getElementById('logo');
elem.style.color = newColor;
elem.style.fontFamily = newFont;
}
const marhaban = new Audio("Marhaban.m4a");
const kayfak = new Audio("Kayfak.m4a");
const shlonak = new Audio("Shlonak.m4a");
const shukranjazeelanlak = new Audio("ShukranJazeelanLak.m4a");
const shukranktir = new Audio("ShukranKtir.m4a");
const nem = new Audio("nem.m4a");
const ee = new Audio("ee.m4a");
const la = new Audio("la.m4a");
const yalla = new Audio("yalla.m4a");
const home = new Audio("GoingHome.m4a");
const school = new Audio("School.m4a");
audio.oncanplaythrough = function(){
marhaban.play();
kayfak.play();
shlonak.play();
shukranjazeelanlak.play();
shukranktir.play();
nem.play();
ee.play();
la.play();
yalla.play();
home.play();
school.play();
}