Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/moin/themes/focus/static/js/main.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
window.onload = function () {
"use strict";
const headers = []
const h1 = document.querySelectorAll("#moin-content-data h1")
const h2 = document.querySelectorAll("#moin-content-data h2")
Expand Down
6 changes: 5 additions & 1 deletion src/moin/themes/focus/templates/layout.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
{% set credits = snippets.credits() %}

{% block layout %}
<script src="/_themes/focus/js/main.js"></script>
<div id="moin-main-wrapper">
{{ before_header }}
<header id="moin-header" lang="{{ theme_supp.user_lang }}" dir="{{ theme_supp.user_dir }}">
Expand Down Expand Up @@ -183,3 +182,8 @@

</div>
{% endblock %}

{% block body_scripts %}
{{ super() }}
<script src="/_themes/focus/js/main.js"></script>
{% endblock %}