-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
65 lines (56 loc) · 2.63 KB
/
index.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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
<!doctype html>
<html class="no-js" lang="">
<head>
<meta charset="utf-8">
<meta http-equiv="x-ua-compatible" content="ie=edge">
<title></title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="manifest" href="site.webmanifest">
<link rel="apple-touch-icon" href="icon.png">
<!-- Place favicon.ico in the root directory -->
<link rel="stylesheet" href="css/main.css">
</head>
<body>
<!--[if lte IE 9]>
<p class="browserupgrade">You are using an <strong>outdated</strong> browser. Please <a href="https://browsehappy.com/">upgrade your browser</a> to improve your experience and security.</p>
<![endif]-->
<!-- Add your site or application content here -->
<img src="StickerBomber.png">
<br>
<H4>Set your Seed Rate and Bomb it!</H4>
<label for="canvasWidth">Canvas Width:</label>
<input id="canvasWidth" type="text" placeholder="1920">
<label for="canvasHeight">Canvas Height:</label>
<input id="canvasHeight" type="text" placeholder="1080">
<button onclick="setCanvasSize()">Set Size</button><br>
Seed:
<input id="number" type="range" min="0" max="255" step="1" value="10"/>
<button onclick="exec()">Bomb!</button>
<br><br>
<br><br>
<canvas id="c_1" width="1920" height="1080"></canvas>
<script src="js/vendor/modernizr-3.5.0.min.js"></script>
<script src="https://code.jquery.com/jquery-3.2.1.min.js" integrity="sha256-hwg4gsxgFZhOsEEamdOYGBf13FyQuiTwlAQgxVSNgt4=" crossorigin="anonymous"></script>
<script>window.jQuery || document.write('<script src="js/vendor/jquery-3.2.1.min.js"><\/script>')</script>
<script src="js/plugins.js"></script>
<script src="js/main.js"></script>
<script>
function setCanvasSize() {
var width = document.getElementById('canvasWidth').value;
var height = document.getElementById('canvasHeight').value;
var canvas = document.getElementById('c_1');
canvas.width = width;
canvas.height = height;
}
</script>
<!-- Google Analytics: change UA-XXXXX-Y to be your site's ID. -->
<!--
<script>
window.ga=function(){ga.q.push(arguments)};ga.q=[];ga.l=+new Date;
ga('create','UA-XXXXX-Y','auto');ga('send','pageview')
</script>
<script src="https://www.google-analytics.com/analytics.js" async defer></script>
-->
</body>
</html>