Skip to content

Commit 0685cd5

Browse files
author
Patrick Schmid
committed
move <script>...</script> into the <body>...</body> tag
1 parent da27aee commit 0685cd5

File tree

1 file changed

+21
-20
lines changed

1 file changed

+21
-20
lines changed

views/documentation.tt

Lines changed: 21 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -16,26 +16,27 @@
1616
<% INCLUDE header.tt %>
1717
<% INCLUDE navbar.tt %>
1818
<div id="content" class="documentation"></div>
19-
</body>
20-
</html>
21-
<script>
22-
$(window).load(function() {
2319

24-
updateTime();
20+
<script>
21+
$(window).load(function() {
22+
23+
updateTime();
2524

26-
});
25+
});
2726

28-
marked.setOptions({
29-
highlight: function(code, lang) {
30-
var highlighted;
31-
try {
32-
highlighted = hljs.highlight(lang, code);
33-
} catch(err) {
34-
highlighted = hljs.highlightAuto(code);
35-
}
36-
return highlighted.value;
37-
}
38-
});
39-
document.getElementById('content').innerHTML =
40-
marked('<% content %>');
41-
</script>
27+
marked.setOptions({
28+
highlight: function(code, lang) {
29+
var highlighted;
30+
try {
31+
highlighted = hljs.highlight(lang, code);
32+
} catch(err) {
33+
highlighted = hljs.highlightAuto(code);
34+
}
35+
return highlighted.value;
36+
}
37+
});
38+
document.getElementById('content').innerHTML =
39+
marked('<% content %>');
40+
</script>
41+
</body>
42+
</html>

0 commit comments

Comments
 (0)