84 lines
2.4 KiB
PHP
84 lines
2.4 KiB
PHP
<!doctype html>
|
|
<html lang="{{ str_replace('_', '-', app()->getLocale()) }}">
|
|
|
|
<head>
|
|
@include('includes.head')
|
|
|
|
<script type="text/javascript">
|
|
$(document).ready(function() {
|
|
$('#sidebarCollapse').on('click', function() {
|
|
$('#sidebar, #content').toggleClass('active');
|
|
// $('.collapse.in').toggleClass('in');
|
|
$('a[aria-expanded=true]').attr('aria-expanded', 'false');
|
|
});
|
|
});
|
|
|
|
function startTime() {
|
|
var today = new Date();
|
|
|
|
const weekday = new Array(7);
|
|
weekday[0] = "Ahad";
|
|
weekday[1] = "Isnin";
|
|
weekday[2] = "Selasa";
|
|
weekday[3] = "Rabu";
|
|
weekday[4] = "Khamis";
|
|
weekday[5] = "Jumaat";
|
|
weekday[6] = "Sabtu";
|
|
|
|
const month = new Array();
|
|
month[0] = "Januari";
|
|
month[1] = "Februari";
|
|
month[2] = "Mac";
|
|
month[3] = "April";
|
|
month[4] = "May";
|
|
month[5] = "Jun";
|
|
month[6] = "Julai";
|
|
month[7] = "Ogos";
|
|
month[8] = "September";
|
|
month[9] = "Oktober";
|
|
month[10] = "November";
|
|
month[11] = "Disember";
|
|
|
|
let day = weekday[today.getDay()];
|
|
let monthname = month[today.getMonth()];
|
|
var d = today.getDate();
|
|
var mon = today.getMonth() + 1;
|
|
var y = today.getFullYear();
|
|
var h = today.getHours();
|
|
var m = today.getMinutes();
|
|
var s = today.getSeconds();
|
|
// var ampm = hours >= 12 ? 'pm' : 'am';
|
|
m = checkTime(m);
|
|
s = checkTime(s);
|
|
document.getElementById('displaytime').innerHTML =
|
|
day + ", " + d + " " + monthname + " " + y + ", " + h + ":" + m + ":" + s;
|
|
var t = setTimeout(startTime, 500);
|
|
}
|
|
|
|
function checkTime(i) {
|
|
if (i < 10) {
|
|
i = "0" + i
|
|
}; // add zero in front of numbers < 10
|
|
return i;
|
|
}
|
|
</script>
|
|
|
|
@stack('additional_scripts')
|
|
@stack('additional_styles')
|
|
</head>
|
|
|
|
<body onload="startTime()">
|
|
@include('includes.sidebar')
|
|
<div id="content">
|
|
@include('includes.header')
|
|
<main class="py-1 mb-5">
|
|
@yield('content')
|
|
</main>
|
|
</div>
|
|
|
|
<script src="{{ asset('js/vue-app.js') }}"></script>
|
|
|
|
</body>
|
|
|
|
</html>
|