-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
41 lines (37 loc) · 1.47 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
<!DOCTYPE html>
<html lang="fa">
<head>
<meta charset="UTF-8">
<title>jQuery Date Selector</title>
<link href='https://fonts.googleapis.com/css?family=Open+Sans' rel='stylesheet' type='text/css'>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.0.3/css/font-awesome.min.css">
<link rel="stylesheet" href="css/persian-selector.css">
<style>
.date-select { font-family: 'Open Sans', sans-serif; }
</style>
</head>
<body>
<div style="display : flex ; flex : 1 ; align-items: center ; justify-content: center ;height: 100% ;">
<div class="input-group">
<input type="text" name="date1" id="date1" class="form-control" data-select="date">
<span class="input-group-btn">
<button class="btn btn-primary" type="button" data-toggle="select"><i class="fa fa-calendar"></i></button>
</span>
</div>
</div>
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/jquery/1.8.0/jquery-1.8.0.min.js"></script>
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/jquery-mousewheel/3.1.11/jquery.mousewheel.min.js"></script>
<script type="text/javascript" src="js/persian-date.js"></script>
<script type="text/javascript" src="js/persian-selector.js"></script>
<script type="text/javascript">
jQuery(document).ready(function($) {
$('.btn-date').on('click', function(e) {
e.preventDefault();
$.dateSelect.show({
element: 'input[name="date2"]'
});
});
});
</script>
</body>
</html>