diff --git a/assets/music/march_vol_charged.mp3 b/assets/music/march_vol_charged.mp3 new file mode 100644 index 0000000..d8d98c6 Binary files /dev/null and b/assets/music/march_vol_charged.mp3 differ diff --git a/css/style.css b/css/style.css index e7fd5cc..61cadea 100644 --- a/css/style.css +++ b/css/style.css @@ -43,7 +43,8 @@ body { left: 0px; width: 100vw; height: 100vh; - z-index: 1; /*hide baby*/ + z-index: 1; + /*hide baby*/ } #playBegin { @@ -67,6 +68,7 @@ body { display: none; } + .floatright { position: absolute; right: 2%; @@ -104,7 +106,9 @@ body { z-index: 2; } -#mao>img, #xi>img, #square>img { +#mao>img, +#xi>img, +#square>img { width: 30vw; margin-top: 10vh; } @@ -113,4 +117,14 @@ body { background-color: black; display: none; z-index: 10; + font-size: 30px; + padding-top: 20vh; } + +#win { + background-color: red; + display: none; + z-index: 10; + font-size: 30px; + padding-top: 20vh; +} \ No newline at end of file diff --git a/index.html b/index.html index 577c120..d0dadb7 100644 --- a/index.html +++ b/index.html @@ -76,6 +76,13 @@ Thanks for playing
Play again +
+

Congratulations!

+

Your social credit score is high enough

+

You are worthy of the Chinese Dream

+ Thanks for playing
+ Play again +
diff --git a/js/main.js b/js/main.js index 7f87fb7..be87e59 100644 --- a/js/main.js +++ b/js/main.js @@ -51,8 +51,8 @@ function displayQuestion() { $("#loose").show(); } else { - - if(total < 2000) sef("pullup"); + + if (total < 2000) sef("pullup"); var index = 0; // sends comrad Dwayne to help (or calls him back) @@ -77,9 +77,11 @@ function displayQuestion() { indexesProgress++; } else { - shuffle(indexeslist); - indexesProgress = 0; - index = 0; + audio.pause(); + sef("applause"); + audio = new Audio('assets/music/march_vol_charged.mp3'); + audio.play(); + $("#win").show(); } cQuestion = data["questions"][index]; $("[data-ans=1]").html(data["questions"][index]["answers"][0]["text"]);