Mini Shell
/**
* Metis - Bootstrap-Admin-Template v2.3.2
* Author : puikinsh
* Copyright 2016
* Licensed under MIT (https://github.com/puikinsh/Bootstrap-Admin-Template/blob/master/LICENSE.md)
*/
function updateBar(a){fillSecondBar(a[6]),fillMinuteBar(a[5]),fillHourBar(a[4]),fillDayBar(a[3]),fillTotalbar(a[6]+60*a[5]+60*a[4]*60+60*a[3]*60*24)}function fillSecondBar(a){$("#second-number").html(a),$("#second-bar").css("width",100*a/60+"%")}function fillMinuteBar(a){$("#minute-number").html(a),$("#minute-bar").css("width",100*a/60+"%")}function fillHourBar(a){$("#hour-number").html(a),$("#hour-bar").css("width",100*a/24+"%")}function fillDayBar(a){$("#day-number").html(a),$("#day-bar").css("width",100*a/365+"%")}function fillTotalbar(a){defaultPercent=100-100*a/difToSecond,defaultPercent>=10?currentPercent=defaultPercent.toString().substr(0,5):currentPercent=defaultPercent.toString().substr(0,4),$("#total-bar").css("width",defaultPercent+"%").html(currentPercent+"%")}var startDate=new Date("01/01/2014"),endDate=new Date("04/06/2015"),dif=endDate.getTime()-startDate.getTime(),difToSecond=dif/1e3,defaultPercent=0;$(function(){$("#counter").countdown({until:endDate,layout:"<div></div>",onTick:updateBar}),$("a[rel=tooltip]").tooltip(),$("div[rel=tooltip]").tooltip()});var map;map=new GMaps({el:"#map_canvas",lat:-12.043333,lng:-77.028333}),$(function(){$("#emailForm").validate({rules:{email1:{required:!0,email:!0}},errorClass:"help-block",errorElement:"span",highlight:function(a,b,c){$(a).parents(".form-group").removeClass("has-success").addClass("has-error")},unhighlight:function(a,b,c){$(a).parents(".form-group").removeClass("has-error").addClass("has-success")}}),$("#messageForm").validate({rules:{name:{required:!0},email:{required:!0,email:!0},subject:{required:!0},message:{required:!0}},errorClass:"help-block",errorElement:"span",highlight:function(a,b,c){$(a).parents(".form-group").removeClass("has-success").addClass("has-error")},unhighlight:function(a,b,c){$(a).parents(".form-group").removeClass("has-error").addClass("has-success")}})});
//# sourceMappingURL=countdown.js.map
Zerion Mini Shell 1.0