urlpages/index.html

16 lines
480 B
HTML
Raw Normal View History

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