-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdataURL.html
More file actions
16 lines (16 loc) · 775 Bytes
/
Copy pathdataURL.html
File metadata and controls
16 lines (16 loc) · 775 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
data:text/html,
<!-- If you wish to use scripts, you must load them using javascript, inline src javascript will be blocked by some browsers. -->
<script>
fetch("https://cdn.jsdelivr.net/gh/FancyBoiL1/Hostless-Website@master/example/main.html")
.then((res) => res.text())
.then((html) => {
document.getElementById("examplecontainer").innerHTML = html;
/* Always load page first ^ */
const scr = document.createElement('script');
scr.src = 'https://cdn.jsdelivr.net/gh/FancyBoiL1/Hostless-Website@master/example/main.js';
document.getElementsByTagName("head")[0].appendChild(scr);
/* Then load any necessary scripts.*/
});
</script>
<!-- This is the url that is loaded using the loader -->
<div id='examplecontainer'></div>