Skip to content

Commit

Permalink
Preselect Set
Browse files Browse the repository at this point in the history
  • Loading branch information
noqqe committed Feb 26, 2023
1 parent 5f9a616 commit 6be5cf5
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions templates/index.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -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 -->
Expand Down Expand Up @@ -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>

0 comments on commit 6be5cf5

Please sign in to comment.