-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
35 lines (33 loc) · 888 Bytes
/
index.html
File metadata and controls
35 lines (33 loc) · 888 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
<!DOCTYPE HTML>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Cool game</title>
<style type="text/css">
body {
margin: 0;
}
canvas {
border: 1px solid black;
}
div {
height: 0;
width: 0;
}
</style>
</head>
<body id="game">
<canvas>your browser does not support HTML5 canvas</canvas>
<!-- <script src="script.js"></script> -->
<!-- <script>
function dynamicallyLoadScript(url) {
var script = document.createElement("script"); // Make a script DOM node
script.src = url; // Set it's src to the provided URL
script.type = 'text/javascript';
document.body.appendChild(script); // Add it to the end of the head section of the page (could change 'head' to 'body' to add it to the end of the body section instead)
}
dynamicallyLoadScript('script.js');
</script> -->
<script src="script.js"></script>
</body>
</html>