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(a,b){var c=a(".inner a.btn");return b.metisButton=function(){a.each(c,function(){a(this).popover({placement:"bottom",title:this.innerHTML,content:this.outerHTML,trigger:b.isTouchDevice?"touchstart":"hover"})})},b}(jQuery,Metis||{}),function(a,b){"use strict";function c(a){return Math.sqrt(2)*Math.cos(a)/(Math.pow(Math.sin(a),2)+1)}function d(a){return Math.sqrt(2)*Math.cos(a)*Math.sin(a)/(Math.pow(Math.sin(a),2)+1)}var e=[[0,3],[1,8],[2,5],[3,13],[4,1]],f=[[0,12],[2,2],[3,9],[4,4]],g=[],h=[],i=[],j=[],k=[],l=a("#human"),m=a("#eye"),n=a("#bar");a("#heart"),a("#bernoilli");return b.MetisChart=function(){if(!a().plot)throw new Error("flot plugin require form MetisChart");a.plot(l,[{data:e,label:"MAN"},{data:f,label:"WOMAN"}],{clickable:!0,hoverable:!0,series:{lines:{show:!0,fill:!0,fillColor:{colors:[{opacity:.5},{opacity:.15}]}},points:{show:!0}}}),a.plot(n,[{data:e,label:"BAR"}],{clickable:!0,hoverable:!0,series:{bars:{show:!0,barWidth:.6},points:{show:!0}}});for(var b=-5;5>=b;b+=.5)g.push([b,Math.pow(b,2)-25]),h.push([b,-Math.pow(b,2)+25]);for(var o=-2;2.1>=o;o+=.1)i.push([o,Math.sqrt(400-o*o*100)]),i.push([o,-Math.sqrt(400-o*o*100)]);for(a.plot(m,[{data:h,lines:{show:!0,fill:!0}},{data:g,lines:{show:!0,fill:!0}},{data:i,lines:{show:!0}}]),b=-2;5>=b;b+=.01)j.push([16*Math.pow(Math.sin(b),3),13*Math.cos(b)-5*Math.cos(2*b)-2*Math.cos(3*b)-Math.cos(4*b)]);a.plot(a("#heart"),[{data:j,label:'<i class="fa fa-heart"></i>',color:"#9A004D"}],{series:{lines:{show:!0,fill:!0},points:{show:!1}},yaxis:{show:!0},xaxis:{show:!0}}),a("#heart .legendLabel").addClass("animated pulse"),setInterval(function(){a("#heart .legendLabel .fa.fa-heart").toggleClass("fa-2x")},400);for(var p=0;p<=2*Math.PI;p+=.01)k.push([c(p),d(p)]);a.plot(a("#bernoilli"),[{data:k,label:"Lemniscate of Bernoulli",lines:{show:!0,fill:!0}}])},b}(jQuery,Metis||{}),function(a){"use strict";return Metis.dashboard=function(){function b(b,c,d){a('<div id="tooltip">'+d+"</div>").css({position:"absolute",display:"none",top:c+5,left:b+5,border:"1px solid #fdd",padding:"2px","background-color":"#000",color:"#fff"}).appendTo("body").fadeIn(200)}a(".inlinesparkline").sparkline();var c=[10,8,5,7,4,4,1];a(".dynamicsparkline").sparkline(c),a(".dynamicbar").sparkline(c,{type:"bar",barColor:"green"}),a(".inlinebar").sparkline("html",{type:"bar",barColor:"red"}),a(".sparkline.bar_week").sparkline([5,6,7,2,0,-4,-2,4],{type:"bar",height:"40",barWidth:5,barColor:"#4d6189",negBarColor:"#a20051"}),a(".sparkline.line_day").sparkline([5,6,7,9,9,5,4,6,6,4,6,7],{type:"line",height:"40",drawNormalOnTop:!1}),a(".sparkline.pie_week").sparkline([1,1,2],{type:"pie",width:"40",height:"40"}),a(".sparkline.stacked_month").sparkline(["0:2","2:4","4:2","4:1"],{type:"bar",height:"40",barWidth:10,barColor:"#4d6189",negBarColor:"#a20051"});for(var d=new Date,e=d.getDate(),f=d.getMonth(),g=d.getFullYear(),h=a("#calendar").fullCalendar({header:{left:"prev,today,next,",center:"title",right:"month,agendaWeek,agendaDay"},selectable:!0,selectHelper:!0,select:function(a,b,c){var d=prompt("Event Title:");d&&h.fullCalendar("renderEvent",{title:d,start:a,end:b,allDay:c},!0),h.fullCalendar("unselect")},editable:!0,events:[{title:"All Day Event",start:new Date(g,f,1),className:"label label-success"},{title:"Long Event",start:new Date(g,f,e-5),end:new Date(g,f,e-2),className:"label label-info"},{id:999,title:"Repeating Event",start:new Date(g,f,e-3,16,0),allDay:!1,className:"label label-warning"},{id:999,title:"Repeating Event",start:new Date(g,f,e+4,16,0),allDay:!1,className:"label label-inverse"},{title:"Meeting",start:new Date(g,f,e,10,30),allDay:!1,className:"label label-important"},{title:"Lunch",start:new Date(g,f,e,12,0),end:new Date(g,f,e,14,0),allDay:!1},{title:"Birthday Party",start:new Date(g,f,e+1,19,0),end:new Date(g,f,e+1,22,30),allDay:!1},{title:"Click for Google",start:new Date(g,f,28),end:new Date(g,f,29),url:"http://google.com/"}]}),i=[],j=[],k=0;14>k;k+=.5)i.push([k,Math.sin(k)]),j.push([k,Math.cos(k)]);var l=(a.plot(a("#trigo"),[{data:i,label:"sin(x)",points:{fillColor:"#4572A7",size:5},color:"#4572A7"},{data:j,label:"cos(x)",points:{fillColor:"#333",size:35},color:"#AA4643"}],{series:{lines:{show:!0},points:{show:!0}},grid:{hoverable:!0,clickable:!0},yaxis:{min:-1.2,max:1.2}}),null);a("#trigo").bind("plothover",function(c,d,e){if(a("#x").text(d.x.toFixed(2)),a("#y").text(d.y.toFixed(2)),e){if(l!==e.dataIndex){l=e.dataIndex,a("#tooltip").remove();var f=e.datapoint[0].toFixed(2),g=e.datapoint[1].toFixed(2);b(e.pageX,e.pageY,e.series.label+" of "+f+" = "+g)}}else a("#tooltip").remove(),l=null}),a(".sortableTable").tablesorter()},Metis}(jQuery),function(a){"use strict";return Metis.formGeneral=function(){a(".with-tooltip").tooltip({selector:".input-tooltip"}),a("#autosize").length&&a("#autosize").autosize(),a("#limiter").inputlimiter({limit:140,remText:"You only have %n character%s remaining...",limitText:"You're allowed to input %n character%s into this field."}),a("#tags").tagsInput(),a(".chzn-select").chosen(),a(".chzn-select-deselect").chosen({allow_single_deselect:!0}),a(".uniform").uniform(),a("#validVal").validVal(),a("#cp1").colorpicker({format:"hex"}),a("#cp2").colorpicker(),a("#cp3").colorpicker(),a("#cp4").colorpicker().on("changeColor",function(b){a("#colorPickerBlock").css("background-color",b.color.toHex())}),a("#dp1").datepicker({format:"mm-dd-yyyy"}),a("#dp2").datepicker(),a("#dp3").datepicker(),a("#dp3").datepicker(),a("#dpYears").datepicker(),a("#dpMonths").datepicker();var b=new Date(2014,1,20),c=new Date(2014,1,25);a("#dp4").datepicker().on("changeDate",function(d){d.date.valueOf()>c.valueOf()?a("#alert").show().find("strong").text("The start date can not be greater then the end date"):(a("#alert").hide(),b=new Date(d.date),a("#startDate").text(a("#dp4").data("date"))),a("#dp4").datepicker("hide")}),a("#dp5").datepicker().on("changeDate",function(d){d.date.valueOf()<b.valueOf()?a("#alert").show().find("strong").text("The end date can not be less then the start date"):(a("#alert").hide(),c=new Date(d.date),a("#endDate").text(a("#dp5").data("date"))),a("#dp5").datepicker("hide")}),a("#reservation").daterangepicker(),a("#reportrange").daterangepicker({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")]}},function(b,c){a("#reportrange span").html(b.format("MMMM D, YYYY")+" - "+c.format("MMMM D, YYYY"))}),a("#datetimepicker4").datetimepicker({pickDate:!1}),a.each(a(".make-switch"),function(){a(this).bootstrapSwitch({onText:a(this).data("onText"),offText:a(this).data("offText"),onColor:a(this).data("onColor"),offColor:a(this).data("offColor"),size:a(this).data("size"),labelText:a(this).data("labelText")})})},Metis}(jQuery),function(a){"use strict";return Metis.formValidation=function(){a("#popup-validation").validationEngine(),a("#inline-validate").validate({rules:{required:"required",email:{required:!0,email:!0},date:{required:!0,date:!0},url:{required:!0,url:!0},password:{required:!0,minlength:5},confirm_password:{required:!0,minlength:5,equalTo:"#password"},agree:"required",minsize:{required:!0,minlength:3},maxsize:{required:!0,maxlength:6},minNum:{required:!0,min:3},maxNum:{required:!0,max:16}},errorClass:"help-block col-lg-6",errorElement:"span",highlight:function(b,c,d){a(b).parents(".form-group").removeClass("has-success").addClass("has-error")},unhighlight:function(b,c,d){a(b).parents(".form-group").removeClass("has-error").addClass("has-success")}}),a("#block-validate").validate({rules:{required2:"required",email2:{required:!0,email:!0},date2:{required:!0,date:!0},url2:{required:!0,url:!0},password2:{required:!0,minlength:5},confirm_password2:{required:!0,minlength:5,equalTo:"#password2"},agree2:"required",digits:{required:!0,digits:!0},range:{required:!0,range:[5,16]}},errorClass:"help-block",errorElement:"span",highlight:function(b,c,d){a(b).parents(".form-group").removeClass("has-success").addClass("has-error")},unhighlight:function(b,c,d){a(b).parents(".form-group").removeClass("has-error").addClass("has-success")}})},Metis}(jQuery),function(a,b){"use strict";return b.formWizard=function(){a("#fileUpload").uniform(),a("#uploader").pluploadQueue({runtimes:"html5,html4",url:"form-wysiwyg.html",max_file_size:"128kb",unique_names:!0,filters:[{title:"Image files",extensions:"jpg,gif,png"}]}),a("#wizardForm").formwizard({formPluginEnabled:!0,validationEnabled:!0,focusFirstInput:!0,formOptions:{beforeSubmit:function(b){return a.gritter.add({title:"data sent to the server",text:a.param(b),sticky:!1}),!1},dataType:"json",resetForm:!0},validationOptions:{rules:{server_host:"required",server_name:"required",server_user:"required",server_password:"required",table_prefix:"required",table_collation:"required",username:{required:!0,minlength:3},usermail:{required:!0,email:!0},pass:{required:!0,minlength:6},pass2:{required:!0,minlength:6,equalTo:"#pass"}},errorClass:"help-block",errorElement:"span",highlight:function(b,c,d){a(b).parents(".form-group").removeClass("has-success").addClass("has-error")},unhighlight:function(b,c,d){a(b).parents(".form-group").removeClass("has-error").addClass("has-success")}}})},b}(jQuery,Metis||{}),function(a){"use strict";return Metis.formWysiwyg=function(){a("#wysihtml5").wysihtml5();var b=Markdown.getSanitizingConverter(),c=new Markdown.Editor(b);c.run();var d={basePath:"//cdnjs.cloudflare.com/ajax/libs/epiceditor/0.2.2"};new EpicEditor(d).load()},Metis}(jQuery),function(a){"use strict";return Metis.MetisCalendar=function(){var b=new Date,c=(b.getDate(),b.getMonth(),b.getFullYear(),{});c=a(window).width()<=767?{left:"title",center:"month,agendaWeek,agendaDay",right:"prev,today,next"}:{left:"",center:"title",right:"prev,today,month,agendaWeek,agendaDay,next"};var d=function(b){var c={title:a.trim(b.text()),className:a.trim(b.children("span").attr("class"))};b.data("eventObject",c),b.draggable({zIndex:999,revert:!0,revertDuration:0})},e=function(b,c){b=0===b.length?"Untitled Event":b,c=0===c.length?"label label-default":c;var e=a('<li class="external-event"><span class="'+c+'">'+b+"</span></li>");jQuery("#external-events").append(e),d(e)};a("#external-events li.external-event").each(function(){d(a(this))}),a("#add-event").click(function(){var b=a("#title").val(),c=a("input:radio[name=priority]:checked").val();e(b,c)}),a("#calendar").fullCalendar({header:c,editable:!0,droppable:!0,drop:function(b){var c=a(this).data("eventObject"),d=a.extend({},c);d.start=b,a("#calendar").fullCalendar("renderEvent",d,!0),a("#drop-remove").is(":checked")&&a(this).remove()},windowResize:function(b,c){a("#calendar").fullCalendar("render")}})},Metis}(jQuery),function(a){"use strict";return Metis.MetisFile=function(){a("#elfinder").elfinder({url:"assets/elfinder-2.0-rc1/php/connector.php"}).elfinder("instance")},Metis}(jQuery),function(a){"use strict";return Metis.MetisMaps=function(){var b,c,d,e,f,g,h;b=new GMaps({el:"#gmaps-basic",lat:-12.043333,lng:-77.028333,zoomControl:!0,zoomControlOpt:{style:"SMALL",position:"TOP_LEFT"},panControl:!1,streetViewControl:!1,mapTypeControl:!1,overviewMapControl:!1}),c=new GMaps({el:"#gmaps-marker",lat:-12.043333,lng:-77.028333}),c.addMarker({lat:-12.043333,lng:-77.03,title:"Lima",details:{database_id:42,author:"HPNeo"},click:function(a){console.log&&console.log(a),alert("You clicked in this marker")},mouseover:function(a){console.log&&console.log(a)}}),c.addMarker({lat:-12.042,lng:-77.028333,title:"Marker with InfoWindow",infoWindow:{content:"<p>HTML Content</p>"}}),d=new GMaps({el:"#gmaps-geolocation",lat:-12.043333,lng:-77.028333}),GMaps.geolocate({success:function(a){d.setCenter(a.coords.latitude,a.coords.longitude)},error:function(a){alert("Geolocation failed: "+a.message)},not_supported:function(){alert("Your browser does not support geolocation")},always:function(){}}),e=new GMaps({el:"#gmaps-polylines",lat:-12.043333,lng:-77.028333,click:function(a){console.log(a)}}),g=[[-12.044012922866312,-77.02470665341184],[-12.05449279282314,-77.03024273281858],[-12.055122327623378,-77.03039293652341],[-12.075917129727586,-77.02764635449216],[-12.07635776902266,-77.02792530422971],[-12.076819390363665,-77.02893381481931],[-12.088527520066453,-77.0241058385925],[-12.090814532191756,-77.02271108990476]],e.drawPolyline({path:g,strokeColor:"#131540",strokeOpacity:.6,strokeWeight:6}),f=new GMaps({el:"#gmaps-route",lat:-12.043333,lng:-77.028333}),f.drawRoute({origin:[-12.044012922866312,-77.02470665341184],destination:[-12.090814532191756,-77.02271108990476],travelMode:"driving",strokeColor:"#131540",strokeOpacity:.6,strokeWeight:6}),h=new GMaps({el:"#gmaps-geocoding",lat:-12.043333,lng:-77.028333}),a("#geocoding_form").submit(function(b){b.preventDefault(),GMaps.geocode({address:a("#address").val().trim(),callback:function(a,b){if("OK"===b){var c=a[0].geometry.location;h.setCenter(c.lat(),c.lng()),h.addMarker({lat:c.lat(),lng:c.lng()})}}})})},Metis}(jQuery),function(a,b){if(a().sortable){var c=a(".inner [class*=col-]");return b.metisSortable=function(){c.sortable({placeholder:"ui-state-highlight"}).disableSelection()},b}}(jQuery,Metis||{}),function(a){"use strict";return Metis.MetisTable=function(){a(".sortableTable").tablesorter(),a("#dataTable").dataTable({})},Metis}(jQuery),function(a,b){"use strict";var c=function(a,b){a.removeClass("primary success danger warning info default").addClass(b)};return b.MetisPricing=function(){var d=a("ul.dark li.active"),e=a("ul#light li.active");a("#dark-toggle label").on(b.buttonPressedEvent,function(){var b=a(this);c(d,b.find("input").val())}),a("#light-toggle label").on(b.buttonPressedEvent,function(){var b=a(this);c(e,b.find("input").val())})},b}(jQuery,Metis||{}),function(a,b){return b.MetisProgress=function(){var b=a(".progress .progress-bar");a.each(b,function(){var b=a(this);b.animate({width:a(this).attr("aria-valuenow")+"%"}).popover({placement:"bottom",title:"Source",content:this.outerHTML})})},b}(jQuery,Metis);
//# sourceMappingURL=app.js.map
Zerion Mini Shell 1.0