Skip to content
Snippets Groups Projects
Verified Commit 6a9e5839 authored by Martin Weise's avatar Martin Weise
Browse files

Need extra JS defined

parent d0cf2d2d
No related branches found
No related tags found
No related merge requests found
...@@ -2,21 +2,6 @@ ...@@ -2,21 +2,6 @@
{% block announce %} {% block announce %}
<label for="version">Version</label> <label for="version">Version</label>
<script type="javascript">
function getVersion() {
const segments = location.pathname.split('/');
if (segments.length >= 4) {
return segments[3];
} else {
return '__APPVERSION__';
}
}
function switchVersion(value) {
if (!value) { return }
this.location.href = location.protocol + '//' + location.host + '/infrastructures/dbrepo/' + value + '/';
}
document.getElementById("version").value = getVersion();
</script>
<select style="margin-left:8px;" id="version" name="version" onchange="switchVersion(this.options[this.selectedIndex].value)"> <select style="margin-left:8px;" id="version" name="version" onchange="switchVersion(this.options[this.selectedIndex].value)">
<option value="latest">latest</option> <option value="latest">latest</option>
<option value="1.4.1">1.4.1</option> <option value="1.4.1">1.4.1</option>
......
function getVersion() {
const segments = location.pathname.split('/');
if (segments.length >= 4) {
return segments[3];
} else {
return '__APPVERSION__';
}
}
function switchVersion(value) {
if (!value) { return }
this.location.href = location.protocol + '//' + location.host + '/infrastructures/dbrepo/' + value + '/';
}
document.getElementById("version").value = getVersion();
\ No newline at end of file
...@@ -43,6 +43,8 @@ nav: ...@@ -43,6 +43,8 @@ nav:
- contact.md - contact.md
extra_css: extra_css:
- stylesheets/extra.css - stylesheets/extra.css
extra_javascript:
- scripts/extra.js
theme: theme:
favicon: images/signet_white.png favicon: images/signet_white.png
custom_dir: .docs/overrides custom_dir: .docs/overrides
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment