-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathgrammar.html
37 lines (37 loc) · 891 Bytes
/
grammar.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
<!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;
}
</style>
</head>
<body>
<span id="spnTopic">Topic</span><br>
<span id="spnGrammar"></span><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>