-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdemo.html
104 lines (83 loc) · 2.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
<!doctype html>
<html>
<head>
<meta name="asq-elements" content="width=device-width, initial-scale=1, user-scalable=no">
<title>asq-order</title>
<script src="../webcomponentsjs/webcomponents.js"></script>
<link href="asq-order.html" rel="import">
<link href="../asq-exercise/asq-exercise.html" rel="import">
<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-order [target] {
min-height: 45px;
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-order [target] > [object] {
display: flex;
flex-direction: column;
justify-content: center;
margin: 2px;
}
asq-order {
width: 220px;
max-width: 500px;
}
asq-order [object] {
cursor: pointer;
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-order > img {
max-width: 220px;
height: 200px;
margin: 1em;
}
.error-solution {
border-color: red;
outline: 0;
-webkit-box-shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px rgba(102, 175, 233, .6);
box-shadow: inset 0 1px 1px rgba(255, 6, 6, 0.075), 0 0 8px rgba(255, 0, 0, 1);
}
</style>
</head>
<body>
<asq-order objects="#objects" vertical layout
hints solution='{und} {kalt} {es ist} {schneit}' >
<asq-stem><p>It is snowing and it is cold.</p></asq-stem>
<img src="http://www.its.caltech.edu/~atomic/snowcrystals/photos/w031230a113.jpg"></img>
<div target name="words" horizontal layout></div>
<div id="objects" horizontal layout>
<div object name="schneit">schneit</div>
<div object name="und">und</div>
<div object name="kalt">kalt</div>
<div object name="es ist">es ist</div>
</div>
</asq-order>
<script>
var s = document.querySelector('asq-order');
</script>
</body>
</html>