diff --git a/.docs/scripts/extra.js b/.docs/scripts/extra.js new file mode 100644 index 0000000000000000000000000000000000000000..4768615e22f22fc7f895cfee742ed9c848347b89 --- /dev/null +++ b/.docs/scripts/extra.js @@ -0,0 +1,13 @@ +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