Skip to content

Commit f80c18b

Browse files
committedOct 16, 2013
added example question without any image
1 parent 01560f2 commit f80c18b

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed
 

‎js/index.js

+4-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@ var Game = {
33
["Kur namų raktai?", "Rankoj, asile", "Pamečiau", "Neturiu namų", 2, "http://placekitten.com/200/300"],
44
["Ar už tokią Lietuvą kovojom?", "NE!", "NE!", "NE!", 2, "http://placekitten.com/240/350"],
55
["Ar pienas baltas?", "Taip", "Ne", "Nežinau", 1, "http://placekitten.com/280/230"],
6-
["Ką geria karvė?", "Pieną", "Alų", "Brendį", 1, "http://placekitten.com/340/230"]
6+
["Ką geria karvė?", "Pieną", "Alų", "Brendį", 1, "http://placekitten.com/340/230"],
7+
["Klausimas be paveikslėlio", "Aina sau!", "A i taip galima?", "jezusmarija!", 3]
78
],
89

910
// Elements
@@ -42,6 +43,8 @@ var Game = {
4243
restart: function() {
4344
this.currentQuestion = "";
4445
this.currentAnswer = 0;
46+
this.score = 0;
47+
this.el.score.innerHTML = this.score;
4548
this.el.gameOver.style.display = "none";
4649
this.start();
4750
},

0 commit comments

Comments
 (0)
Failed to load comments.