-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathlesson.html
85 lines (77 loc) · 2.81 KB
/
lesson.html
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
<!DOCTYPE html>
<head>
<link rel="icon" type="image/x-icon" href="favicon.ico">
<title>English exercises</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="style.css">
<!-- Yandex.Metrika counter -->
<script type="text/javascript" >
(function(m,e,t,r,i,k,a){m[i]=m[i]||function(){(m[i].a=m[i].a||[]).push(arguments)};
m[i].l=1*new Date();
for (var j = 0; j < document.scripts.length; j++) {if (document.scripts[j].src === r) { return; }}
k=e.createElement(t),a=e.getElementsByTagName(t)[0],k.async=1,k.src=r,a.parentNode.insertBefore(k,a)})
(window, document, "script", "https://mc.yandex.ru/metrika/tag.js", "ym");
ym(91922670, "init", {
clickmap:true,
trackLinks:true,
accurateTrackBounce:true,
webvisor:true
});
</script>
<!-- /Yandex.Metrika counter -->
<script src="js/eventer.js" ></script>
</head>
<body class="interactive-page">
<noscript>
<div>
<img src="https://mc.yandex.ru/watch/91922670" style="position:absolute; left:-9999px;" alt=""/>
</div>
</noscript>
<div class="container">
<div class="exercise-header">
<h2 id="spnTopic">Put the correct preposition!</h2>
<div class="progress">
<span id="spnCurPos">1</span>/<span id="spnTotal">N</span>
</div>
</div>
<div class="question-card" id="question">
<!-- Question would be put here -->
</div>
<!-- Grid with the options -->
<div class="answer-options" id="answer_radiobutton_div">
<!-- Dynamically filled -->
</div>
<div id="answer_text_div">
<input type="text" id="answer_text_field" placeholder="Type your answer here">
</div>
<div class="result-section" id="resultDiv">
<span id="lblAction">CHECK:</span>
<span id="resultLbl"></span>
</div>
<div class="button-group">
<button id="checkBtn" onclick="getAnswer()">Check Answer</button>
<button id="nextBtn" onclick="nextCard()">Next Card</button>
<button id="showAnswerBtn" onclick="showAnswer()">Show Answer</button>
</div>
<div class="back-link">
<a href="index.html">Back to the table of content</a>
</div>
</div>
<script>
include = function (url, fn) {
var e = document.createElement("script");
e.onload = fn;
e.src = url;
e.async = true;
document.getElementsByTagName("head")[0].appendChild(e);
};
</script>
<script id="lessonDeckScript"></script>
<script>
const urlParams = new URLSearchParams(window.location.search);
const lesson_name = urlParams.get('lesson');
const lesson_src = "decks/" + lesson_name + ".js";
document.getElementById("lessonDeckScript").src = lesson_src;
</script>
</body>
</html>