-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
39 lines (35 loc) · 1022 Bytes
/
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
<!DOCTYPE html>
<html>
<head>
<title>jQuery Week Picker</title>
<link href='https://fonts.googleapis.com/css?family=Oswald:300' rel='stylesheet' type='text/css'>
<link rel="stylesheet" type="text/css" href="jquery-ui-1.10.4.smoothness.css">
<link rel="stylesheet" type="text/css" href="jquery-weekpicker.css">
<style>
body {
padding: 2em 4em;
}
</style>
</head>
<body>
<h1>Week Picker</h1>
<div id="weekpicker"></div>
<div class="">Week starting: <b id="week-start"></b></div>
<script src="jquery-1.11.1.js"></script>
<script src="jquery-ui-1.10.4.js"></script>
<script src="jquery-weekpicker.js"></script>
<script>
$(function() {
var dateText = '12/20/2015',
display = $('#week-start');
display.text(dateText);
$('#weekpicker').weekpicker({
currentText: dateText,
onSelect: function(dateText, startDateText, startDate, endDate, inst) {
display.text(startDateText);
}
});
});
</script>
</body>
</html>