35 lines
1.6 KiB
HTML
35 lines
1.6 KiB
HTML
<html>
|
|
<head>
|
|
<script type="text/javascript" src="scripts/pos.js"></script>
|
|
<script type="text/javascript" src="scripts/path_line.js"></script>
|
|
<script type="text/javascript" src="scripts/path_arc.js"></script>
|
|
<script type="text/javascript" src="scripts/path_bezier.js"></script>
|
|
<script type="text/javascript" src="scripts/path_close.js"></script>
|
|
<script type="text/javascript" src="scripts/dotgrid.js"></script>
|
|
<script type="text/javascript" src="scripts/keyboard.js"></script>
|
|
<script type="text/javascript" src="scripts/guide.js"></script>
|
|
<script type="text/javascript" src="scripts/render.js"></script>
|
|
<script type="text/javascript" src="scripts/theme.js"></script>
|
|
<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"/>
|
|
<title>Dotgrid(Icon)</title>
|
|
</head>
|
|
<body>
|
|
<script>
|
|
const {dialog,app} = require('electron').remote;
|
|
const fs = require('fs');
|
|
|
|
dotgrid = new Dotgrid(300,300,30,30,5,5, 10,"square","#000000");
|
|
dotgrid.install();
|
|
|
|
var keyboard = new Keyboard();
|
|
|
|
document.onkeydown = function myFunction(event){ keyboard.listen(event); };
|
|
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>
|
|
</body>
|
|
</html>
|