-
Notifications
You must be signed in to change notification settings - Fork 3
/
main.html
34 lines (29 loc) · 1.4 KB
/
main.html
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
<html>
<head prefix="og: http://ogp.me/ns#">
<title>ALife Core</title>
<meta property="og:title" content="ALife Core" />
<meta property="og:description" content="" />
<meta property="og:type" content="article" />
<meta property="og:image" content="" />
<meta property="og:url" content="https://mitsuyoshi-yamazaki.github.io/ALifeGameJam2019/pages/main.html" />
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-154586552-1"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag() { dataLayer.push(arguments); }
gtag('js', new Date());
gtag('config', 'UA-154586552-1');
</script>
<script src="../processing.js"></script>
<script src="../processingjs/screenshot.js"></script>
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css"
integrity="sha384-Vkoo8x4CGsO3+Hhxv8T/Q5PaXtkKtu6ug5TOeNV6gBiFeWPGFN9MuhOf23Q9Ifjh" crossorigin="anonymous">
<meta http-equiv="content-type" charset="utf-8">
</head>
<body onload="setupScreenshotLink()">
<canvas id="canvas" data-processing-sources="../processingjs/main.pde ../processingjs/default.pde"></canvas>
<br>
<button type="button" class="btn btn-primary active" onclick="saveScreenshot();">Save Screenshot</button>
<a id="link"></a> <!-- used for saving screenshots automatically -->
</body>
</html>