-
Notifications
You must be signed in to change notification settings - Fork 0
/
question.js
172 lines (146 loc) · 32.1 KB
/
question.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
console.log('question.js loaded');
FBInstant.initializeAsync().then(function () {
console.log('initialised');
var progress = 0;
var interval = setInterval(function() {
if (progress>= 95) {
clearInterval(interval);
FBInstant.startGameAsync().then(
function() {
console.log('game started');
var playerName = FBInstant.player.getName();
console.log('playerName');
}
)
}
FBInstant.setLoadingProgress(progress);
progress+=5;
},100)
}
);
function Quiz(questions) {
this.score = 0;
this.questions = questions;
this.questionIndex = 0;
}
Quiz.prototype.getQuestionIndex = function() {
return this.questions[this.questionIndex];
}
Quiz.prototype.guess = function(answer) {
if(this.getQuestionIndex().isCorrectAnswer(answer)) {
this.score++;
}
this.questionIndex++;
}
Quiz.prototype.isEnded = function() {
return this.questionIndex === this.questions.length;
}
function Question(text, choices, answer) {
this.text = text;
this.choices = choices;
this.answer = answer;
}
Question.prototype.isCorrectAnswer = function(choice) {
return this.answer === choice;
}
function populate() {
if(quiz.isEnded()) {
showScores();
}
else {
// show question
var element = document.getElementById("question");
element.innerHTML = quiz.getQuestionIndex().text;
// show options
var choices = quiz.getQuestionIndex().choices;
for(var i = 0; i < choices.length; i++) {
var element = document.getElementById("choice" + i);
element.innerHTML = choices[i];
guess("btn" + i, choices[i]);
}
showProgress();
}
};
function guess(id, guess) {
var button = document.getElementById(id);
button.onclick = function() {
quiz.guess(guess);
populate();
}
};
function showProgress() {
var currentQuestionNumber = quiz.questionIndex + 1;
var element = document.getElementById("progress");
element.innerHTML = "Question " + currentQuestionNumber + " of " + quiz.questions.length;
};
function showScores() {
var gameOverHTML = "";
gameOverHTML += "<h2 id='score'> Your score: " + quiz.score + "</h2>";
var element = document.getElementById("quiz");
element.innerHTML = gameOverHTML;
var playerName=FBInstant.player.getName();
console.log('playerName');
addToLeaderBoard(quiz.score, playerName);
console.log('addToLeaderBoard called');
updateLeaderBoard();
console.log('updateLeaderBoard called');
readLeaderBoard();
console.log('readLeaderBoard called');
$('#leaderboard-section').removeClass('hidden');
};
function addToLeaderBoard(scores, playerName) {
FBInstant
.getLeaderboardAsync('Global leaderboard')
.then(leaderboard => {
console.log(leaderboard.getName());
return leaderboard.setScoreAsync(scores);
})
.then(() => console.log('Score saved'))
.catch(error => console.error(error));
}
function updateLeaderBoard() {
FBInstant.updateAsync({
action: 'LEADERBOARD',
name: 'Global leaderboard'
})
.then(() => console.log('Update Posted'))
.catch(error => console.error(error));
}
function share() {
var img = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAB4AAAAQ4CAYAAADo08FDAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAFG5SURBVHhe7N15mN1lff//e4YkxIhIULQgxyXVKm5FWRSpu3Vrtbb9usHXperXtj+FWbJCQsJOEiDJBKhUSqMoAqIFQQQpqwhhiRABAWUXCLIlLCFMksmcX4Nvq2JCksl9zpzPfR6P6/Lyfp0/5yzXFZ7nnumo1Wr1BAAAAAAAAEDldcb/AwAAAAAAAFBxAjAAAAAAAABAIQRgAAAAAAAAgEIIwAAAAAAAAACFEIABAAAAAAAACiEAAwAAAAAAABRCAAYAAAAAAAAohAAMAAAAAAAAUAgBGAAAAAAAAKAQAjAAAAAAAABAIQRgAAAAAAAAgEIIwAAAAAAAAACFEIABAAAAAAAACiEAAwAAAAAAABRCAAYAAAAAAAAoh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hAAGAAAAAAAAiBDAAAAAAAAAABECGAAAAAAAACBCAAMAAAAAAABECGAAAAAAAACACAEMAAAAAAAAECGAAQAAAAAAACIEMAAAAAAAAECEAAYAAAAAAACIEMAAAAAAAAAAEQIYAAAAAAAAIEIAAwAAAAAAAEQIYAAAAAAAAIAIAQwAAAAAAACQsB37UQdv5R/JpAAAAABJRU5ErkJggg==";
FBInstant.shareAsync({
intent: 'INVITE',
image: img, // base64Image code must be passed in img
text: 'Play this Awesome game',
data: {myReplayData: '...'},
}).then(function() {
location.reload();
});
}
function readLeaderBoard() {
FBInstant
.getLeaderboardAsync('Global leaderboard')
.then(leaderboard => leaderboard.getEntriesAsync(10, 0))
.then(entries => {
var leaderHTML="";
for (var i = 0; i < entries.length; i++) {
leaderHTML += "<tr><td>" +
entries[i].getRank() + '. ' + "</td><td>" +
entries[i].getPlayer().getName() + "</td><td>" +
entries[i].getScore() +"</td></tr>";
}
document.getElementById("leaderboard").innerHTML = leaderHTML;
}).catch(error => console.error(error));
}
// create questions here
var questions = [
new Question("Question1", ["option1", "option2","option3", "option4"], "correctoption"),
new Question("Question2", ["option1", "option2","option3", "option4"], "correctoption"),
new Question("Question3", ["option1", "option2","option3", "option4"], "correctoption"),
new Question("Question4", ["option1", "option2","option3", "option4"], "correctoption"),
new Question("Question5", ["option1", "option2","option3", "option4"], "correctoption")
];
// create quiz
var quiz = new Quiz(questions);
// display quiz
populate();