urlpages/index.html
Jacob Strieb a1f91dfe26 Use custom base64 library
Support unicode better by using custom base64 library for encoding and
decoding.
2020-05-14 21:13:12 -04:00

16 lines
540 B
HTML

<!-- index.html: Referred to as the "main page" in documentation -->
<noscript>JavaScript is required to convert the URL into a usable web page.</noscript>
<script type="text/javascript" src="b64.js"></script>
<script type="text/javascript">
if (window.location.hash) {
// Try to get page data from the URL if possible
var hash = window.location.hash.slice(1);
var data = b64.decode(hash);
document.write(decodeURIComponent(data));
} else {
// Otherwise redirect to the editor
window.location.replace("./editor");
}
</script>