-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
71 lines (68 loc) · 2.91 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
<!DOCTYPE html>
<html>
<head>
<script src="https://code.jquery.com/jquery-3.2.1.min.js"
integrity="sha256-hwg4gsxgFZhOsEEamdOYGBf13FyQuiTwlAQgxVSNgt4="
crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/materialize/0.100.2/js/materialize.min.js"></script>
<script src="silica.js"></script>
<title>Silica testground</title>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/materialize/0.100.2/css/materialize.min.css">
<link rel="stylesheet" href="style/style.css"/>
</head>
<body>
<main class="container row">
<div class="col s6">
<section sc-app="BasicDemo" class="card">
<div class="card-content">
<span class="card-title" sc-text-bind="title"></span>
<button class="waves-effect btn" sc-click="buttonClick" sc-dblclick="doubleClick">Click me to change title</button>
<input type="text" sc-model="entry" />
<span sc-text-bind="entry"></span>
</div>
</section>
</div>
<div class="col s6">
<section sc-app="Counter" class="card">
<div class="card-content">
<span class="card-title" sc-text-bind="count"></span>
<button class="waves-effect btn" sc-click="increment">++</button>
<button class="waves-effect btn" sc-click="decrement">--</button>
<hr/>
<span sc-show="count > 2">Woah, it's <span sc-show="count > 5">loads</span> more than 2! (half of <span sc-text-bind="dblCount"></span>)</span>
</div>
</section>
</div>
<div class="col s6">
<section sc-app="AdvancedComputable" class="card">
<div class="card-content">
<h3>Avg: <span sc-text-bind="avg"/></h3>
<h3>Sum: <span sc-text-bind="sum"/></h3>
<h3>A <span sc-text-bind="a"></span></h3>
<button class="waves-effect btn" sc-click="inc_a">++</button>
<button class="waves-effect btn" sc-click="dec_a">--</button>
<hr/>
<h3>B <span sc-text-bind="b"></span></h3>
<button class="waves-effect btn" sc-click="inc_b">++</button>
<button class="waves-effect btn" sc-click="dec_b">--</button>
<hr/>
<h3>C <span sc-text-bind="c"></span></h3>
<button class="waves-effect btn" sc-click="inc_c">++</button>
<button class="waves-effect btn" sc-click="dec_c">--</button>
<hr/>
</div>
</section>
<section sc-app="Names" class="card">
<div class="card-content">
Forename: <input type="text" sc-model="forename"></input>
<br/>
Surname: <input type="text" sc-model="surname"></input>
<br/>
Full name: <span sc-text-bind="fullName"/>
</div>
</section>
</div>
</main>
<script src="app.js"></script>
</body>
</html>