-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathfooter.php
65 lines (57 loc) · 2.33 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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
<!-- javascripts -->
<script type="text/javascript" language="javascript" src="js/jquery.js"></script>
<script type="text/javascript" language="javascript" src="js/jquery.dataTables.js"></script>
<script type="text/javascript" language="javascript" >
//NUMBER ONLY
function numberInputOnly(elem) {
var validChars = /[0-9]/;
var strIn = elem.value;
var strOut = '';
for(var i=0; i < strIn.length; i++) {
strOut += (validChars.test(strIn.charAt(i)))? strIn.charAt(i) : '';
}
elem.value = strOut;
}
//LETTER ONLY
function letterInputOnly(elem) {
var validChars = /[a-zA-ZñÑ .]+/;
var strIn = elem.value;
var strOut = '';
for(var i=0; i < strIn.length; i++) {
strOut += (validChars.test(strIn.charAt(i)))? strIn.charAt(i) : '';
}
elem.value = strOut;
}
var dateControl = document.querySelector('input[type="date"]');
</script>
<<!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script>
<script type="text/javascript" language="javascript" src="js/jquery.js"></script>
<script src="js/bootstrap.min.js"></script>
<!-- nice scroll -->
<script src="js/jquery.scrollTo.min.js"></script>
<script src="js/jquery.nicescroll.js" type="text/javascript"></script><!--custome script for all page-->
<script src="js/scripts.js"></script>
<script src="js/moment-with-locales.js"></script>
<script src="js/moment.js"></script>
<script src="js/jquery.dataTables.min.js"></script>
<script src="js/dataTables.bootstrap.min.js"></script>
<script type="text/javascript">
$('#myData').dataTable();
var datetime = null,
date = null;
var update = function () {
date = moment(new Date())
datetime.html(date.format('dddd, MMMM Do YYYY, h:mm:ss a'));
};
$(document).ready(function(){
datetime = $('#datetime')
update();
setInterval(update, 1000);
});
function dateAdded (){
var MyDiv1 = document.getElementById('datetime');
}
</script>
</body>
</html>