Skip to content

Commit 7f73f74

Browse files
committed
ores/auto-commit => 'set'
1 parent d62e5f9 commit 7f73f74

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

index.html

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,14 +25,16 @@
2525

2626
asyncc.latestVersion = 'v/0.1.0';
2727

28+
asyncc.root = "https://async-java.github.io/";
29+
2830
asyncc.changeIframe = (versionPath) => {
2931
let iframe = document.getElementsByClassName("main-iframe");
3032
if(!iframe){
3133
return alert('Could not find iframe on page.');
3234
}
3335

3436
console.log('src:', versionPath);
35-
iframe.src = versionPath;
37+
iframe.src = asyncc.root + versionPath;
3638

3739
console.log({iframe});
3840
// iframe.replaceWith(iframe);
@@ -41,6 +43,7 @@
4143
};
4244

4345

46+
4447
</script>
4548

4649
<div class="flex-container">
@@ -53,6 +56,10 @@
5356
</div>
5457
</div>
5558
<div style="display: flex; flex-grow: 1">
56-
<iframe id="main-iframe" src="v/0.1.2" width="100%" height="100%"></iframe>
59+
<iframe id="main-iframe" width="100%" height="100%"></iframe>
5760
</div>
58-
</div>
61+
</div>
62+
63+
<script>
64+
asyncc.changeIframe('v/0.1.2');
65+
</script>

0 commit comments

Comments
 (0)