-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
34 lines (30 loc) · 832 Bytes
/
index.html
File metadata and controls
34 lines (30 loc) · 832 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
31
32
33
34
<!DOCTYPE html>
<html lang="zh">
<head>
<meta charset="UTF-8">
<link rel="stylesheet" type="text/css" href="css/layout.css"/>
<title>Canvas计时器</title>
</head>
<body>
<div class="warp">
<canvas id="canvas"></canvas>
</div>
<button type="button" id="aa">click</button>
<script src="js/jquery.min.js"></script>
<script src="js/main.js"></script>
<script>
$(function() {
/**
* [mycan description]
* @param {obj} opt [选项设置]
* @opt countDown {[是否为倒计时,默认为true]}
* @opt endT [必填,截止时间,格式为yyyy/mm/dd hh/mm/ss或者为整数,例:2017/2/9 22:22:00,如果countDown为false时,填写今天的日期即可]
*/
var mycan = $("#canvas").myCanvas({
endT: "5",
countDown:false
});
});
</script>
</body>
</html>