EVOLUTION-NINJA
Edit File: index.min.js
var Index={init:function(){Metronic.addResizeHandler(function(){jQuery(".vmaps").each(function(){var e=jQuery(this);e.width(e.parent().width())})})},initJQVMAP:function(){if(jQuery().vectorMap){var e=function(e){jQuery(".vmaps").hide(),jQuery("#vmap_"+e).show()},t=function(e){var t={map:"world_en",backgroundColor:null,borderColor:"#333333",borderOpacity:.5,borderWidth:1,color:"#c6c6c6",enableZoom:!0,hoverColor:"#c9dfaf",hoverOpacity:null,values:sample_data,normalizeFunction:"linear",scaleColors:["#b6da93","#909cae"],selectedColor:"#c9dfaf",selectedRegion:null,showTooltip:!0,onLabelShow:function(e,t,a){},onRegionOver:function(e,t){"ca"==t&&e.preventDefault()},onRegionClick:function(e,t,a){var o='You clicked "'+a+'" which has the code: '+t.toUpperCase();alert(o)}};t.map=e+"_en";var a=jQuery("#vmap_"+e);a&&(a.width(a.parent().parent().width()),a.show(),a.vectorMap(t),a.hide())};t("world"),t("usa"),t("europe"),t("russia"),t("germany"),e("world"),jQuery("#regional_stat_world").click(function(){e("world")}),jQuery("#regional_stat_usa").click(function(){e("usa")}),jQuery("#regional_stat_europe").click(function(){e("europe")}),jQuery("#regional_stat_russia").click(function(){e("russia")}),jQuery("#regional_stat_germany").click(function(){e("germany")}),$("#region_statistics_loading").hide(),$("#region_statistics_content").show()}},initCalendar:function(){if(jQuery().fullCalendar){var e=new Date,t=e.getDate(),a=e.getMonth(),o=e.getFullYear(),i={};$("#calendar").width()<=400?($("#calendar").addClass("mobile"),i={left:"title, prev, next",center:"",right:"today,month,agendaWeek,agendaDay"}):($("#calendar").removeClass("mobile"),i=Metronic.isRTL()?{right:"title",center:"",left:"prev,next,today,month,agendaWeek,agendaDay"}:{left:"title",center:"",right:"prev,next,today,month,agendaWeek,agendaDay"}),$("#calendar").fullCalendar("destroy"),$("#calendar").fullCalendar({disableDragging:!1,header:i,editable:!0,events:[{title:"All Day",start:new Date(o,a,1),backgroundColor:Metronic.getBrandColor("yellow")},{title:"Long Event",start:new Date(o,a,t-5),end:new Date(o,a,t-2),backgroundColor:Metronic.getBrandColor("blue")},{title:"Repeating Event",start:new Date(o,a,t-3,16,0),allDay:!1,backgroundColor:Metronic.getBrandColor("red")},{title:"Repeating Event",start:new Date(o,a,t+6,16,0),allDay:!1,backgroundColor:Metronic.getBrandColor("green")},{title:"Meeting",start:new Date(o,a,t+9,10,30),allDay:!1},{title:"Lunch",start:new Date(o,a,t,14,0),end:new Date(o,a,t,14,0),backgroundColor:Metronic.getBrandColor("grey"),allDay:!1},{title:"Birthday",start:new Date(o,a,t+1,19,0),end:new Date(o,a,t+1,22,30),backgroundColor:Metronic.getBrandColor("purple"),allDay:!1},{title:"Click for Google",start:new Date(o,a,28),end:new Date(o,a,29),backgroundColor:Metronic.getBrandColor("yellow"),url:"http://google.com/"}]})}},initCharts:function(){if(jQuery.plot){var e=[["02/2013",1500],["03/2013",2500],["04/2013",1700],["05/2013",800],["06/2013",1500],["07/2013",2350],["08/2013",1500],["09/2013",1300],["10/2013",4600]];if(0!=$("#site_statistics").size()){$("#site_statistics_loading").hide(),$("#site_statistics_content").show(),$.plot($("#site_statistics"),[{data:e,lines:{fill:.6,lineWidth:0},color:["#f89f9f"]},{data:e,points:{show:!0,fill:!0,radius:5,fillColor:"#f89f9f",lineWidth:3},color:"#fff",shadowSize:0}],{xaxis:{tickLength:0,tickDecimals:0,mode:"categories",min:0,font:{lineHeight:14,style:"normal",variant:"small-caps",color:"#6F7B8A"}},yaxis:{ticks:5,tickDecimals:0,tickColor:"#eee",font:{lineHeight:14,style:"normal",variant:"small-caps",color:"#6F7B8A"}},grid:{hoverable:!0,clickable:!0,tickColor:"#eee",borderColor:"#eee",borderWidth:1}});var t=null;$("#site_statistics").bind("plothover",function(e,a,o){$("#x").text(a.x.toFixed(2)),$("#y").text(a.y.toFixed(2)),o?t!=o.dataIndex&&(t=o.dataIndex,$("#tooltip").remove(),o.datapoint[0].toFixed(2),o.datapoint[1].toFixed(2),i(o.pageX,o.pageY,o.datapoint[0],o.datapoint[1]+" visits")):($("#tooltip").remove(),t=null)})}if(0!=$("#site_activities").size()){var a=null;$("#site_activities_loading").hide(),$("#site_activities_content").show();var o=[["DEC",300],["JAN",600],["FEB",1100],["MAR",1200],["APR",860],["MAY",1200],["JUN",1450],["JUL",1800],["AUG",1200],["SEP",600]];$.plot($("#site_activities"),[{data:o,lines:{fill:.2,lineWidth:0},color:["#BAD9F5"]},{data:o,points:{show:!0,fill:!0,radius:4,fillColor:"#9ACAE6",lineWidth:2},color:"#9ACAE6",shadowSize:1},{data:o,lines:{show:!0,fill:!1,lineWidth:3},color:"#9ACAE6",shadowSize:0}],{xaxis:{tickLength:0,tickDecimals:0,mode:"categories",min:0,font:{lineHeight:18,style:"normal",variant:"small-caps",color:"#6F7B8A"}},yaxis:{ticks:5,tickDecimals:0,tickColor:"#eee",font:{lineHeight:14,style:"normal",variant:"small-caps",color:"#6F7B8A"}},grid:{hoverable:!0,clickable:!0,tickColor:"#eee",borderColor:"#eee",borderWidth:1}}),$("#site_activities").bind("plothover",function(e,t,o){$("#x").text(t.x.toFixed(2)),$("#y").text(t.y.toFixed(2)),o&&a!=o.dataIndex&&(a=o.dataIndex,$("#tooltip").remove(),o.datapoint[0].toFixed(2),o.datapoint[1].toFixed(2),i(o.pageX,o.pageY,o.datapoint[0],o.datapoint[1]+"M$"))}),$("#site_activities").bind("mouseleave",function(){$("#tooltip").remove()})}}function i(e,t,a,o){$('<div id="tooltip" class="chart-tooltip">'+o+"</div>").css({position:"absolute",display:"none",top:t-40,left:e-40,border:"0px solid #ccc",padding:"2px 6px","background-color":"#fff"}).appendTo("body").fadeIn(200)}},initMiniCharts:function(){jQuery().easyPieChart&&jQuery().sparkline&&(Metronic.isIE8()&&!Function.prototype.bind&&(Function.prototype.bind=function(e){if("function"!=typeof this)throw new TypeError("Function.prototype.bind - what is trying to be bound is not callable");var t=Array.prototype.slice.call(arguments,1),a=this,o=function(){},i=function(){return a.apply(this instanceof o&&e?this:e,t.concat(Array.prototype.slice.call(arguments)))};return o.prototype=this.prototype,i.prototype=new o,i}),$(".easy-pie-chart .number.transactions").easyPieChart({animate:1e3,size:75,lineWidth:3,barColor:Metronic.getBrandColor("yellow")}),$(".easy-pie-chart .number.visits").easyPieChart({animate:1e3,size:75,lineWidth:3,barColor:Metronic.getBrandColor("green")}),$(".easy-pie-chart .number.bounce").easyPieChart({animate:1e3,size:75,lineWidth:3,barColor:Metronic.getBrandColor("red")}),$(".easy-pie-chart-reload").click(function(){$(".easy-pie-chart .number").each(function(){var e=Math.floor(100*Math.random());$(this).data("easyPieChart").update(e),$("span",this).text(e)})}),$("#sparkline_bar").sparkline([8,9,10,11,10,10,12,10,10,11,9,12,11,10,9,11,13,13,12],{type:"bar",width:"100",barWidth:5,height:"55",barColor:"#35aa47",negBarColor:"#e02222"}),$("#sparkline_bar2").sparkline([9,11,12,13,12,13,10,14,13,11,11,12,11,11,10,12,11,10],{type:"bar",width:"100",barWidth:5,height:"55",barColor:"#ffb848",negBarColor:"#e02222"}),$("#sparkline_line").sparkline([9,10,9,10,10,11,12,10,10,11,11,12,11,10,12,11,10,12],{type:"line",width:"100",height:"55",lineColor:"#ffb848"}))},initChat:function(){var e=$("#chats"),t=$(".chats",e),a=$(".chat-form",e),o=$("input",a),i=$(".btn",a),n=function(a){a.preventDefault();var i=o.val();if(0!=i.length){var n,r=new Date,l=r.getHours()+":"+r.getMinutes(),s="";s+='<li class="out">',s+='<img class="avatar" alt="" src="'+Layout.getLayoutImgPath()+'avatar1.jpg"/>',s+='<div class="message">',s+='<span class="arrow"></span>',s+='<a href="#" class="name">Bob Nilson</a> ',s+='<span class="datetime">at '+l+"</span>",s+='<span class="body">',s+=i,s+="</span>",s+="</div>",s+="</li>",t.append(s),o.val(""),e.find(".scroller").slimScroll({scrollTo:(n=0,e.find("li.out, li.in").each(function(){n+=$(this).outerHeight()}),n)})}};$("body").on("click",".message .name",function(e){e.preventDefault();var t=$(this).text();o.val("@"+t+":"),Metronic.scrollTo(o)}),i.click(n),o.keypress(function(e){if(13==e.which)return n(e),!1})},initDashboardDaterange:function(){jQuery().daterangepicker&&($("#dashboard-report-range").daterangepicker({opens:Metronic.isRTL()?"right":"left",startDate:moment().subtract("days",29),endDate:moment(),minDate:"01/01/2012",maxDate:"12/31/2014",dateLimit:{days:60},showDropdowns:!1,showWeekNumbers:!0,timePicker:!1,timePickerIncrement:1,timePicker12Hour:!0,ranges:{Today:[moment(),moment()],Yesterday:[moment().subtract("days",1),moment().subtract("days",1)],"Last 7 Days":[moment().subtract("days",6),moment()],"Last 30 Days":[moment().subtract("days",29),moment()],"This Month":[moment().startOf("month"),moment().endOf("month")],"Last Month":[moment().subtract("month",1).startOf("month"),moment().subtract("month",1).endOf("month")]},buttonClasses:["btn btn-sm"],applyClass:" blue",cancelClass:"default",format:"MM/DD/YYYY",separator:" to ",locale:{applyLabel:"Apply",fromLabel:"From",toLabel:"To",customRangeLabel:"Custom Range",daysOfWeek:["Su","Mo","Tu","We","Th","Fr","Sa"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],firstDay:1}},function(e,t){$("#dashboard-report-range span").html(e.format("MMMM D, YYYY")+" - "+t.format("MMMM D, YYYY"))}),$("#dashboard-report-range span").html(moment().subtract("days",29).format("MMMM D, YYYY")+" - "+moment().format("MMMM D, YYYY")),$("#dashboard-report-range").show())}};