-
Notifications
You must be signed in to change notification settings - Fork 0
/
user_test_task_2.html
216 lines (212 loc) · 9.03 KB
/
user_test_task_2.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
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="teststyle.css">
<script src="https://aframe.io/releases/1.2.0/aframe.min.js"></script>
<script src="https://unpkg.com/[email protected]/dist/aframe-event-set-component.min.js"></script>
<script src="https://unpkg.com/[email protected]/dist/aframe-environment-component.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/js-beautify/1.14.0/beautify-html.min.js" integrity="sha512-RPSoY+8b4qjG6CEAMt6kvXPDPBylWT6OlRNwZR4sUPS2OOg386pYO00BcjF8pQq1saVLIoZ/j7bSm3/vvDOa5A==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
<script src="https://kit.fontawesome.com/4ecba2d986.js" crossorigin="anonymous"></script>
<title>V-Frame: User Test Task 2</title>
</head>
<body>
<header>
<div id="site-name">V-Frame</div>
<input id="myfile" hidden type="file" accept=".txt,.xml">
<div id="site-icons"><i class="fas fa-folder-open" id="load" value="Choose Files!" onclick="document.getElementById('myfile').click();"></i><i class="fas fa-save" id="save"></i></div>
</header>
<nav class="tab">
<button class="tablinks active" onclick="setCategories(event, 'componentToolbox')">Components</button>
<button class="tablinks" onclick="setCategories(event, 'primitiveToolbox')">Primitives</button>
</nav>
<div id="container">
<div id="blocklyArea"></div>
<div id="frameSite">
<div>
<nav class="tab">
<button class="tablinks active" >Your Code's Output</button>
</nav>
</div>
<div id="output">
<a-scene embedded>
<a-entity id="rig" position="0 1.6 3">
<a-entity id="camera" camera look-controls wasd-controls></a-entity>
</a-entity>
<a-entity id="scene">
</a-entity>
</a-scene>
</div>
</div>
<div id="testDiv">
</div>
</div>
<xml xmlns="https://developers.google.com/blockly/xml" id="componentToolbox" style="display: inline">
<category name="Entity" colour="#7A0000">
<!--Entity-->
<block type= "entity"></block>
<block type= "entity_childless"></block>
<block type="entity_id"></block>
<!--End Entity-->
</category>
<category name="Animation" colour="#087149">
<block type="animation"></block>
<block type="animation-component_id"></block>
<block type="animation-component_property"></block>
<block type="animation-component_to"></block>
<block type="animation-component_from"></block>
<block type="animation-component_dur"></block>
<block type="animation-component_loop"></block>
<block type="animation-component_dir"></block>
<block type="animation-component_startEvents"></block>
<block type="animation-component_pauseEvents"></block>
<block type="animation-component_resumeEvents"></block>
</category>
<!--<category name="Camera" colour="#0F3E6C">
<block type="camera"></block>
<block type="camera-component_active"></block>
<block type="camera-component_far"></block>
<block type="camera-component_fov"></block>
<block type="camera-component_near"></block>
<block type="camera-component_spectator"></block>
<block type="camera-component_zoom"></block>
</category>-->
<category name="Events" colour="#0F0000">
<block type="event-set"></block>
<block type="event-set__event"></block>
</category>
<category name="Environment" colour="#0F00CC">
<block type="environment"></block>
<block type="environment-component_dressingAmount"></block>
<block type="environment-component_preset"></block>
</category>
<category name="Fog" colour="#A7670C">
<block type="fog"></block>
<block type="fog-component_type"></block>
<block type="fog-component_color"></block>
<block type="fog-component_density"></block>
<block type="fog-component_far"></block>
<block type="fog-component_near"></block>
</category>
<category name="Material" colour="#172073">
<!--Material Component-->
<block type="material"></block>
<block type="material-component_color"></block>
<block type="material-component_src"></block>
<block type="material-component_properties"></block>
<!--End Material Component-->
</category>
<category name="Transformations" colour="#A73C0C">
<!--Position Component-->
<block type="entity_position">
<field name="x"></field>
<field name="y"></field>
<field name="z"></field>
</block>
<!--End Position Component-->
<!--Rotation Component-->
<block type="entity_rotation">
<field name="x"></field>
<field name="y"></field>
<field name="z"></field>
</block>
<!--End Rotation Component-->
<!--Scale Component-->
<block type="entity_scale">
<field name="x"></field>
<field name="y"></field>
<field name="z"></field>
</block>
<!--End Scale Component-->
</category>
<category name="Sound" colour="#E900AA">
<block type="sound"></block>
<block type="sound-component_autoplay"></block>
<block type="sound-component_src"></block>
<block type="sound-component_properties"></block>
</category>
</xml>
<xml xmlns="https://developers.google.com/blockly/xml" id="primitiveToolbox" style="display: inline">
<category name="Primitive Entity" colour="#FF0A0A">
<!--Entity-->
<block type= "primitive_entity"></block>
<block type= "primitive_entity_childless"></block>
<block type="primitiveentity_id"></block>
</category>
<category name="Camera" colour="#00A100">
<block type="camera_primitive"></block>
<block type="camera_far"></block>
<block type="camera_fov"></block>
<block type="camera_look-controls-enabled"></block>
<block type="camera_near"></block>
<block type="camera_reverse-mouse-drag"></block>
<block type="camera_wasd-controls-enabled"></block>
</category>
<category name="Cursor" colour="#C97A00">
<block type="cursor_primitive"></block>
<block type="cursor_far"></block>
<block type="cursor_fuse"></block>
<block type="cursor_fuse-timeout"></block>
<block type="cursor_interval"></block>
<block type="cursor_objects"></block>
</category>
<category name="Geometry Based" colour="#00567F">
<block type= "box_primitive">
</block>
<block type= "sphere_primitive"></block>
<block type= "plane_primitive"></block>
<block type= "cylinder_primitive"></block>
<block type= "cone_primitive"></block>
<block type= "torus_primitive"></block>
<block type= "dodecahedron_primitive"></block>
<block type= "icosahedron_primitive"></block>
<block type= "octahedron_primitive"></block>
<block type= "tetrahedron_primitive"></block>
<block type= "torus-knot_primitive"></block>
<block type="curvedimage_primitive"></block>
<block type='image_primitive'></block>
<block type='videosphere_primitive'></block>
<block type='video_primitive'></block>
<block type='sky_primitive'></block>
<block type= "geometry_width"></block>
<block type= "geometry_height"></block>
<block type= "geometry_depth"></block>
<block type= "geometry_radius"></block>
<block type= "geometry_color"></block>
<block type= "geometrycode_color"></block>
<block type= "geometry_attributes"></block>
</category>
<category name="Light" colour="#ADC400">
<block type="light_primitive"></block>
<block type="light_type"></block>
<block type="light_angle"></block>
<block type="light_color"></block>
</category>
<category name="Model" colour="#430088">
<block type="gltf-model_primitive"></block>
</category>
<category name="Sound" colour="#A1005B">
<block type="sound_primitive"></block>
<block type="sound_autoplay"></block>
<block type="sound_loop"></block>
<block type="sound_on"></block>
<block type="sound_volume"></block>
</category>
<category name="Text" colour="#00DB9E">
<block type="text_primitive"></block>
<block type="text_value"></block>
<block type="text_attributes"></block>
</category>
</xml>
</div>
<script src="blockly_compressed.js"></script>
<script src="javascript_compressed.js"></script>
<script src="primitives_blocks.js"></script>
<script src="entities_blocks.js"></script>
<script src="components_blocks.js"></script>
<script src="code_generators.js"></script>
<script src="index2.js"></script>
</body>
</html>