-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdemo.html
227 lines (186 loc) · 5.48 KB
/
demo.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
217
218
219
220
221
222
223
224
225
226
227
<!doctype html>
<html>
<head>
<meta name="asq-elements" content="width=device-width, initial-scale=1, user-scalable=no">
<title>Bucket questions</title>
<script src="../webcomponentsjs/webcomponents.js"></script>
<link href="../asq-exercise/asq-exercise.html" rel="import">
<link href="asq-buckets.html" rel="import">
<link rel="stylesheet" href="http://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
<script src="http://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/js/bootstrap.min.js"></script>
<style shim-shadowdom>
body {
font-family: RobotoDraft, 'Helvetica Neue', Helvetica, Arial;
font-size: 14px;
margin: 0;
padding: 24px;
-webkit-tap-highlight-color: rgba(0,0,0,0);
-webkit-touch-callout: none;
}
asq-buckets [target] {
padding: 4px;
margin-bottom: 20px;
line-height: 1.42857143;
background-color: #fff;
border: 1px solid #ddd;
border-radius: 4px;
-webkit-transition: border .2s ease-in-out;
-o-transition: border .2s ease-in-out;
transition: border .2s ease-in-out;
}
asq-buckets #targets {
display: flex;
flex-direction: row;
justify-content: center;
}
asq-buckets [target] {
cursor: pointer;
display: block;
min-height: 200px;
min-width: 150px;
}
asq-buckets [target] [object] {
cursor: default;
display: flex;
flex-direction: row;
justify-content: center;
margin: 2px;
}
asq-buckets [target] [change] {
background-color: #FF6666;
}
asq-buckets [target] > span {
color: #E6E6E6;
background-color: #0080FF;
border-color: #bce8f1;
padding: 10px 5px;
border: 1px solid transparent;
border-radius: 4px;
display: block;
text-align: center;
}
asq-buckets {
max-width: 400px;
text-align: center;
max-width: 50px auto;
}
asq-buckets > section {
text-align: center;
}
body > asq-exercise {
display: block;
width: 600px;
}
asq-buckets [object] {
display: block;
color: #a94442;
background-color: #f2dede;
border-color: #ebccd1;
border-color: #faebcc;
padding: 8px 6px;
border: 1px solid transparent;
border-radius: 4px;
max-width: 150px;
margin: 1px auto;
}
asq-buckets::shadow [object] {
display: block;
color: #a94442;
background-color: #f2dede;
border-color: #ebccd1;
border-color: #faebcc;
padding: 8px 6px;
border: 1px solid transparent;
border-radius: 4px;
max-width: 150px;
margin: 1px auto;
}
asq-buckets [object] > b {
color: red;
}
asq-buckets::shadow [object] > b {
color: red;
}
asq-buckets core-icon {
transition: all 0.2s;
-webkit-transition: all 0.2s;
}
asq-buckets core-icon:hover {
fill: #fb8c00;
}
asq-buckets[disabled] [target] > span {
background-color: #4C4C4C;
}
asq-buckets[disabled] [target] {
cursor: auto;
background-color: lightgray;
}
asq-buckets[disabled] [object] {
color: white;
background-color: #808080;
}
asq-buckets[disabled]::shadow [object] {
color: white;
background-color: #808080;
}
asq-buckets[disabled] [object] > b {
color: #333333;
}
asq-buckets[disabled]::shadow [object] > b {
color: #333333;
}
</style>
</head>
<body>
<div>
<asq-buckets targets="#targets" objects="#objects">
<asq-stem><h5>Please classify the words according to the pronunciation of the bolded vowels</h5></asq-stem>
<div id="targets">
<div target name="Long"><span>Long</span></div>
<div target name="Short"><span>Short</span></div>
<div target name="Medium"><span>Medium</span></div>
</div>
<div id="objects">
<div object name="glas">Gl<b>a</b>s</div>
<div object name="nudeln">N<b>u</b>deln</div>
<div object name="platz">Pl<b>a</b>tz</div>
<div object name="vier">v<b>i</b>er</div>
</div>
</asq-buckets>
</div>
<div>
<asq-buckets mode='1-1' targets="#targets" objects="#objects">
<asq-stem><h5>Match the correct translations.</h5></asq-stem>
<div id="targets">
<div target name="Sunny"><b>It is Sunny</b></div>
<div target name="Windy"><b>It is Windy</b></div>
<div target name="Rainy"><b>It is Rainy</b></div>
</div>
<div id="objects">
<div object name="sonnig">Es ist sonnig</div>
<div object name="windig">Es ist windig</div>
<div object name="regnet">Es ist regnet</div>
</div>
</asq-buckets>
</div>
<!-- For tests -->
<div hidden>
<div object name="k1">kkkkk</div>
<div object name="f1">fffff</div>
<div target name="e1"><span>HI</span></div>
<div target name="e2"><span>NI</span></div>
</div>
<script>
var a = document.querySelector("asq-buckets")
var o = a.querySelector("#objects");
var t = a.querySelector("#targets");
var ll = document.querySelector("[name=Long]")
var gg = document.querySelector("[name=glas]")
var k = document.querySelector("[name=k1]")
var f = document.querySelector("[name=f1]")
var e1 = document.querySelector("[name=e1]")
var e2 = document.querySelector("[name=e2]")
</script>
</body>
</html>