Skip to content

Commit

Permalink
Update index.html
Browse files Browse the repository at this point in the history
fixed issue, loading script auto at bottom of html
  • Loading branch information
Zzza38 authored Feb 2, 2024
1 parent 4437642 commit 94678ed
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -53,14 +53,14 @@
<div><a href="https://orteil42.tumblr.com" target="_blank" id="topbarTumblr">tumblr</a></div>
<button onclick="myFunction()">Click me</button>
<script type="text/javascript">
// function myFunction() {

// var script = document.createElement("script");
// script.type = 'text/javascript';
// script.src = 'mod.js';
// document.getElementsByTagName("head")[0].appendChild(script);
// return false;
// }
function myFunction() {

var script = document.createElement("script");
script.type = 'text/javascript';
script.src = 'mod.js';
document.getElementsByTagName("head")[0].appendChild(script);
return false;
}
</script>
<div style="position:relative;"><div style="width:22px;height:32px;background:url(img/discord.png);position:absolute;left:0px;top:0px;pointer-events:none;"></div><a href="https://discordapp.com/invite/cookie" target="_blank" style="padding-left:16px;" id="topbarDiscord">Discord</a></div>
<div style="position:relative;"><div style="width:25px;height:32px;background:url(img/weeHoodie.png);position:absolute;left:-2px;top:0px;pointer-events:none;"></div><a class="blueLink" href="http://www.redbubble.com/people/dashnet" target="_blank" style="padding-left:12px;" id="topbarMerch">Merch!</a></div>
Expand Down Expand Up @@ -245,7 +245,7 @@
<div id="preloadImages" style="display:none;"></div>

</div>
<script src="mod.js"></script>

</div>

</body>
Expand Down

0 comments on commit 94678ed

Please sign in to comment.