Preselect Set

This commit is contained in:
Florian Baumann 2023-02-26 17:31:53 +01:00
parent 5f9a6161b1
commit 6be5cf5038

View File

@ -9,6 +9,8 @@
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bulma@0.9.4/css/bulma.min.css">
</head>
<body>
<!-- Site Title -->
@ -115,4 +117,16 @@
</body>
<!-- Select set from last search -->
<script>
function getParam(paramName) {
return decodeURI(
(RegExp(paramName + '=' + '(.+?)(&|$)').exec(location.search) || [, null])[1]
);
}
var selectedVal = getParam("set");
document.getElementById("set").value = selectedVal;
</script>
</html>