mirror of
https://github.com/jstrieb/urlpages.git
synced 2024-12-22 13:52:15 +01:00
60a3aa13d4
Button bar added to bottom right with styling for buttons. Index added that writes decoded HTML to the DOM to render a page from a link. Button added to base64 encode a page and create and open a link to view it in a new tab
10 lines
320 B
HTML
10 lines
320 B
HTML
<noscript>JavaScript is required to convert the URL into a usable web page.</noscript>
|
|
<script type="text/javascript">
|
|
if (window.location.hash) {
|
|
var hash = window.location.hash.slice(1);
|
|
var data = atob(hash);
|
|
document.write(decodeURIComponent(data));
|
|
} else {
|
|
window.location.replace("./editor");
|
|
}
|
|
</script>
|