This repository has been archived by the owner on Jul 11, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 26
/
index.html
74 lines (66 loc) · 3.97 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
title: MODEL
samplename: model
sampleurl: https://github.com/MikeMitterer/dart-material-design-lite/tree/mdl/example/spa_model/web
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
<div class="demo-preview-block">
<div class="mdl-textfield mdl-js-textfield">
<input class="mdl-textfield__input" type="text" id="sample1" mdl-model="modelTest.minimodel"/>
<label class="mdl-textfield__label" for="sample1">Type Something...</label>
</div>
<div class="groups">
<div class="mdl-checkbox-group">
<div class="choose">Choose OS:</div>
<label class="mdl-checkbox mdl-js-checkbox mdl-js-ripple-effect" for="checkbox-1">
<input type="checkbox" id="checkbox-1" class="mdl-checkbox__input" value="android"
mdl-model="modelTest.os1"/>
<span class="mdl-checkbox__label">Android</span>
</label>
<label class="mdl-checkbox mdl-js-checkbox mdl-js-ripple-effect" for="checkbox-2">
<input type="checkbox" id="checkbox-2" class="mdl-checkbox__input"
mdl-model="modelTest.os2"/>
<span class="mdl-checkbox__label">iOS</span>
</label>
iOS-checkbox has no "value" set. So it shows the default value!
</div>
<div class="mdl-radio-group" mdl-model="modelTest.wifi">
<div class="choose">Choose WIFI:</div>
<label class="mdl-radio mdl-js-radio mdl-js-ripple-effect" for="wifi1">
<input type="radio" id="wifi1" class="mdl-radio__button" name="wifi[]" value="always"/>
<span class="mdl-radio__label">Always</span>
</label>
<label class="mdl-radio mdl-js-radio mdl-js-ripple-effect" for="wifi2">
<input type="radio" id="wifi2" class="mdl-radio__button" name="wifi[]" value="plugged in"/>
<span class="mdl-radio__label">Only when plugged in</span>
</label>
<label class="mdl-radio mdl-js-radio mdl-js-ripple-effect" for="wifi3">
<input type="radio" id="wifi3" class="mdl-radio__button" name="wifi[]" value="never"/>
<span class="mdl-radio__label">Never</span>
</label>
</div>
<div class="switch-group">
<div class="choose">Lights:</div>
<label class="mdl-switch mdl-js-switch mdl-js-ripple-effect" for="switch-bedroom">
<input type="checkbox" id="switch-bedroom" class="mdl-switch__input" mdl-model="modelTest.lights[0]"/>
<span class="mdl-switch__label">Bedroom</span>
</label>
<label class="mdl-switch mdl-js-switch mdl-js-ripple-effect" for="switch-livingroom">
<input type="checkbox" id="switch-livingroom" class="mdl-switch__input" mdl-model="modelTest.lights[1]" />
<span class="mdl-switch__label">Living room</span>
</label>
</div>
</div>
<div class="slider">
<div class="choose">Intensity:</div>
<input class="mdl-slider mdl-js-slider" type="range" min="0" max="100" value="0" tabindex="0"
mdl-model="modelTest.intensity"/>
</div>
<div class="output mdl-color--200 mdl-color-text--white">
Text in TextField: <span class="mdl-color-text--accent-500" mdl-observe="modelTest.minimodel"></span><br>
OS1: <span class="mdl-color-text--accent-500" mdl-observe="modelTest.os1"></span><br>
OS2: <span class="mdl-color-text--accent-500" mdl-observe="modelTest.os2"></span><br>
WIFI: <span class="mdl-color-text--accent-500" mdl-observe="modelTest.wifi"></span><br>
Light #1: <span class="mdl-color-text--accent-500" mdl-observe="modelTest.lights[0]"></span><br>
Light #2: <span class="mdl-color-text--accent-500" mdl-observe="modelTest.lights[1]"></span><br>
Intensity: <span class="mdl-color-text--accent-500" mdl-observe="modelTest.intensity"></span><br>
</div>
</div>