We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 50e3208 commit bcd3897Copy full SHA for bcd3897
1 file changed
_extras/figures.md
@@ -1,6 +1,9 @@
1
---
2
title: Figures
3
4
+
5
+{% include base_path.html %}
6
7
<script>
8
window.onload = function() {
9
var lesson_episodes = [
@@ -39,9 +42,7 @@ title: Figures
39
42
title.innerHTML = "<strong>Figure " + image_num + ".</strong> " + image.alt;
40
43
article_here.appendChild(title);
41
44
- var img = document.createElement('img');
- img.src = image.src;
- article_here.appendChild(img);
45
+ article_here.appendChild(image.cloneNode(false));
46
47
if (image_num < images.length) {
48
var hr = document.createElement('hr');
@@ -51,7 +52,7 @@ title: Figures
51
52
}
53
54
- episode_url = "{{ page.root }}" + lesson_episodes[i];
55
+ episode_url = "{{ relative_root_path }}" + lesson_episodes[i];
56
xmlHttp[i].open("GET", episode_url);
57
xmlHttp[i].send(null);
58
0 commit comments