pointvec/template.icon.html

32 lines
1.1 KiB
HTML
Raw Normal View History

2016-12-31 10:00:57 -05:00
<html>
<head>
<script type="text/javascript" src="scripts/dotgrid.js"></script>
2016-12-31 12:37:10 -05:00
<script type="text/javascript" src="scripts/keyboard.js"></script>
2016-12-31 10:00:57 -05:00
<link rel="stylesheet" type="text/css" href="links/reset.css"/>
<link rel="stylesheet" type="text/css" href="links/fonts.css"/>
<link rel="stylesheet" type="text/css" href="links/main.css"/>
2017-01-04 12:51:45 -05:00
<title>Dotgrid(Icon)</title>
2016-12-31 10:00:57 -05:00
</head>
<body>
2016-12-31 13:16:00 -05:00
<pre>
2016-12-31 15:55:35 -05:00
q <b>CLEAR</b>
w <b>DELETE LAST</b>
e <b>EXPORT</b>
aA <b>CLOCKWISE</b>
sS <b>COUNTERWISE</b>
2016-12-31 13:16:00 -05:00
d <b>LINE</b>
</pre>
2017-01-04 12:48:08 -05:00
<script>
dotgrid = new Dotgrid(300,300,31,31,5,5, 10,"square","#000000");
dotgrid.install();
var keyboard = new Keyboard();
2017-01-07 10:58:45 -05:00
document.onkeyup = function myFunction(event){ keyboard.listen(event); };
2017-01-04 12:48:08 -05:00
document.addEventListener('mousedown', function(e){ dotgrid.mouse_down(e); }, false);
document.addEventListener('mousemove', function(e){ dotgrid.mouse_move(e); }, false);
document.addEventListener('mouseup', function(e){ dotgrid.mouse_up(e);}, false);
</script>
2016-12-31 10:00:57 -05:00
</body>
</html>