-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
34 lines (26 loc) · 968 Bytes
/
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
<html>
<head>
<link href="static/main.css" rel="stylesheet" type="text/css">
<script src='static/main.js'></script>
<script src="js/craft.js"></script>
</head>
<body>
<div id="columns">
<div class="column" draggable="true"><header>Tracker</header></div>
<div class="column" draggable="true"><header>E-Cal</header></div>
<div class="column" draggable="true"><header>H-Cal</header></div>
<div class='detector', id='detStack'></div>
</div>
<script>
var cols, dragSrcEl, detStack;
cols = document.querySelectorAll('#columns .column');
[].forEach.call(cols, function(col) {
col.addEventListener('dragstart', paletteDragStart, false);
});
detStack = document.getElementById('detStack');
detStack.addEventListener('dragover', handleDragOver, false);
detStack.addEventListener('drop', handleDetDrop, false);
dragSrcEl = null;
</script>
</body>
</html>