-
Notifications
You must be signed in to change notification settings - Fork 4
/
footer.php
48 lines (41 loc) · 1.41 KB
/
footer.php
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
<!-- <link rel="stylesheet" type = "text/css" href ="css/bootstrap.min.css"> -->
<script src="js/jquery-3.2.1.min.js"></script>
<script src="js/materialize.min.js"></script>
<script src="js/chart.min.js"></script>
<script src="js/init.js"></script>
<script>
//function to get the date day month and year in different variables
$(document).ready(function() {
var todaysDate = new Date();
function convertDate(date) {
var yyyy = date.getFullYear().toString();
var mm = (date.getMonth()+1).toString();
var dd = date.getDate().toString();
var mmChars = mm.split('');
var ddChars = dd.split('');
return yyyy + '-' + (mmChars[1]?mm:"0"+mmChars[0]) + '-' + (ddChars[1]?dd:"0"+ddChars[0]);
}
var dateToday = convertDate(todaysDate);
// console.log(convertDate(todaysDate)); // Returns: 2015-08-25
// Initialize modal
$('.modal').modal();
// Initialize select list
$('select').material_select();
// Initialize datepicker
$('.datepicker').pickadate({
format: 'yyyy-mm-dd',
min: dateToday
});
// Hide messagebox after 5 second
setTimeout(function(){
$('#msgBox').hide();
}, 5000);
});
</script>
<!-- <footer class="container-fluid bg-4 text-center">
<br>
<p> Slot Booking Project 2020 | © All Rights Reserved </p>
<br>
</footer> -->
</body>
</html>