-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathscripts.php
More file actions
71 lines (60 loc) · 1.33 KB
/
scripts.php
File metadata and controls
71 lines (60 loc) · 1.33 KB
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
<!-- <script>
$(".toast").toast("show");
</script> -->
<script>
$(document).ready(function(){
$('.toast').toast('show');
});
</script>
<script>
$(document).ready( function () {
$('#myTable').DataTable(
{
dom: 'Bfrtip',
buttons: [
'copy', 'csv', 'excel', 'pdf', 'print'
],
paging: true,
scrollY: 400,
responsive: true,
order: [[0, 'desc']],
autoWidth: false
}
);
} );
</script>
<script>
function ShowPass() {
var x = document.getElementById("password");
if (x.type === "password") {
x.type = "text";
} else {
x.type = "password";
}
}
</script>
<script>
function startTime() {
const today = new Date();
let h = today.getHours() % 12 || 12;
let m = today.getMinutes();
let s = today.getSeconds();
// let ampm = h >= 12 ? 'am' : 'pm';
m = checkTime(m);
s = checkTime(s);
// document.getElementById('txt').innerHTML = h + ":" + m + ":" + s + " " + ampm;
// document.getElementById('txt').innerHTML = h + ":" + m + ":" + s;
document.getElementById('txt').innerHTML = h + ":" + m;
setTimeout(startTime, 1000);
}
function checkTime(i) {
if (i < 10) {i = "0" + i}; // add zero in front of numbers < 10
return i;
}
</script>
<script>
$('#myModal').modal('show');
</script>
<script>
$('#myModal2').modal('show');
</script>