mirror of
https://github.com/squidfunk/mkdocs-material.git
synced 2024-06-14 11:52:32 +03:00
Fixed JavaScript errors on 404 page
This commit is contained in:
parent
5b1bbea2a3
commit
2ab6083ebe
3
material/assets/javascripts/application-ae2e7c9801.js
Normal file
3
material/assets/javascripts/application-ae2e7c9801.js
Normal file
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -150,7 +150,7 @@
|
|||||||
{% endblock %}
|
{% endblock %}
|
||||||
</div>
|
</div>
|
||||||
{% block scripts %}
|
{% block scripts %}
|
||||||
<script src="{{ base_url }}/assets/javascripts/application-c6f9af8d0c.js"></script>
|
<script src="{{ base_url }}/assets/javascripts/application-ae2e7c9801.js"></script>
|
||||||
<script>app.initialize({url:{base:"{{ base_url }}"}})</script>
|
<script>app.initialize({url:{base:"{{ base_url }}"}})</script>
|
||||||
{% for path in extra_javascript %}
|
{% for path in extra_javascript %}
|
||||||
<script src="{{ path }}"></script>
|
<script src="{{ path }}"></script>
|
||||||
|
@ -105,8 +105,8 @@ function initialize(config) { // eslint-disable-line func-style
|
|||||||
"[data-md-component=navigation]",
|
"[data-md-component=navigation]",
|
||||||
"[data-md-component=header]")))
|
"[data-md-component=header]")))
|
||||||
|
|
||||||
/* Component: sidebar with table of contents - register two separate
|
/* Component: sidebar with table of contents (missing on 404 page) */
|
||||||
listeners, as the offset at the top might change */
|
if (document.querySelector("[data-md-component=toc]"))
|
||||||
new Material.Event.MatchMedia("(min-width: 960px)",
|
new Material.Event.MatchMedia("(min-width: 960px)",
|
||||||
new Material.Event.Listener(window, [
|
new Material.Event.Listener(window, [
|
||||||
"scroll", "resize", "orientationchange"
|
"scroll", "resize", "orientationchange"
|
||||||
|
Loading…
Reference in New Issue
Block a user