-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdemo.html
65 lines (56 loc) · 2.84 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
<!doctype html>
<html>
<head>
<meta name="viewport" content="width=device-width, minimum-scale=1.0, initial-scale=1.0, user-scalable=yes">
<title>mudasobwa-slider demo</title>
<script src="../platform/platform.js"></script>
<link rel="import" href="mudasobwa-slider.html">
</head>
<body unresolved>
<h1><code>mudasobwa-article</code> example</h1>
<table>
<thead>
<tr>
<th>html snippet</th>
<th>input json</th>
</tr>
</thead>
<tr>
<td>
<div class="highlight">
<pre>
<span style="font-weight:bold; color: navy;"><mudasobwa-article</span>
<span style="font-weight:bold; color: maroon;">id=</span><span style="color: green;">"article"</span>
<span style="font-weight:bold; color: maroon;">url=</span><span style="color: green;">"data/data0.json"</span>
<span style="font-weight:bold; color: maroon;">buttons=</span><span style="color: green;">"both"</span>
<span style="font-weight:bold; color: maroon;">prefetch</span><span style="font-weight:bold; color: navy;">></span>
<span style="font-weight:bold; color: navy;"></mudasobwa-article></span>
</pre>
</div>
</td>
<td>
<div class="highlight">
<pre>
<span style="font-weight:bold;">{</span>
<span style="font-weight:bold; color: navy;">"href"</span><span style="font-weight:bold;">:</span> <span style="color: green;">"demo.html?0"</span><span style="font-weight:bold;">,</span>
<span style="font-weight:bold; color: navy;">"caption"</span><span style="font-weight:bold;">:</span> <span style="color: green;">"Lorem Ipsum 0"</span><span style="font-weight:bold;">,</span>
<span style="font-weight:bold; color: navy;">"prev"</span><span style="font-weight:bold;">:</span> <span style="color: orange;">null</span><span style="font-weight:bold;">,</span>
<span style="font-weight:bold; color: navy;">"next"</span><span style="font-weight:bold;">:</span> <span style="color: green;">"data/data1.json"</span><span style="font-weight:bold;">,</span>
<span style="font-weight:bold; color: navy;">"text"</span><span style="font-weight:bold;">:</span> <span style="color: green;">"<h1>0000000</h1> <p>Lorem ipsum dolor sit amet, ...</p>"</span>
<span style="font-weight:bold;">}</span>
</pre>
</div>
</td>
</tr>
</table>
<h2>result</h2>
<h3>simple slider</h3>
<div style="border: 1px solid #bbb; border-radius: 5px; padding: 2em; background: #ddd;">
<mudasobwa-article id="article" url="data/data0.json" buttons="both" prefetch></mudasobwa-article>
</div>
<h3>stateable slider (note the history changes)</h3>
<div style="border: 1px solid #bbb; border-radius: 5px; padding: 2em; background: #ddd;">
<mudasobwa-article id="article" url="data/data0.json" buttons="both" prefetch stateable></mudasobwa-article>
</div>
</body>
</html>