42 lines
1.4 KiB
HTML

<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>ATM</title>
<!-- <link rel="stylesheet" href="atm.css"> -->
<!--
Dynamic Resource Loading
The following script loads CSS and JavaScript files dynamically using the A3API
This approach is used instead of static HTML imports to work with Arma 3's file system
-->
<script>
Promise.all([
A3API.RequestFile("forge\\forge_client\\addons\\bank\\ui\\_site\\atm.css"),
A3API.RequestFile("forge\\forge_client\\addons\\bank\\ui\\_site\\store.js"),
A3API.RequestFile("forge\\forge_client\\addons\\bank\\ui\\_site\\atm.js"),
]).then(([css, storeJs, atmJs]) => {
const style = document.createElement("style");
style.textContent = css;
document.head.appendChild(style);
const store = document.createElement("script");
store.text = storeJs;
document.head.appendChild(store);
const atm = document.createElement("script");
atm.text = atmJs;
document.head.appendChild(atm);
});
</script>
</head>
<body>
<div id="app"></div>
<!-- <script src="store.js"></script> -->
<!-- <script src="atm.js"></script> -->
</body>
</html>