-
Notifications
You must be signed in to change notification settings - Fork 9
/
index.html
107 lines (100 loc) · 4.71 KB
/
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
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="mobile-web-app-capable" content="yes">
<title>Insert title here</title>
<link href="https://fonts.googleapis.com/css?family=Roboto:100,300,400,500" rel="stylesheet">
<link href="https://fonts.googleapis.com/css?family=Open+Sans" rel="stylesheet">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" />
<link href="css/font-awesome.min.css" rel="stylesheet">
<link rel="stylesheet" href="css/main.css">
<link href="css/cuppa-datepicker-styles.css" rel="stylesheet">
<script type="text/javascript" src="js/lib/moment.js"></script>
<script type="text/javascript" src="js/cuppa-calendar.js"></script>
<script>
var cal = null;
window.onload = function () {
cal = new WinkelCalendar({
container: 'cuppaDatePickerContainer',
bigBanner: true,
defaultDate: '2016-1-12',
format : "DD-MM-YYYY",
onSelect : onDateChange
});
cal2 = new WinkelCalendar({
container: 'cuppaDatePicker',
bigBanner: false,
format : "DD/MM/YYYY",
onSelect : onDateChange
});
}
function onDateChange(date){
//document.getElementById('container2').innerHTML = date;
}
</script>
</head>
<body>
<nav class="navbar navbar-default navbar-static-top">
<div class="container">
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="http://www.cuppalabs.com">Cuppa Labs</a>
</div>
<div id="navbar" class="navbar-collapse collapse">
<ul class="nav nav-pills pull-right">
<li><a href="http://www.cuppalabs.com/2016/11/cool-javascript-datepicker-for-mobile.html">Back to Tutorial</a></li>
</ul>
</div>
</div>
</nav>
<div class="container col-sm-12 col-md-12 col-lg-6">
<div class="jumbotron">
<h1 class="component-title">Cuppa DatePicker<span><br>with JavaScript</span></h1>
<p>Cool JavaScript DatePicker for Web and Mobile</p>
<p class="bt-group">
<a href="https://github.com/CuppaLabs/javascript-datepicker/archive/master.zip" type="button" class="btn btn-success"><i class="fa fa-download" aria-hidden="true"></i><span class="hidden-xs"> Download </span></a>
<a href="https://jsfiddle.net/solomon301/s3hL05s6/" target='_blank' type="button" class="btn btn-success"><i class="fa fa-jsfiddle" aria-hidden="true"></i><span class="hidden-xs"> Fiddle</span></a>
<a href="https://github.com/CuppaLabs/javascript-datepicker" target='_blank' type="button" class="btn btn-success"><i class="fa fa-github" aria-hidden="true"></i><span class="hidden-xs"> Github</span></a>
<a href="https://github.com/CuppaLabs/javascript-datepicker#documentation" target='_blank' type="button" class="btn btn-success"><i class="fa fa-book" aria-hidden="true"></i><span class="hidden-xs"> Documentation</span></a>
</p>
</div>
</div>
<div class="container datepicker-container col-sm-6 col-md-6 col-lg-3">
<div id="cuppaDatePickerContainer"></div>
<div class="methods">
<button class="btn btn-info btn-sm" onClick="cal.show()">Open</button>
<button class="btn btn-info btn-sm" onClick="cal.hide()">Close</button>
<button class="btn btn-info btn-sm" onClick="cal.today()">Today</button>
<button class="btn btn-info btn-sm" onClick="cal.setDate('1990-4-18')">SetDate</button>
</div>
</div>
<div class="container datepicker-container col-sm-6 col-md-6 col-lg-3">
<div id="cuppaDatePicker"></div>
<div class="methods">
<button class="btn btn-info btn-sm" onClick="cal2.show()">Open</button>
<button class="btn btn-info btn-sm" onClick="cal2.hide()">Close</button>
<button class="btn btn-info btn-sm" onClick="cal2.today()">Today</button>
<button class="btn btn-info btn-sm" onClick="cal2.setDate('2017-5-1')">SetDate</button>
</div>
</div>
<div class="ad-section">
<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<!-- FanMenu Ad -->
<ins class="adsbygoogle"
style="display:inline-block;width:320px;height:100px"
data-ad-client="ca-pub-4525567075133342"
data-ad-slot="1008857902"></ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script>
</div>
</body>
</html>