summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--examples/website/layout1.conf4
-rw-r--r--examples/website/layout2.conf4
-rw-r--r--html5.conf2
-rw-r--r--xhtml11.conf2
4 files changed, 6 insertions, 6 deletions
diff --git a/examples/website/layout1.conf b/examples/website/layout1.conf
index 369f34d..5d8c066 100644
--- a/examples/website/layout1.conf
+++ b/examples/website/layout1.conf
@@ -46,12 +46,12 @@ ifdef::quirks[]
<link rel="stylesheet" href="{stylesdir=.}/{theme={backend}}-quirks.css" type="text/css" />
endif::quirks[]
<link rel="stylesheet" href="{stylesdir=.}/layout1.css" type="text/css" />
+<script type="text/javascript" src="{scriptsdir=.}/asciidoc-xhtml11.js"></script>
<script type="text/javascript">
/*<![CDATA[*/
-window.onload = function()\{asciidoc.footnotes();{toc? asciidoc.toc({toclevels});}\}
+asciidoc.install({toc?{toclevels}});
/*]]>*/
</script>
-<script type="text/javascript" src="{scriptsdir=.}/asciidoc-xhtml11.js"></script>
ifdef::asciimath[]
<script type="text/javascript" src="{scriptsdir=.}/ASCIIMathML.js"></script>
endif::asciimath[]
diff --git a/examples/website/layout2.conf b/examples/website/layout2.conf
index 9212f95..b1b04d4 100644
--- a/examples/website/layout2.conf
+++ b/examples/website/layout2.conf
@@ -44,12 +44,12 @@ ifdef::quirks[]
endif::quirks[]
<link rel="stylesheet" href="{stylesdir=.}/layout2.css" type="text/css" />
ifdef::toc[]
+<script type="text/javascript" src="{scriptsdir=.}/asciidoc-xhtml11.js"></script>
<script type="text/javascript">
/*<![CDATA[*/
-window.onload = function()\{generateToc({toclevels=2})\}
+asciidoc.install({toc?{toclevels}});
/*]]>*/
</script>
-<script type="text/javascript" src="{scriptsdir=.}/toc.js"></script>
endif::toc[]
ifdef::asciimath[]
<script type="text/javascript" src="{scriptsdir=.}/ASCIIMathML.js"></script>
diff --git a/html5.conf b/html5.conf
index 3ebabb4..3a79edf 100644
--- a/html5.conf
+++ b/html5.conf
@@ -540,6 +540,7 @@ endif::pygments[]
endif::linkcss[]
ifndef::disable-javascript[]
ifdef::linkcss[]
+<script type="text/javascript" src="{scriptsdir=.}/asciidoc-xhtml11.js"></script>
<script type="text/javascript">
#TODO: Escape not necessary in HTML5?
# Escape as CDATA to pass validators.
@@ -547,7 +548,6 @@ ifdef::linkcss[]
asciidoc.install({toc?{toclevels}});
/*]]>*/
</script>
-<script type="text/javascript" src="{scriptsdir=.}/asciidoc-xhtml11.js"></script>
endif::linkcss[]
ifndef::linkcss[]
<script type="text/javascript">
diff --git a/xhtml11.conf b/xhtml11.conf
index 3c9c6aa..61c23cc 100644
--- a/xhtml11.conf
+++ b/xhtml11.conf
@@ -555,13 +555,13 @@ endif::pygments[]
endif::linkcss[]
ifndef::disable-javascript[]
ifdef::linkcss[]
+<script type="text/javascript" src="{scriptsdir=.}/asciidoc-xhtml11.js"></script>
<script type="text/javascript">
# Escape as CDATA to pass validators.
/*<![CDATA[*/
asciidoc.install({toc?{toclevels}});
/*]]>*/
</script>
-<script type="text/javascript" src="{scriptsdir=.}/asciidoc-xhtml11.js"></script>
endif::linkcss[]
ifndef::linkcss[]
<script type="text/javascript">