|
@@ -38,6 +38,13 @@ function handleDisplayEye(){
|
38
|
38
|
eyeBlock.children[1].style.cssText = "animation: blinking1 1s forwards 1s,blinking2 1s forwards 2s,blinking3 1s forwards 3s"
|
39
|
39
|
eyeBlock.children[0].children[0].style.cssText = "animation:fade 1s forwards 4s"
|
40
|
40
|
eyeBlock.children[2].children[0].style.cssText = "animation:fade 1s forwards 4.5s"
|
|
41
|
+
|
|
42
|
+ let audioBaillement = document.createElement("audio");
|
|
43
|
+ audioBaillement.setAttribute("preload", "auto");
|
|
44
|
+ audioBaillement.setAttribute("autoplay", true);
|
|
45
|
+ audioBaillement.setAttribute("src", "../Sounds/baillement_final.mp3");
|
|
46
|
+ audioBaillement.style.cssText = "z-index: -1; opacity: 0;";
|
|
47
|
+ body.appendChild(audioBaillement);
|
41
|
48
|
}
|
42
|
49
|
|
43
|
50
|
//listeners
|