Merge pull request #5 from PedrosUsername/main

Question improved
This commit is contained in:
Mattia Mascarello 2021-11-21 18:40:16 +01:00 committed by GitHub
commit 9528a2f230
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
9 changed files with 27 additions and 1 deletions

BIN
assets/img/p0.jpeg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 38 KiB

BIN
assets/img/p1.jpeg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 13 KiB

BIN
assets/img/p2.jpeg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 109 KiB

BIN
assets/img/p3.jpeg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 24 KiB

BIN
assets/img/p4.jpeg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 35 KiB

BIN
assets/img/p5.jpeg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

View File

@ -31,6 +31,11 @@ body {
margin-top: 5vh; margin-top: 5vh;
} }
.answers-pic {
width: 100%;
border: 18px ridge yellow;
}
.floattop { .floattop {
text-align: center; text-align: center;
position: absolute; position: absolute;

View File

@ -1,6 +1,27 @@
{ {
"initialScore": 10000, "initialScore": 10000,
"questions": [ "questions": [
{
"title": "Who's the best (and sexiest) president ever:",
"answers": [
{
"text": "<img class='answers-pic' src='assets/img/p0.jpeg'>",
"effect": 2000
},
{
"text": "<img class='answers-pic' src='assets/img/p2.jpeg'>",
"effect": -9999
},
{
"text": "<img class='answers-pic' src='assets/img/p3.jpeg'>",
"effect": -9999
},
{
"text": "<img class='answers-pic' src='assets/img/p5.jpeg'>",
"effect": -9999
}
]
},
{ {
"title": "Is Taiwan a country", "title": "Is Taiwan a country",
"answers": [ "answers": [

View File

@ -165,4 +165,4 @@ $(".ans").click(function () {
$('.fadeOutVideo').on('ended', function () { $('.fadeOutVideo').on('ended', function () {
$(this).parent().fadeOut(); $(this).parent().fadeOut();
}) })