-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtemplate.html
More file actions
47 lines (39 loc) · 1.32 KB
/
template.html
File metadata and controls
47 lines (39 loc) · 1.32 KB
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
36
37
38
39
40
41
42
43
44
45
46
47
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Ray Tracer</title>
<meta name="description" content="Interactive ray tracing engine">
<meta name="author" content="Juan Torrente">
<meta property="og:site_name" content="Ray Tracer" />
<link rel="image_src" href="/image_definitiva.png" />
<meta name="title" property="og:title" content="Ray Tracer" />
<meta name="image" property="og:image" content="/image_definitiva.png"/>
<meta property="og:image:type" content="image/png">
<style type="text/css">
body {
margin: 0;
padding: 0;
overflow: hidden;
background-color: gray;
display: flex;
justify-content: center;
align-items: center;
min-height: 100vh;
height: 100vh;
}
</style>
</head>
<body>
<!-- Create the canvas that the C++ code will draw into -->
<canvas id="canvas" oncontextmenu="event.preventDefault()"></canvas>
<!-- Allow the C++ to access the canvas element -->
<script type='text/javascript'>
var Module = {
canvas: (function() { return document.getElementById('canvas'); })()
};
</script>
{{{ SCRIPT }}}
</body>
</html>