quatalog-site/coursedisplay.html

23 lines
449 B
HTML
Raw Normal View History

<html>
<head>
<script>
const params = window
.location
.search
.slice(1)
.split("&")
.map(p => p.split("="))
.reduce((obj,[key,value]) =>
({ ...obj, [key]: decodeURIComponent(value) }),
{}
);
2023-02-17 01:45:30 +00:00
const course = params["course"];
if(course != undefined) {
window.location.replace("courses/"+(params["course"]));
} else {
window.location.replace(".");
}
</script>
</head>
</html>