-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
115 lines (81 loc) · 4.8 KB
/
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>Daisy: A Block-Based Environment for Learning Data Modeling</title>
<link rel="stylesheet" href="styles/index.css" />
</head>
<body>
<header>
<h1>Daisy</h1>
</header>
<main>
<div class="problem-desc">
<!-- problem description -->
<p>Problem: </p>
<textarea type="text" id="fillbox" placeholder="Insert the problem description." class="fillbox"></textarea>
<!-- button -->
<button id="show" style="position: absolute; top: 10px; left: 320px;" onclick="showProblem()">Show / Reset</button>
<button id="add" style="position: absolute; top: 50px; left: 320px;" onclick="selector()">Add Keyword</button>
<!-- dropdown for deleting keyword -->
<select id="delete" style="position: absolute; top: 70px; left: 320px;">
<option value="">Delete Keyword</option>
</select>
</div>
<div class="info-mining" id="info-mining">
<!-- <div id="selector" style="background-color: #EEEEEE; flex-wrap: wrap;"></div> -->
</div>
<!-- <div class="progress" id="progress">
<p id="prog-infomining" style="left: 100px;">Information Mining</p>
<p id="prog-datarep" style="left: 400px;">Data Representation</p>
<p id="prog-dataex" style="left: 700px;">Data Example</p>
<button id="next" style="position: absolute; top: 15px; left: 1200px;" onclick="next()">Next</button>
<button id="showCode" style="position: absolute; top: 15px; left: 1050px;" onclick="showCode()">Show Text Code</button>
</div> -->
<div class="blockly-editor" id="blockly-editor">
<xml id="toolbox" style="display: none">
<category name="Information Mining" toolboxitemid="step1a" id="step1a" expanded="true">
<label text="Information Mining" web-class="myLabelStyle"></label>
<button text="README" callbackKey="readme1a"></button>
<!-- <block type="Statement"></block> -->
<!-- <button text="Add" callbackKey="addKeyword"></button> -->
<!-- <button text="Delete" callbackKey="deleteKeyword"></button> -->
<label text="Keywords"></label>
</category>
<category name="Data Representation" id="step1b" expanded="true">
<label text="Data Representation" web-class="myLabelStyle"></label>
<button text="README" callbackKey="readme1b"></button>
<sep gap="10"></sep>
<label text="Data Definition"></label>
<block type="data_definition"></block>
<label text="Constructor (with argument)"></label>
<block type="cons_withArg"></block>
<label text="Constructor (without argument)"></label>
<block type="cons_noArg"></block>
<label text="Argument"></label>
<block type="argument"></block>
<label text="Keyword"></label>
</category>
<category name="Data Example" id="step1c" expanded="true">
<button text="README" callbackKey="readme1c"></button>
</category>
<!-- <category name="Data Representation" id="step1b" hidden="true"></category>
<category name="Data Example" id="step1c" hidden="true"></category> -->
</xml>
</div>
<!-- <div class="text-editor" id="text-editor"> -->
<!-- </div> -->
<!-- <div class="feedback" id="feedback"></div> -->
<!-- for text editor -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/ace/1.9.6/ace.js"></script>
<script src="https://unpkg.com/blockly/blockly.min.js"></script>
<!-- <script src="https://unpkg.com/blockly/blockly_compressed.js"></script>
<script src="https://unpkg.com/blockly/blocks_compressed.js"></script>
<script src="https://unpkg.com/blockly/javascript_compressed.js"></script>
<script src="https://unpkg.com/blockly/msg/en.js"></script> -->
<script src="block/step1a.js"></script>
<script src="block/step1b.js"></script>
<script src="main.js"></script>
</main>
</body>
</html>