urlpages/index.html
2020-03-29 18:33:26 -04:00

17 lines
570 B
HTML

<!-- index.html: Referred to as the "main page" in documentation -->
<meta name="description" content="Create and view web pages stored entirely in the URL">
<noscript>JavaScript is required to convert the URL into a usable web page.</noscript>
<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 = atob(hash);
document.write(decodeURIComponent(data));
} else {
// Otherwise redirect to the editor
window.location.replace("./editor");
}
</script>