Skip to content

Commit

Permalink
refactor: make noJs thing global
Browse files Browse the repository at this point in the history
  • Loading branch information
he3als committed Jul 21, 2024
1 parent 231cde1 commit 958bf0b
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 11 deletions.
5 changes: 0 additions & 5 deletions docs/getting-started/installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -86,11 +86,6 @@ See the alternatives below.
:simple-github: **Downloader based upon:** [Microsoft Software Download Listing](https://github.com/gravesoft/msdl)
</center>

<script>
var styleSheet = document.createElement("style")
styleSheet.innerText = '.noJs { display: revert !important }'
document.head.appendChild(styleSheet)
</script>
<!-- --8<-- [end:iso1] -->

<!-- --8<-- [start:drivers] -->
Expand Down
1 change: 1 addition & 0 deletions mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,7 @@ theme:
extra_javascript:
- javascript/msdl.v1.js
- javascript/init_kapa_widget.v2.js
- javascript/misc.v1.js


extra_css:
Expand Down
6 changes: 0 additions & 6 deletions overrides/404.html
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,4 @@ <h1>
</a>
</div>

<script>
var styleSheet = document.createElement("style")
styleSheet.innerText = '.noJs { display: revert !important }'
document.head.appendChild(styleSheet)
</script>

{% endblock %}
6 changes: 6 additions & 0 deletions overrides/main.html
Original file line number Diff line number Diff line change
@@ -1 +1,7 @@
{% extends "base.html" %}

<script>
var styleSheet = document.createElement("style")
styleSheet.innerText = '.noJs { visibility: unset !important }'
document.head.appendChild(styleSheet)
</script>

0 comments on commit 958bf0b

Please sign in to comment.