node-geogebra
Version:
Generate graphics with geogebra from nodejs
24 lines (19 loc) • 631 B
HTML
<html>
<head>
</head>
<body>
<script>
function getURLParameter(name) {
return decodeURIComponent((new RegExp('[?|&]' + name + '=' + '([^&;]+?)(&|#|;|$)').exec(location.search)||[,""])[1].replace(/\+/g, '%20'))||null
}
//alert(getURLParameter("redirect") + "&url=" + getURLParameter("callback"));
var redirectTo = getURLParameter("redirect"),
separator = "?";
if (redirectTo && redirectTo.indexOf("?") > -1) {
separator = "&";
}
window.location.href = redirectTo + separator + "url=" + getURLParameter("callback");
</script>
</body>
</html>