-
Notifications
You must be signed in to change notification settings - Fork 2
/
example.html
48 lines (47 loc) · 1.54 KB
/
example.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Title</title>
<link href="src/css/workflow.css" rel="stylesheet" type='text/css'>
<link href="example/css/example.css" rel="stylesheet" type='text/css'/>
</head>
<body>
<div id="tools"><h3>Tools & Data</h3>
<div>
<div class="data timeseries" draggable="true" id="id123" ondragstart="dragstart_handler(event);"
style="cursor:move;">
dataset<br></div>
<div class="tool" draggable="true" id="id234" ondragstart="dragstart_handler(event);"
style="cursor:move;">
tool<br></div>
</div>
</div>
<div id="dropdiv" ondragover="dragover_handler(event)" ondrop="drop_handler(event)"
title="Drag & Drop your Data and Tools here">
Dropzone
</div>
</body>
</html>
<script src="src/js/jquery-3.5.1.js" type='text/javascript'></script>
<script src="src/js/jquery-ui.js" type='text/javascript'></script>
<script src="src/js/draw2d.js" type='text/javascript'></script>
<script src="src/js/workflow.js" type='text/javascript'></script>
<script src="example/js/example.js" type='text/javascript'></script>
<!--define an example dataset and tool in the sessionStorage: -->
<script>
sessionStorage.setItem('id123', JSON.stringify({
orgid: '324',
type: 'data',
name: 'dataset',
inputs: [],
outputs: ['timeseries']
}))
sessionStorage.setItem('id234', JSON.stringify({
orgid: '324',
type: 'tool',
name: 'tool',
inputs: ['timeseries', 'string', 'string', 'boolean', 'boolean'],
outputs: ['timeseries', 'string']
}))
</script>