forked from olton/metroui
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathclock.html
More file actions
30 lines (24 loc) · 747 Bytes
/
Copy pathclock.html
File metadata and controls
30 lines (24 loc) · 747 Bytes
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
<!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">
<link href="../lib/metro.css" rel="stylesheet">
<title>Test Clock - Metro 4 :: Popular HTML, CSS and JS library</title>
</head>
<body class="m4-cloak">
<div class="container">
<h1>Clock test page</h1>
<div id="clock" data-role="clock" data-on-clock-create="console.log(1)" data-on-second="tick"></div>
</div>
<script src="../lib/metro.js"></script>
<script>
function tick(timestamp){
console.log(timestamp);
}
$("#clock").on("clock-create", function(){
console.log("Clock created 2");
})
</script>
</body>
</html>