Start runtime at DOMContentLoaded
This commit is contained in:
parent
cea9805dac
commit
4bbc113afc
2 changed files with 6 additions and 6 deletions
|
@ -8,8 +8,9 @@
|
|||
<!-- OpenGraph tags -->
|
||||
<meta property="og:title" content="How much does the entire The Sims 4 game cost right now?">
|
||||
<meta property="og:description" content="See how much the entirety of the game 'The Sims 4' costs right now if you were to purchase it with all DLCs!">
|
||||
<link rel="stylesheet" href="/style.css"/>
|
||||
<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon">
|
||||
<link rel="stylesheet" href="./style.css"/>
|
||||
<link rel="shortcut icon" href="./favicon.ico" type="image/x-icon">
|
||||
<script src="./script.js" async defer></script>
|
||||
</head>
|
||||
<body style="text-align: center">
|
||||
<div id="retrying" hidden>
|
||||
|
@ -21,16 +22,15 @@
|
|||
</div>
|
||||
<main>
|
||||
<h1>Currently <span id="name">The Sims 4</span> costs<span id="dlcs" hidden> (with all <span id="dlc-count"></span>DLCs)</span></h1>
|
||||
<h2 id="price">£1000.00</h2>
|
||||
<h2 id="price">loading <noscript>(not without JavaScript)</noscript></h2>
|
||||
|
||||
<div hidden id="comparison">
|
||||
<p>That's equivalent to...</p>
|
||||
<p><i>Note: Prices may not be accurate. See script.js for more details.</i></p>
|
||||
<p><i>Note: Prices may not be accurate. See <a href="script.js" target="_blank">script.js</a> for more details.</i></p>
|
||||
<ul></ul>
|
||||
</div>
|
||||
</main>
|
||||
<noscript><p>(You need to enable JavaScript to load this)</p></noscript>
|
||||
<script src="./script.js"></script>
|
||||
<footer>
|
||||
<p>This site was made by <a href="https://nexy7574.co.uk/" target="_blank">@nex</a></p>
|
||||
<p>Source is available at <a href="https://git.i-am.nexus/nex/howmuchdoesthesims4cost.lol" target="_blank">git.i-am.nexus</a></p>
|
||||
|
|
|
@ -185,4 +185,4 @@ async function main() {
|
|||
};
|
||||
}
|
||||
|
||||
main();
|
||||
document.addEventListener("DOMContentLoaded", main);
|
||||
|
|
Loading…
Reference in a new issue