-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathexample.html
More file actions
24 lines (24 loc) · 830 Bytes
/
example.html
File metadata and controls
24 lines (24 loc) · 830 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
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-type" content="text/html; charset=utf-8">
<title>Sketch</title>
<meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, user-scalable=no, width=device-width">
</head>
<body>
<style>body { background: #eee }</style>
<link rel="stylesheet" href="build/build.css" />
<canvas width=1000 height=600 style='border: 1px solid #eee; background: white'></canvas>
<script src="build/build.js"></script>
<script>
document.body.addEventListener('touchmove', function(e){
e.preventDefault();
});
var autoscale = require('autoscale-canvas');
var canvas = document.querySelector('canvas');
var sketch = require('sketch');
sketch(canvas);
autoscale(canvas);
</script>
</body>
</html>