-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathindex.html
187 lines (185 loc) · 6.81 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
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>TaTa</title>
<meta name="description" content="TaTa.js 一个简洁有效的消息提示插件.">
<link rel="apple-touch-icon" sizes="120x120" href="/assets/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="/assets/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="/assets/favicon-16x16.png">
<link rel="mask-icon" href="/assets/safari-pinned-tab.svg" color="#5bbad5">
<meta name="theme-color" content="#ffffff">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/materialize/1.0.0-alpha.1/css/materialize.min.css">
<script defer src="https://cdnjs.cloudflare.com/ajax/libs/materialize/1.0.0-alpha.1/js/materialize.min.js"></script>
<link rel="stylesheet" href="./dist/index.css">
</head>
<body>
<section class="loading">
<div class="preloader-wrapper big active">
<div class="spinner-layer spinner-blue-only">
<div class="circle-clipper left">
<div class="circle"></div>
</div>
<div class="gap-patch">
<div class="circle"></div>
</div>
<div class="circle-clipper right">
<div class="circle"></div>
</div>
</div>
</div>
</section>
<div class="wrapper">
<header>
<h1 class="title">TaTa.js</h1>
<h2 class="sub-title">A simple prompt library</h2>
<a class="waves-effect waves-light indigo darken-1 z-depth-3 btn btn-large download" href="./dist/tata.js" download>
Download
</a>
<p>
<a href="https://github.com/xrr2016/tata" target="_blank">
<img src="https://img.shields.io/github/stars/xrr2016/tata.svg" alt="star">
</a>
</p>
</header>
<main class="container">
<section class="row">
<section id="opts" class="col s12 m7 offset-m1 opts">
<h6>Tilte</h6>
<div class="input-field">
<input placeholder="Input your title." name="title" id="title" type="text" class="validate" value="Hello">
</div>
<h6>Text</h6>
<div class="input-field">
<input placeholder="Input your text." name="text" id="text" type="text" class="validate" value="Nice to meet you.">
</div>
<h6 class="p-t-10px">Duration(s)</h6>
<div class="range-field m-t-15px">
<input type="range" id="duration" name="duration" min="0" max="10" value="3" />
</div>
<h6 class="p-t-10px">Position</h6>
<div class="postions m-t-15px">
<label>
<input name="position" type="radio" checked value="tr" /><span>tr</span>
</label>
<label>
<input name="position" type="radio" value="tm" />
<span>tm</span>
</label>
<label>
<input name="position" type="radio" value="tl" />
<span>tl</span>
</label>
<label>
<input name="position" type="radio" value="ml" />
<span>ml</span>
</label>
<label>
<input name="position" type="radio" value="mm" />
<span>mm</span>
</label>
<label>
<input name="position" type="radio" value="ml" />
<span>ml</span>
</label>
<label>
<input name="position" type="radio" value="br" />
<span>br</span>
</label>
<label>
<input name="position" type="radio" value="bm" />
<span>bm</span>
</label>
<label>
<input name="position" type="radio" value="bl" />
<span>bl</span>
</label>
</div>
<div class="switchs p-t-10px">
<div>
<h6>Progress</h6>
<div class="switch m-t-15px">
<label>
hide
<input type="checkbox" checked name="progress">
<span class="lever"></span>
hide
</label>
</div>
</div>
<div>
<h6>Holding</h6>
<div class="switch m-t-15px">
<label>
false
<input type="checkbox" name="holding">
<span class="lever"></span>
true
</label>
</div>
</div>
<div>
<h6>CloseBtn</h6>
<div class="switch m-t-15px">
<label>
hide
<input type="checkbox" name="closeBtn" checked>
<span class="lever"></span>
show
</label>
</div>
</div>
</div>
<div class="switchs p-t-10px">
<div>
<h6>Animate</h6>
<div class="switch m-t-15px">
<label>
fade
<input type="checkbox" name="animate">
<span class="lever"></span>
slide
</label>
</div>
</div>
<div>
<h6>onClick</h6>
<div class="switch m-t-15px">
<label>
false
<input type="checkbox" name="onClick">
<span class="lever"></span>
true
</label>
</div>
</div>
<div>
<h6>onClose</h6>
<div class="switch m-t-15px">
<label>
false
<input type="checkbox" name="onClose">
<span class="lever"></span>
true
</label>
</div>
</div>
</div>
</section>
<section class="col s12 m3 offset-m1 btns">
<button class="btn btn-large waves-effect waves-light z-depth-3" data-type="text">Text</button>
<button class="btn btn-large waves-effect waves-light z-depth-3" data-type="log">Log</button>
<button class="btn btn-large waves-effect waves-light z-depth-3" data-type="info">Info</button>
<button class="btn btn-large waves-effect waves-light z-depth-3" data-type="success">Success</button>
<button class="btn btn-large waves-effect waves-light z-depth-3" data-type="warn">Warn</button>
<button class="btn btn-large waves-effect waves-light z-depth-3" data-type="error">Error</button>
</section>
</section>
</main>
</div>
<script src="./dist/tata.js"></script>
<script src="./dist/index.js"></script>
</body>
</html>