index.html
1.6 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
<!DOCTYPE html>
<html lang="en">
<head>
<title>Multi Month Week Picker</title>
<meta name="description" content="Multi month week picker">
<meta name="keywords" content="week picker,multi month,calendar,JavaScript">
<meta name="author" content="Morshed Alam">
<meta charset="UTF-8">
<link href="week-picker-view.css" rel="stylesheet"/>
</head>
<body>
<div class="container">
<h2><a href="https://github.com/morshedalam/week-picker">Multi month week picker</a></h2>
<a href="https://github.com/morshedalam/week-picker" class="btn btn-mini">Repository</a>
<a href="https://github.com/morshedalam/week-picker/zipball/master" class="btn btn-mini">Download</a>
<br/><br/>
<h4>Example</h4>
<div class="well">
<input data-weekpicker="weekpicker" id="weekpicker1" data-months="1"/>
<input data-weekpicker="weekpicker" id="weekpicker2" data-months="1"/>
<input data-weekpicker="weekpicker" id="weekpicker3" data-months="1"/>
<button data-weekpicker="weekpicker" id="weekpicker4" data-months="1">周</button>
</div>
<button onclick="getValue()">获取值</button>
<p>Specifying start of week via data tag.</p>
<script src="https://code.jquery.com/jquery-3.1.1.min.js"></script>
<script type="text/javascript" src="week-picker.js"></script>
<script>
function getValue(){
alert("w1=" + $("#weekpicker1").val() + " == w2=" + $("#weekpicker2").val() + " == w3=" + $("#weekpicker3").val() + " == w4=" + $("#weekpicker4").val());
}
$("#weekpicker4").change(function(e){
console.log("-------");
console.log($(this).val());
});
</script>
</body>
</html>