Skip to content
Snippets Groups Projects
Select Git revision
  • 87b8695b316940bc8bf40f20eb816f1ff7e9db37
  • master default protected
  • dev-lkugler
  • teaching-2024
  • old_config_2023-05 protected
  • v2025.2
  • v2024.6
  • v2024.2.20
8 results

run_obs_diag.py

Blame
  • extra.js 575 B
    function getVersion() {
        const segments = location.pathname.split('/');
        if (segments.length > 4 && (segments[3].match(/[0-9]\.[0-9]\.[0-9]/g) || segments[3] == 'latest')) {
            console.debug('version', segments[3]);
            return segments[3];
        }
        console.debug('default version', '__APPVERSION__');
        return '__APPVERSION__';
    }
    function switchVersion(value) {
        if (!value) { return }
        this.location.href = location.protocol + '//' + location.host + '/infrastructures/dbrepo/' + value + '/';
    }
    document.getElementById("version").value = getVersion();