One Hat Cyber Team
Your IP :
216.73.216.115
Server IP :
194.44.31.54
Server :
Linux zen.imath.kiev.ua 4.18.0-553.77.1.el8_10.x86_64 #1 SMP Fri Oct 3 14:30:23 UTC 2025 x86_64
Server Software :
Apache/2.4.37 (Rocky Linux) OpenSSL/1.1.1k
PHP Version :
5.6.40
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
usr
/
share
/
Macaulay2
/
Style
/
Edit File:
version-select.js
if (window.location.protocol != "file:") { fetch("../../../../../../versions.json") .then((response) => response.json()) .then((versions) => { const select = document.createElement("select"); select.setAttribute("id", "version-select"); select.setAttribute("onChange", "switch_version()"); Object.keys(versions).forEach((version) => { const option = document.createElement("option"); option.value = versions[version]; option.innerHTML = version; select.appendChild(option); }); select.value = current_version; const span = document.getElementById("version-select-container"); span.appendChild(select); }); } function switch_version() { const new_version = document.getElementById("version-select").value; const re = new RegExp("/Macaulay2(-".concat(current_version, ")?/")); window.location.href = window.location.href.replace( re, "/Macaulay2-".concat(new_version, "/")); }
Simpan