Sha256: 4f020dca05a07dbe03846bd3728d843a1adafe2661e2481cb4c8c31367c7c34a
Contents?: true
Size: 722 Bytes
Versions: 10
Compression:
Stored size: 722 Bytes
Contents
/* Template Name: Color Admin - Responsive Admin Dashboard Template build with Twitter Bootstrap 5 Version: 5.1.5 Author: Sean Ngu Website: http://www.seantheme.com/color-admin/ */ var handleCheckTime = function(i) { "use strict"; if (i < 10) {i = "0" + i}; return i; }; var handleStartTime = function() { "use strict"; var today = new Date(); var h = today.getHours(); var m = today.getMinutes(); var s = today.getSeconds(); var a; m = handleCheckTime(m); s = handleCheckTime(s); a = (h > 11) ? 'pm' : 'am'; h = (h > 12) ? h - 12 : h; document.getElementById('time').innerHTML = h + ":" + m + a; var t = setTimeout(handleStartTime, 500); }; $(document).ready(function() { handleStartTime(); });
Version data entries
10 entries across 5 versions & 1 rubygems