-
Notifications
You must be signed in to change notification settings - Fork 4
/
lesson.html
76 lines (73 loc) · 2.29 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
<!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">
<style>
img {
max-width: 100%;
height: auto;
}
.correct {
color: green;
}
.wrong {
color: red;
}
</style>
<!-- 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>
<noscript><div><img src="https://mc.yandex.ru/watch/91922670" style="position:absolute; left:-9999px;" alt="" /></div></noscript>
<span id="spnTopic">Put the correct preposition!</span>
<span id="spnCurPos">1</span>/<span id="spnTotal">N</span><br><br>
<div id="question"></div><br>
<div id="answer_radiobutton_div">
</div><br>
<div id="answer_text_div">
<input type="text" id="answer_text_field">
</div><br>
<div id="resultDiv">
<lbl id="lblAction">CHECK: </lbl><lbl id="resultLbl"></lbl>
</div><br>
<br>
<button id="checkBtn" onclick="getAnswer()" >check answer</button>
<button id="nextBtn" onclick="nextCard()" style="margin-left:20px">next card</button>
<button id="showAnswerBtn" onclick="showAnswer()" style="margin-left:20px">show answer</button>
<br><br>
<a href="index.html">Back to the table of content</a>
</body>
<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>
</html>