-
Notifications
You must be signed in to change notification settings - Fork 24
/
Copy pathquiz.php
44 lines (42 loc) · 1.58 KB
/
quiz.php
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
<?php
$page_type = "quiz";
include('translate.php');
?>
<!DOCTYPE html>
<html lang="<?= $i18n->_lang ?>">
<?php include('partials/head.php'); ?>
<body>
<?php include('partials/header.php') ?>
<div id="content">
<div id="mainFrame">
<h2 id="question-number"></h2>
<div class="questionBox"><p id="question-text"></p></div>
<div class="navButtons questionButtons">
<button onclick="next_question(1)" class="strong-agree" data-i18n="strong_agree">
<?= $i18n->get("strong_agree") ?>
</button>
<button onclick="next_question(2/3)" class="agree" data-i18n="agree">
<?= $i18n->get("agree") ?>
</button>
<button onclick="next_question(0)" class="neutral" data-i18n="neutral">
<?= $i18n->get("neutral") ?>
</button>
<button onclick="next_question(-2/3)" class="disagree" data-i18n="disagree">
<?= $i18n->get("disagree") ?>
</button>
<button onclick="next_question(-1)" class="strong-disagree" data-i18n="strong_disagree">
<?= $i18n->get("strong_disagree") ?>
</button>
<a href="#" class="button" onclick="prev_question()" id="back_button" data-i18n="prev_question">
<?= $i18n->get("prev_question") ?>
</a>
<a class="button" href="./" id="back_button_off" data-i18n="back_home">
<?= $i18n->get("back_home") ?>
</a>
</div>
</div>
</div>
<?php include('partials/footer.php'); ?>
<script src="./quiz.js"></script>
</body>
</html>