Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Toby Hodges
image-analysis-training-resources
Commits
ea4381a5
Verified
Commit
ea4381a5
authored
Jul 24, 2019
by
Toby Hodges
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
convert Extras
parent
a4e35a00
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
12 deletions
+16
-12
_extras/about.md
_extras/about.md
+4
-1
_extras/figures.md
_extras/figures.md
+12
-11
No files found.
_extras/about.md
View file @
ea4381a5
---
layout
:
page
title
:
About
---
{% include carpentries.html %}
TODO
{% include links.md %}
_extras/figures.md
View file @
ea4381a5
---
layout
:
page
title
:
Figures
---
...
...
@@ -6,17 +7,17 @@ title: Figures
<script>
window.onload = function() {
var lesson_
episod
es = [
{% for
episod
e in site.
episod
es %}
"{{
episod
e.url }}"{% unless forloop.last %},{% endunless %}
var lesson_
modul
es = [
{% for
modul
e in site.
modul
es %}
"{{
modul
e.url }}"{% unless forloop.last %},{% endunless %}
{% endfor %}
];
var xmlHttp = []; /* Required since we are going to query every episode. */
for (i=0; i < lesson_
episod
es.length; i++) {
for (i=0; i < lesson_
modul
es.length; i++) {
xmlHttp[i] = new XMLHttpRequest();
xmlHttp[i].
episod
e = lesson_
episod
es[i]; /* To enable use this later. */
xmlHttp[i].
modul
e = lesson_
modul
es[i]; /* To enable use this later. */
xmlHttp[i].onreadystatechange = function() {
if (this.readyState == 4 && this.status == 200) {
...
...
@@ -24,7 +25,7 @@ title: Figures
var htmlDoc = parser.parseFromString(this.responseText,"text/html");
var htmlDocArticle = htmlDoc.getElementsByTagName("article")[0];
var article_here = document.getElementById(this.
episod
e);
var article_here = document.getElementById(this.
modul
e);
var images = htmlDocArticle.getElementsByTagName("img");
if (images.length > 0) {
...
...
@@ -52,17 +53,17 @@ title: Figures
}
}
}
episod
e_url = "{{ relative_root_path }}" + lesson_
episod
es[i];
xmlHttp[i].open("GET",
episod
e_url);
modul
e_url = "{{ relative_root_path }}" + lesson_
modul
es[i];
xmlHttp[i].open("GET",
modul
e_url);
xmlHttp[i].send(null);
}
}
</script>
{% comment %}
Create anchor for each one of the
episod
es.
Create anchor for each one of the
modul
es.
{% endcomment %}
{% for
episod
e in site.
episod
es %}
<article
id=
"{{
episod
e.url }}"
class=
"figures"
></article>
{% for
modul
e in site.
modul
es %}
<article
id=
"{{
modul
e.url }}"
class=
"figures"
></article>
{% endfor %}
{% include links.md %}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment