master
annasandri 4 years ago
parent 572973ccf9
commit 789fb84875

@ -32,4 +32,5 @@ div.figure6 {
position:absolute;
left:10%;
bottom: 15%;
}
}

@ -7,13 +7,16 @@
</head>
<body>
<div class="score">
score:<span id="result" >0</span>/6
Click on the objects<br>
You saved <span id="result" >0</span> kids out of 6.
<div id="win"></div>
</div>
</div>
<div class="figure1">
<img id="forniture1" src="../gifs/forniture_1.gif" style="display: block;">
<img id="child1" src="../gifs/child_6.gif" style="display: none;">
<img id="forniture1" src="../gifs/forniture_1.gif" style="display: block;">
<img id="child1" src="../gifs/child_6.gif" style="display: none;">
</div>
<div class="figure2">

@ -61,8 +61,8 @@ $(document).ready(function() {
function winning() {
if (counter === 6) {
$('#win').html("you won!");
//alert ("you won");
$('#win').html("you are a savior <3 <3");
window.open("https://www.bbc.com/news/world-53416247");
} };

Loading…
Cancel
Save