forked from olton/metroui
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtimes.html
More file actions
144 lines (131 loc) · 5.99 KB
/
Copy pathtimes.html
File metadata and controls
144 lines (131 loc) · 5.99 KB
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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="product" content="Metro UI CSS Framework">
<meta name="description" content="Simple responsive css framework">
<meta name="author" content="Sergey S. Pimenov, Ukraine, Kiev">
<link href="css/metro-bootstrap.css" rel="stylesheet">
<link href="css/metro-bootstrap-responsive.css" rel="stylesheet">
<link href="css/docs.css" rel="stylesheet">
<link href="js/prettify/prettify.css" rel="stylesheet">
<!-- Load JavaScript Libraries -->
<script src="js/jquery/jquery.min.js"></script>
<script src="js/jquery/jquery.widget.min.js"></script>
<script src="js/jquery/jquery.mousewheel.js"></script>
<script src="js/prettify/prettify.js"></script>
<!-- Metro UI CSS JavaScript plugins -->
<script src="js/load-metro.js"></script>
<!-- Local JavaScript -->
<script src="js/docs.js"></script>
<script src="js/github.info.js"></script>
<title>Metro UI CSS : Metro Bootstrap CSS Library</title>
</head>
<body class="metro">
<header class="bg-dark" data-load="header.html"></header>
<div class="page">
<div class="page-region">
<div class="page-region-content">
<h1>
<a href="/"><i class="icon-arrow-left-3 fg-darker smaller"></i></a>
Times<small class="on-right">widgets</small>
</h1>
<p class="bg-grayLighter padding20 tertiary-text">
This widgets based on <a href="http://tutorialzine.com/2011/12/countdown-jquery/">jQuery Countdown Plugin</a> of Martin Angelov.
</p>
<h2>Countdown</h2>
<div class="example">
<div class="countdown" data-role="countdown" data-blink="false" style="font-size: 40px;"></div>
<div class="countdown inverse" data-role="countdown"></div>
<div class="countdown" data-role="countdown" data-style-background="bg-lightBlue"></div>
<div class="countdown" data-role="countdown" data-style-background="bg-teal" data-style-foreground="fg-yellow"></div>
</div>
<br />
<p class="description">
This widget require <code>metro-countdown.js</code>.
</p>
<h3>Definition</h3>
<pre class="prettyprint linenums">
<div class="countdown" data-role="countdown" data-blink="false" style="font-size: 20px"></div>
<div class="countdown inverse" data-role="countdown"></div>
<div class="countdown" data-role="countdown" data-style-background="bg-lightBlue"></div>
<div class="countdown" data-role="countdown" data-style-background="bg-teal" data-style-foreground="fg-yellow"></div>
<div class="countdown" data-role="countdown" data-style-divider="fg-red"></div>
</pre>
<p class="description">
You can activate widget manually or auto with <code>data-*</code> api.
</p>
<h4>Activate widget with Javascript</h4>
<pre class="linenums prettyprint">
$("#componennt_id").countdown({
style: {
background: string, //existing class for digit background color
foreground: string //existing class for digit foreground color
divider: string //existing class for divider foreground color
},
blink: true, // blink divider
days: int, // days to alert, set stoptimer to zero, default 1
stoptimer: string, // the string value of datetime, example '2013-07-05 12:00'
ontick: function(d, h, m, s){...},
onstop: function(){...}
});
</pre>
<h4>Activate widget with API</h4>
<pre class="prettyprint linenums">
<div class="countdown" data-role="countdown" data-stoptimer="2013-07-05 12:00"></div>
</pre>
<h4>Events</h4>
<pre class="linenums prettyprint">
$("#componennt_id").countdown().bind('countdownalarm', function(){...});
</pre>
<h2>Times</h2>
<div class="example">
<div class="times" data-role="times"></div>
<div class="times inverse" data-role="times" data-blink="false" style="font-size: 40px"></div>
<div class="times" data-role="times" data-style-background="bg-lightBlue" data-style-divider="fg-lightBlue"></div>
<div class="times" data-role="times" data-style-background="bg-red" data-style-foreground="fg-white" data-style-divider="fg-red"></div>
</div>
<br />
<p class="description">
This widget require <code>metro-times.js</code>.
</p>
<h3>Definition</h3>
<pre class="prettyprint linenums">
<div class="times" data-role="times"></div>
</pre>
<p class="description">
You can activate widget manually or auto with <code>data-*</code> api.
</p>
<h4>Activate widget with Javascript</h4>
<pre class="linenums prettyprint">
$("#componennt_id").times({
style: {
background: string, //existing class for digit background color
foreground: string //existing class for digit foreground color
divider: string //existing class for divider foreground color
},
blink: true, // blink divider
alarm: {h:..., m:..., s:...},
ontick: function(h, m, s){...},
onalarm: function(){...},
});
</pre>
<h4>Activate widget with API</h4>
<pre class="prettyprint linenums">
<div class="times" data-role="times" data-alarm="hh:mm:ss"></div>
</pre>
<h4>Events</h4>
<pre class="linenums prettyprint">
$("#componennt_id").times().bind('timesalarm', function(){...});
</pre>
</div>
</div>
<div class="page-footer">
<div class="page-footer-content">
<!--<div data-load="header.html"></div>-->
</div>
</div>
</div>
<script src="js/hitua.js"></script>
</body>
</html>