var canC, ctxC, clockPnlBg = "rgba(30, 30, 30, 0.65)", flashX = 10, flashY = 8, util = new UtilClass, ClockPanel = function () { }; ClockPanel.prototype.Create = function (a, b) { canC = a, ctxC = b }, ClockPanel.prototype.Init = function () { ctxC.clearRect(0, 0, canC.width, canC.height), ctxC.fillStyle = pnlBg, ctxC.strokeStyle = pnlBg, util.roundRect(ctxC, 0, 0, canC.width, canC.height, 4, !0, !1), this.DisplayTime() }, ClockPanel.prototype.StartTimeUpdate = function () { setInterval(this.DisplayTime, 500) }, ClockPanel.prototype.DisplayTime = function () { var a = new Date; ctxC.save(), ctxC.clearRect(0, 0, canC.width, canC.height), ctxC.fillStyle = pnlBg, util.roundRect(ctxC, 0, 0, canC.width, canC.height, 6, !0, !1), ctxC.fillStyle = "White", ctxC.font = "bold 18px Segoe UI", ctxC.shadowColor = "#000", ctxC.shadowBlur = 0, ctxC.shadowOffsetX = 1, ctxC.shadowOffsetY = 1, ctxC.fillText(a.toLocaleString(), 12, 21), ctxC.restore() };