first commit
This commit is contained in:
1
assets/scripts/cells-by-row.min.js
vendored
Normal file
1
assets/scripts/cells-by-row.min.js
vendored
Normal file
@ -0,0 +1 @@
|
||||
!function(e){"use strict";function n(e){var n=e.create("cellsByRow");return n.prototype._resetLayout=function(){this.itemIndex=0,this.getColumnWidth(),this.getRowHeight(),this.cols=Math.floor(this.isotope.size.innerWidth/this.columnWidth),this.cols=Math.max(this.cols,1)},n.prototype._getItemLayoutPosition=function(e){e.getSize();var n=this.itemIndex%this.cols,t=Math.floor(this.itemIndex/this.cols),o=(n+.5)*this.columnWidth-e.size.outerWidth/2,s=(t+.5)*this.rowHeight-e.size.outerHeight/2;return this.itemIndex++,{x:o,y:s}},n.prototype._getContainerSize=function(){return{height:Math.ceil(this.itemIndex/this.cols)*this.rowHeight}},n}"function"==typeof define&&define.amd?define(["isotope/js/layout-mode"],n):"object"==typeof exports?module.exports=n(require("isotope-layout/js/layout-mode")):n(e.Isotope.LayoutMode)}(window);
|
||||
1
assets/scripts/chart.chartist.init.min.js
vendored
Normal file
1
assets/scripts/chart.chartist.init.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
1
assets/scripts/chart.chartjs.init.min.js
vendored
Normal file
1
assets/scripts/chart.chartjs.init.min.js
vendored
Normal file
@ -0,0 +1 @@
|
||||
!function(e){"use strict";var t={},r=function(){return Math.round(15*Math.random())+5};e(document).ready(function(){return e("#bar-chartjs-chart").length&&t.bar("bar-chartjs-chart","top","bar"),e("#horizontal-bar-chartjs-chart").length&&t.bar("horizontal-bar-chartjs-chart","right","horizontalBar"),e("#line-chartjs-chart").length&&t.line("line-chartjs-chart",!1),e("#area-chartjs-chart").length&&t.line("area-chartjs-chart",!0),e("#pie-chartjs-chart").length&&t.pie("pie-chartjs-chart","pie"),e("#donut-chartjs-chart").length&&t.pie("donut-chartjs-chart","doughnut"),e("#polar-chartjs-chart").length&&t.polar("polar-chartjs-chart"),e("#radar-chartjs-chart").length&&t.radar("radar-chartjs-chart"),!1}),t={bar:function(e,t,i){var o={labels:["January","February","March","April"],datasets:[{label:"Dataset 1",backgroundColor:"rgba(249,200,81,0.3)",borderColor:"rgb(249, 200, 81)",borderWidth:1,hoverBackgroundColor:"rgba(249,200,81,0.6)",hoverBorderColor:"rgb(249, 200, 81)",data:[r(),r(),r(),r()]},{label:"Dataset 2",backgroundColor:"rgba(127, 193, 252, 0.3)",borderColor:"#7fc1fc",borderWidth:1,hoverBackgroundColor:"rgba(127, 193, 252, 0.6)",hoverBorderColor:"#7fc1fc",data:[r(),r(),r(),r()]},{label:"Dataset 3",backgroundColor:"rgba(245,112,122,0.3)",borderColor:"#f5707a",borderWidth:1,hoverBackgroundColor:"rgba(245,112,122,0.6)",hoverBorderColor:"#f5707a",data:[r(),r(),r(),r()]}]},a=document.getElementById(e).getContext("2d");return new Chart(a,{type:i,data:o,options:{hover:{mode:"label"},responsive:!0,legend:{position:t},scales:{xAxes:[{ticks:{beginAtZero:!0}}],yAxes:[{ticks:{beginAtZero:!0}}]}}}),!1},line:function(e,t){var i={labels:["0","1","2","3","4","5","6","7","8","9","10"],datasets:[{label:"Series 1",fill:t,borderColor:"rgba(245,112,122,1)",pointBackgroundColor:"rgb(245,112,122)",backgroundColor:"rgba(245,112,122,0.3)",data:[r(),r(),r(),r(),r(),r(),r(),r(),r(),r(),r()]}]},o=document.getElementById(e).getContext("2d");return new Chart(o,{type:"line",data:i,options:{hover:{mode:"label"},responsive:!0,scales:{xAxes:[{ticks:{beginAtZero:!0}}],yAxes:[{ticks:{beginAtZero:!0}}]}}}),!1},pie:function(e,t){var i=document.getElementById(e).getContext("2d"),o={type:t,data:{datasets:[{data:[r(),r(),r()],backgroundColor:["#f9c851","#3ac9d6","#ebeff2"],hoverBackgroundColor:["#f9c851","#3ac9d6","#ebeff2"],hoverBorderColor:"#fff"}],labels:["Red","Green","Yellow"]},options:{responsive:!0}};return new Chart(i,o),!1},polar:function(e){var t=document.getElementById(e).getContext("2d"),i={data:{datasets:[{data:[r(),r(),r(),r()],backgroundColor:["#f5707a","#188ae2","#4bd396","#8d6e63"],label:"My dataset"}],labels:["Red","Blue","Green","Grey"]},options:{responsive:!0,legend:{position:"top"},scale:{ticks:{beginAtZero:!0},reverse:!1},animation:{animateRotate:!1,animateScale:!0}}};return new Chart.PolarArea(t,i),!1},radar:function(e){var t=document.getElementById(e).getContext("2d"),i={type:"radar",data:{labels:["Eating","Drinking","Sleeping","Designing","Coding","Cycling","Running"],datasets:[{label:"Peter",backgroundColor:"rgba(179,181,198,0.2)",borderColor:"rgba(179,181,198,1)",pointBackgroundColor:"rgba(179,181,198,1)",pointBorderColor:"#fff",pointHoverBackgroundColor:"#fff",pointHoverBorderColor:"rgba(179,181,198,1)",data:[r(),r(),r(),r(),r(),r(),r()]},{label:"John",backgroundColor:"rgba(255,99,132,0.2)",borderColor:"rgba(255,99,132,1)",pointBackgroundColor:"rgba(255,99,132,1)",pointBorderColor:"#fff",pointHoverBackgroundColor:"#fff",pointHoverBorderColor:"rgba(255,99,132,1)",data:[r(),r(),r(),r(),r(),r(),r()]}]},options:{legend:{position:"top"},scale:{reverse:!1,gridLines:{color:["black","red","orange","yellow","green","blue","indigo","violet"]},ticks:{beginAtZero:!0}}}};return new Chart(t,i),!1}}}(jQuery);
|
||||
1
assets/scripts/chart.flot.init.min.js
vendored
Normal file
1
assets/scripts/chart.flot.init.min.js
vendored
Normal file
@ -0,0 +1 @@
|
||||
!function(e){"use strict";function t(e,t){return"<div style='font-size:8pt; text-align:center; padding:2px; color:white;'>"+e+"<br/>"+Math.round(t.percent)+"%</div>"}var a={};e(document).ready(function(){return e("#real-time-flot-chart").length&&a.module.realtime.init(),e("#categories-flot-chart").length&&a.module.categories.init(),e("#pile-flot-chart").length&&a.module.pile.init(),e("#donut-flot-chart").length&&a.module.donut.init(),e("#lines-flot-chart").length&&a.module.lines.init(),!1}),e(window).on("resize",function(){return e("#real-time-flot-chart").length&&a.module.realtime.init(),e("#categories-flot-chart").length&&a.module.categories.init(),e("#pile-flot-chart").length&&a.module.pile.init(),e("#donut-flot-chart").length&&a.module.donut.init(),e("#lines-flot-chart").length&&a.module.lines.init(),!1}),a.module={categories:{container:"#categories-flot-chart",data:[["January",10],["February",8],["March",4],["April",13],["May",17],["June",9]],init:function(){return e.plot(a.module.categories.container,[a.module.categories.data],{colors:["#f9c851"],series:{bars:{show:!0,barWidth:.6,align:"center"}},xaxis:{mode:"categories",tickLength:0}}),!1}},donut:{container:"#donut-flot-chart",data:[{label:"Series 1",data:50},{label:"Series 2",data:60},{label:"Series 3",data:90},{label:"Series 4",data:70},{label:"Series 5",data:80}],init:function(){return e.plot(a.module.donut.container,a.module.donut.data,{tooltip:!0,tooltipOpts:{content:"%s, %p.0%"},series:{pie:{show:!0,innerRadius:.5}},grid:{hoverable:!0},colors:["#03a9f4","#01ba9a","#dcdcdc","#6c85bd","#f8ca4e"],legend:{show:!0,labelFormatter:function(e){return'<div style="font-size:14px;"> '+e+"</div>"},labelBoxBorderColor:null,margin:20,width:20,padding:1}}),!1}},lines:{container:"#lines-flot-chart",data:[[[0,14],[1,20],[2,23],[3,20],[4,24],[5,18],[6,27],[7,24],[8,16],[9,26],[10,25]],[[0,4],[1,10],[2,2],[3,17],[4,25],[5,17],[6,22],[7,22],[8,18],[9,11],[10,20]]],init:function(){return e.plot(a.module.lines.container,a.module.lines.data,{colors:["#6e8cd7","#03a9f4"],series:{lines:{show:!0,fill:!0,lineWidth:1,fillColor:{colors:[{opacity:.5},{opacity:.5}]}},points:{show:!0},shadowSize:0},legend:{position:"nw"},grid:{hoverable:!0,clickable:!0,borderColor:"#efefef",borderWidth:1,labelMargin:10,backgroundColor:"#fff"},yaxis:{min:0,max:40,color:"rgba(0,0,0,0.1)"},xaxis:{color:"rgba(0,0,0,0.1)"},tooltip:!0,tooltipOpts:{content:"%s: Value of %x is %y",shifts:{x:-60,y:25},defaultTheme:!1}}),!1}},pile:{container:"#pile-flot-chart",data:[{label:"Series 1",data:30},{label:"Series 2",data:30},{label:"Series 3",data:90},{label:"Series 4",data:70}],init:function(){return e.plot(a.module.pile.container,a.module.pile.data,{series:{pie:{show:!0,radius:1,label:{show:!0,radius:.75,formatter:t,background:{opacity:.5}}}},grid:{hoverable:!0},legend:{show:!1},colors:["#03a9f4","#01ba9a","#dcdcdc","#6c85bd"]}),!1}},realtime:{container:e("#real-time-flot-chart"),maximum:0,data:[],series:[],plot:{},init:function(){return a.module.realtime.maximum=a.module.realtime.container.outerWidth()/2||300,a.module.realtime.series=[{data:a.func.getRandomData(),lines:{fill:!0,lineWidth:1,fillColor:{colors:[{opacity:.45},{opacity:.45}]}},points:{show:!1},shadowSize:0}],a.module.realtime.plot=e.plot(a.module.realtime.container,a.module.realtime.series,{colors:["#03a9f4"],grid:{show:!0,aboveData:!1,color:"#dcdcdc",labelMargin:15,axisMargin:0,borderWidth:0,borderColor:null,minBorderMargin:5,clickable:!0,hoverable:!0,autoHighlight:!1,mouseActiveRadius:20},yaxis:{min:0,max:150,color:"rgba(0,0,0,0.1)"},xaxis:{show:!1},legend:{show:!0}}),setInterval(function(){a.module.realtime.series[0].data=a.func.getRandomData(),a.module.realtime.plot.setData(a.module.realtime.series),a.module.realtime.plot.draw()},40),!1}}},a.func={getRandomData:function(){for(a.module.realtime.data.length&&(a.module.realtime.data=a.module.realtime.data.slice(1));a.module.realtime.data.length<a.module.realtime.maximum;){var e=a.module.realtime.data.length?a.module.realtime.data[a.module.realtime.data.length-1]:50,t=e+10*Math.random()-5;a.module.realtime.data.push(t<0?0:t>100?100:t)}for(var l=[],o=0;o<a.module.realtime.data.length;++o)l.push([o,a.module.realtime.data[o]]);return l}}}(jQuery);
|
||||
1
assets/scripts/chart.highcharts.init.min.js
vendored
Normal file
1
assets/scripts/chart.highcharts.init.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
1
assets/scripts/chart.morris.init.min.js
vendored
Normal file
1
assets/scripts/chart.morris.init.min.js
vendored
Normal file
@ -0,0 +1 @@
|
||||
!function(e){"use strict";var t,o={};e(document).ready(function(){return e("#area-morris-chart").length&&o.area.init(),e("#bar-morris-chart").length&&o.bar.init(),e("#donut-morris-chart").length&&o.donut.init(),e("#lines-morris-chart").length&&o.lines.init(),e("#realtime-morris-chart").length&&o.realtime.init(),e("#stack-morris-chart").length&&o.stack.init(),e("#realtime-morris-chart").length&&setInterval(function(){o.realtime.update()},500),!1}),e(window).on("resize",function(){return e("#area-morris-chart").length&&o.area.update(),e("#bar-morris-chart").length&&o.bar.update(),e("#donut-morris-chart").length&&o.donut.update(),e("#lines-morris-chart").length&&o.lines.update(),e("#stack-morris-chart").length&&o.stack.update(),!1}),o={area:{graph:null,data:[{x:"2010",y:10,z:10},{x:"2011",y:9,z:8},{x:"2012",y:9,z:11},{x:"2013",y:13,z:10},{x:"2014",y:15,z:13},{x:"2015",y:12,z:14},{x:"2016",y:13,z:18}],init:function(){return o.area.graph=Morris.Area({element:"area-morris-chart",data:o.area.data,xkey:"x",ykeys:["y","z"],labels:["Sales","Salary"],pointSize:0,pointStrokeColors:["#fcb03b","#ea65a2"],behaveLikeLine:!0,gridLineColor:"#eee",lineWidth:0,smooth:!0,hideHover:"auto",lineColors:["#fcb03b","#ea65a2"],resize:!0,gridTextColor:"#2f2c2c"}),!1},update:function(){return o.area.graph.setData(o.area.data),!1}},bar:{graph:null,data:[{x:"2010",y:10,z:17,a:9},{x:"2011",y:5,z:14,a:13},{x:"2012",y:5,z:13,a:12},{x:"2013",y:6,z:12,a:5},{x:"2014",y:17,z:8,a:8},{x:"2015",y:10,z:14,a:18},{x:"2016",y:8,z:17,a:14}],init:function(){return Morris.Bar({element:"bar-morris-chart",behaveLikeLine:!0,data:o.bar.data,barColors:["#fcb03b","#ea65a2","#566FC9"],xkey:"x",ykeys:["y","z","a"],labels:["Series A","Series B","Series C"]}),!1},update:function(){return o.bar.graph.setData(o.bar.data),!1}},donut:{graph:null,data:[{value:40,label:"Series A"},{value:20,label:"Series B"},{value:30,label:"Series C"}],init:function(){return Morris.Donut({element:"donut-morris-chart",data:o.donut.data,colors:["#fcb03b","#ea65a2","#566FC9"],resize:!0,labelColor:"#2f2c2c",formatter:function(e){return e+"%"}}),!1},update:function(){return o.donut.graph.setData(o.donut.data),!1}},lines:{graph:null,data:[{x:"2010",y:10,z:17},{x:"2011",y:5,z:14},{x:"2012",y:5,z:13},{x:"2013",y:6,z:12},{x:"2014",y:17,z:8},{x:"2015",y:10,z:14},{x:"2016",y:8,z:17}],init:function(){return Morris.Line({element:"lines-morris-chart",data:o.lines.data,xkey:"x",ykeys:["y","z"],labels:["Upload","Download"],lineColors:["#fcb03b","#ea65a2"],pointSize:1,pointStrokeColors:["#fcb03b"],behaveLikeLine:!0,gridLineColor:"#eee",gridTextColor:"#2f2c2c",lineWidth:2,smooth:!0,hideHover:"auto",resize:!0}),!1},update:function(){return o.lines.graph.setData(o.lines.data),!1}},realtime:{data:[{x:"0",y:10},{x:"1",y:5},{x:"2",y:5},{x:"3",y:6},{x:"4",y:17},{x:"5",y:10},{x:"6",y:12},{x:"7",y:15},{x:"8",y:9},{x:"9",y:6},{x:"10",y:15},{x:"11",y:14},{x:"12",y:5},{x:"13",y:12},{x:"14",y:16},{x:"15",y:5},{x:"16",y:10},{x:"17",y:8},{x:"18",y:8},{x:"19",y:8},{x:"20",y:6}],init:function(){return t=Morris.Line({element:"realtime-morris-chart",data:o.realtime.data,xkey:"x",ykeys:["y"],axes:"y",labels:["Visitors Online"],parseTime:!1,pointSize:1,pointStrokeColors:["#fcb03b"],behaveLikeLine:!0,gridLineColor:"#eee",gridTextColor:"#2f2c2c",lineWidth:2,smooth:!0,hideHover:"auto",lineColors:["#fcb03b"],resize:!0}),!1},update:function(){var e,n=Math.floor(20*Math.random()+1);for(e=0;e<o.realtime.data.length-1;e++)o.realtime.data[e].y=o.realtime.data[e+1].y;return o.realtime.data[o.realtime.data.length-1].y=n,t.setData(o.realtime.data),!1}},stack:{graph:null,data:[{x:"2010",y:10,z:17},{x:"2011",y:5,z:14},{x:"2012",y:5,z:13},{x:"2013",y:6,z:12},{x:"2014",y:17,z:8},{x:"2015",y:10,z:14},{x:"2016",y:8,z:17}],init:function(){return Morris.Bar({element:"stack-morris-chart",behaveLikeLine:!0,data:o.stack.data,xkey:"x",ykeys:["y","z"],labels:["Series A","Series B"],stacked:!0,barColors:["#ea65a2","#566FC9"]}),!1},update:function(){return o.stack.graph.setData(o.stack.data),!1}}}}(jQuery);
|
||||
1
assets/scripts/chart.sparkline.init.min.js
vendored
Normal file
1
assets/scripts/chart.sparkline.init.min.js
vendored
Normal file
@ -0,0 +1 @@
|
||||
!function(r){"use strict";var i={};r(document).ready(function(){return i.traffic(),i.bar(),i.pie(),!1}),i={traffic:function(){return r("#traffic-sparkline-chart-1").sparkline("html",{width:"100",height:"35",lineColor:"#4d8cf4",fillColor:!1,spotColor:!1,minSpotColor:!1,maxSpotColor:!1,lineWidth:1.15}),r("#traffic-sparkline-chart-1").sparkline([0,5,3,7,5,10,3,6,5,10],{width:"100",height:"35",lineColor:"#4d8cf4",fillColor:!1,spotColor:!1,minSpotColor:!1,maxSpotColor:!1,lineWidth:1.15}),r("#traffic-sparkline-chart-2").sparkline([1,2,3,4,5,6,7,8,10,12,14],{type:"bar",height:"35",width:"80",barWidth:"5",barColor:"#00bf4f"}),r("#traffic-sparkline-chart-3").sparkline([5,5,6,6,7,7,6,6,7,7,8,8,7,7,8,8,9,9,8,8,9,9,10,10],{type:"discrete",width:"80",height:"65",resize:!0,lineColor:"#ff1744"}),r("#traffic-sparkline-chart-3-custom").sparkline([5,5,6,6,7,7,6,6,7,7,8,8,7,7,8,8,9,9,8,8,9,9,10,10],{type:"discrete",width:"80",height:"65",resize:!0,lineColor:"#ff460b"}),!1},bar:function(){return r("#bar-sparkline-chart").sparkline([5,6,2,8,9,4,7,10,11,12,10,9,4,7],{type:"bar",height:"200",barWidth:"10",resize:!0,barSpacing:"7",barColor:"#00aeff"}),r("#bar-sparkline-chart").sparkline([5,6,2,8,9,4,7,10,11,12,10,9,4,7],{type:"line",height:"200",lineColor:"#00aeff",fillColor:"transparent",composite:!0,highlightLineColor:"rgba(0,0,0,.1)",highlightSpotColor:"rgba(0,0,0,.2)"}),!1},pie:function(){return r("#pie-sparkline-chart").sparkline([50,70,60],{type:"pie",width:"200",height:"200",resize:!0,sliceColors:["#fcb03b","#ea65a2","#566FC9"]}),!1}}}(jQuery);
|
||||
1
assets/scripts/datatables.demo.min.js
vendored
Normal file
1
assets/scripts/datatables.demo.min.js
vendored
Normal file
@ -0,0 +1 @@
|
||||
!function(e){"use strict";if(e("#example").length&&e("#example").DataTable(),e("#example-scroll-y").length&&e("#example-scroll-y").DataTable({scrollY:"200px",scrollCollapse:!0,paging:!1}),e("#example-row-grouping").length){var a=e("#example-row-grouping").DataTable({columnDefs:[{visible:!1,targets:2}],order:[[2,"asc"]],displayLength:25,drawCallback:function(){var a=this.api(),t=a.rows({page:"current"}).nodes(),r=null;a.column(2,{page:"current"}).data().each(function(a,i){r!==a&&(e(t).eq(i).before('<tr class="group"><td colspan="5">'+a+"</td></tr>"),r=a)})}});e("#example-row-grouping tbody").on("click","tr.group",function(){var e=a.order()[0];return 2===e[0]&&"asc"===e[1]?a.order([2,"desc"]).draw():a.order([2,"asc"]).draw(),!1})}e("#example-edit").length&&(e("#example-edit").DataTable(),e("#example-edit").editableTableWidget())}(jQuery);
|
||||
1
assets/scripts/fileUpload.demo.min.js
vendored
Normal file
1
assets/scripts/fileUpload.demo.min.js
vendored
Normal file
@ -0,0 +1 @@
|
||||
!function(r){"use strict";r(".dropify").dropify()}(jQuery);
|
||||
1
assets/scripts/form.demo.min.js
vendored
Normal file
1
assets/scripts/form.demo.min.js
vendored
Normal file
@ -0,0 +1 @@
|
||||
!function(e){"use strict";e(".flexdatalist").length&&e(".flexdatalist").flexdatalist(),e("#popover-1").length&&e("#popover-1").popSelect({showTitle:!1,maxAllowed:2}),e("#popover-2").length&&e("#popover-2").popSelect({showTitle:!1,placeholderText:"Click to Add More",position:"bottom"}),e(".select2_1").length&&e(".select2_1").select2(),e(".select2_2").length&&e(".select2_2").select2({tags:!0}),e(".multiselect").length&&e(".multiselect").multiselect(),e("#search").length&&e("#search").multiselect({search:{left:'<input type="text" name="q" class="form-control" placeholder="Search..." />',right:'<input type="text" name="q" class="form-control" placeholder="Search..." />'}}),e("input[name='demo1']").length&&e("input[name='demo1']").TouchSpin({min:0,max:100,step:.1,decimals:2,boostat:5,maxboostedstep:10,postfix:"%"}),e("input[name='demo2']").length&&e("input[name='demo2']").TouchSpin({min:-1e9,max:1e9,stepinterval:50,maxboostedstep:1e7,prefix:"$"}),e("input[name='demo_vertical']").length&&e("input[name='demo_vertical']").TouchSpin({verticalbuttons:!0}),e("input[name='demo_vertical2']").length&&e("input[name='demo_vertical2']").TouchSpin({verticalbuttons:!0,verticalupclass:"glyphicon glyphicon-plus",verticaldownclass:"glyphicon glyphicon-minus"}),e("input[name='demo5']").length&&e("input[name='demo5']").TouchSpin({prefix:"pre",postfix:"post"}),e("#timepicker").length&&e("#timepicker").timepicker({defaultTIme:!1}),e("#timepicker2").length&&e("#timepicker2").timepicker({showMeridian:!1}),e("#timepicker3").length&&e("#timepicker3").timepicker({minuteStep:15}),e(".colorpicker-default").length&&e(".colorpicker-default").colorpicker({format:"hex"}),e(".colorpicker-rgba").length&&e(".colorpicker-rgba").colorpicker(),e("#datepicker").length&&e("#datepicker").datepicker(),e("#datepicker-autoclose").length&&e("#datepicker-autoclose").datepicker({autoclose:!0,todayHighlight:!0}),e("#datepicker-inline").length&&e("#datepicker-inline").datepicker(),e("#datepicker-multiple-date").length&&e("#datepicker-multiple-date").datepicker({format:"mm/dd/yyyy",clearBtn:!0,multidate:!0,multidateSeparator:","}),e("#date-range").length&&e("#date-range").datepicker({toggleActive:!0}),e(".input-daterange-datepicker").length&&e(".input-daterange-datepicker").daterangepicker({buttonClasses:["btn","btn-sm"],applyClass:"btn-default",cancelClass:"btn-primary"}),e(".input-daterange-timepicker").length&&e(".input-daterange-timepicker").daterangepicker({timePicker:!0,format:"MM/DD/YYYY h:mm A",timePickerIncrement:30,timePicker12Hour:!0,timePickerSeconds:!1,buttonClasses:["btn","btn-sm"],applyClass:"btn-default",cancelClass:"btn-primary"}),e(".input-limit-datepicker").length&&e(".input-limit-datepicker").daterangepicker({format:"MM/DD/YYYY",minDate:"06/01/2016",maxDate:"06/30/2016",buttonClasses:["btn","btn-sm"],applyClass:"btn-default",cancelClass:"btn-primary",dateLimit:{days:6}}),e("#reportrange").length&&(e("#reportrange span").html(moment().subtract(29,"days").format("MMMM D, YYYY")+" - "+moment().format("MMMM D, YYYY")),e("#reportrange").daterangepicker({format:"MM/DD/YYYY",startDate:moment().subtract(29,"days"),endDate:moment(),minDate:"01/01/2016",maxDate:"12/31/2016",dateLimit:{days:60},showDropdowns:!0,showWeekNumbers:!0,timePicker:!1,timePickerIncrement:1,timePicker12Hour:!0,ranges:{Today:[moment(),moment()],Yesterday:[moment().subtract(1,"days"),moment().subtract(1,"days")],"Last 7 Days":[moment().subtract(6,"days"),moment()],"Last 30 Days":[moment().subtract(29,"days"),moment()],"This Month":[moment().startOf("month"),moment().endOf("month")],"Last Month":[moment().subtract(1,"month").startOf("month"),moment().subtract(1,"month").endOf("month")]},opens:"left",drops:"down",buttonClasses:["btn","btn-sm"],applyClass:"btn-success",cancelClass:"btn-default",separator:" to ",locale:{applyLabel:"Submit",cancelLabel:"Cancel",fromLabel:"From",toLabel:"To",customRangeLabel:"Custom",daysOfWeek:["Su","Mo","Tu","We","Th","Fr","Sa"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],firstDay:1}},function(a,t,r){console.log(a.toISOString(),t.toISOString(),r),e("#reportrange span").html(a.format("MMMM D, YYYY")+" - "+t.format("MMMM D, YYYY"))})),e("input#defaultconfig").length&&e("input#defaultconfig").maxlength(),e("input#thresholdconfig").length&&e("input#thresholdconfig").maxlength({threshold:20}),e("input#moreoptions").length&&e("input#moreoptions").maxlength({alwaysShow:!0,warningClass:"label label-success",limitReachedClass:"label label-danger"}),e("input#alloptions").length&&e("input#alloptions").maxlength({alwaysShow:!0,warningClass:"label label-success",limitReachedClass:"label label-danger",separator:" out of ",preText:"You typed ",postText:" chars available.",validate:!0}),e("textarea#textarea").length&&e("textarea#textarea").maxlength({alwaysShow:!0}),e("input#placement").length&&e("input#placement").maxlength({alwaysShow:!0,placement:"top-left"})}(jQuery);
|
||||
1
assets/scripts/form.wizard.init.min.js
vendored
Normal file
1
assets/scripts/form.wizard.init.min.js
vendored
Normal file
@ -0,0 +1 @@
|
||||
!function(r){"use strict";if(r("#rootwizard").length&&r("#rootwizard").bootstrapWizard(),r("#rootwizard-pill").length&&r("#rootwizard-pill").bootstrapWizard({tabClass:"nav nav-tabs"}),r("#rootwizard-progress").length&&r("#rootwizard-progress").bootstrapWizard({tabClass:"nav nav-pills",debug:!1,onTabShow:function(a,t,i){var o=t.find("li").length,e=i+1,n=e/o*100;r("#rootwizard-progress").find(".bar").css({width:n+"%"})}}),r("#tabsleft").length){var a=r("#commentForm").validate({rules:{emailfield:{required:!0,email:!0,minlength:3},namefield:{required:!0,minlength:3},urlfield:{required:!0,minlength:3,url:!0}}});r("#tabsleft").bootstrapWizard({tabClass:"nav nav-tabs",onNext:function(){var t=r("#commentForm").valid();return t?void 0:(a.focusInvalid(),!1)}})}}(jQuery);
|
||||
193
assets/scripts/fullcalendar.init.js
Normal file
193
assets/scripts/fullcalendar.init.js
Normal file
@ -0,0 +1,193 @@
|
||||
/**
|
||||
* Theme: Ninja Admin Template
|
||||
* Author: NinjaTeam
|
||||
* Module/App: Full Calendar
|
||||
*/
|
||||
(function($) {
|
||||
"use strict";
|
||||
|
||||
$(document).ready(function() {
|
||||
|
||||
|
||||
/* initialize the calendar
|
||||
-----------------------------------------------------------------*/
|
||||
|
||||
if ($('#calendar').length){
|
||||
var todayDate = moment().startOf('day');
|
||||
var YM = todayDate.format('YYYY-MM');
|
||||
var YESTERDAY = todayDate.clone().subtract(1, 'day').format('YYYY-MM-DD');
|
||||
var TODAY = todayDate.format('YYYY-MM-DD');
|
||||
var TOMORROW = todayDate.clone().add(1, 'day').format('YYYY-MM-DD');
|
||||
$('#calendar').fullCalendar({
|
||||
header: {
|
||||
left: 'prev,next today',
|
||||
center: 'title',
|
||||
right: 'month,agendaWeek,agendaDay,list'
|
||||
},
|
||||
buttonIcons: {
|
||||
prev: 'none fa fa-angle-left',
|
||||
next: 'none fa fa-angle-right',
|
||||
prevYear: 'none fa fa-angle-left',
|
||||
nextYear: 'none fa fa-angle-right'
|
||||
},
|
||||
editable: true,
|
||||
eventLimit: true, // allow "more" link when too many events
|
||||
navLinks: true,
|
||||
droppable: true, // this allows things to be dropped onto the calendar
|
||||
drop: function(date, allDay) {
|
||||
var originalEventObject = $(this).data('eventObject');
|
||||
var valueArray = ($(this).attr('class')).split(" ");
|
||||
var thisClass;
|
||||
for(var i=0; i<valueArray.length; i++){
|
||||
if (valueArray[i].search("bg") > -1){
|
||||
thisClass = valueArray[i];
|
||||
}
|
||||
}
|
||||
var copiedEventObject = $.extend({}, originalEventObject);
|
||||
copiedEventObject.start = date;
|
||||
copiedEventObject.className = thisClass;
|
||||
$('#calendar').fullCalendar('renderEvent', copiedEventObject, true);
|
||||
// is the "remove after drop" checkbox checked?
|
||||
if ($('#drop-remove').is(':checked')) {
|
||||
// if so, remove the element from the "Draggable Events" list
|
||||
$(this).remove();
|
||||
}
|
||||
},
|
||||
events: [
|
||||
{
|
||||
title: 'All Day Event',
|
||||
start: YM + '-01',
|
||||
className: 'bg-success'
|
||||
},
|
||||
{
|
||||
title: 'Long Event',
|
||||
start: YM + '-07',
|
||||
end: YM + '-10'
|
||||
},
|
||||
{
|
||||
id: 999,
|
||||
title: 'Repeating Event',
|
||||
start: YM + '-09T16:00:00',
|
||||
className: 'bg-danger'
|
||||
},
|
||||
{
|
||||
id: 999,
|
||||
title: 'Repeating Event',
|
||||
start: YM + '-16T16:00:00',
|
||||
className: 'bg-danger'
|
||||
},
|
||||
{
|
||||
title: 'Conference',
|
||||
start: YESTERDAY,
|
||||
end: TOMORROW,
|
||||
className: 'bg-warning'
|
||||
},
|
||||
{
|
||||
title: 'Meeting',
|
||||
start: TODAY + 'T10:30:00',
|
||||
end: TODAY + 'T12:30:00',
|
||||
className: 'bg-success'
|
||||
},
|
||||
{
|
||||
title: 'Lunch',
|
||||
start: TODAY + 'T12:00:00',
|
||||
className: 'bg-info'
|
||||
},
|
||||
{
|
||||
title: 'Meeting',
|
||||
start: TODAY + 'T14:30:00',
|
||||
className: 'bg-success'
|
||||
},
|
||||
{
|
||||
title: 'Happy Hour',
|
||||
start: TODAY + 'T17:30:00',
|
||||
className: 'bg-info'
|
||||
},
|
||||
{
|
||||
title: 'Dinner',
|
||||
start: TODAY + 'T20:00:00',
|
||||
className: 'bg-success'
|
||||
},
|
||||
{
|
||||
title: 'Birthday Party',
|
||||
start: TOMORROW + 'T07:00:00',
|
||||
className: 'bg-orange'
|
||||
},
|
||||
{
|
||||
title: 'Click for Google',
|
||||
url: 'http://google.com/',
|
||||
start: YM + '-28'
|
||||
}
|
||||
]
|
||||
});
|
||||
$('#external-events .fc-event').each(function () {
|
||||
// create an Event Object (http://arshaw.com/fullcalendar/docs/event_data/Event_Object/)
|
||||
// it doesn't need to have a start or end
|
||||
var eventObject = {
|
||||
title: $.trim($(this).text()) // use the element's text as the event title
|
||||
};
|
||||
// store the Event Object in the DOM element so we can get to it later
|
||||
$(this).data('eventObject', eventObject);
|
||||
// make the event draggable using jQuery UI
|
||||
$(this).draggable({
|
||||
zIndex: 999,
|
||||
revert: true, // will cause the event to go back to its
|
||||
revertDuration: 0 // original position after the drag
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
if ($("#calendar-widget").length){
|
||||
$('#calendar-widget').fullCalendar({
|
||||
height: 470,
|
||||
header: {
|
||||
left: 'prev,next',
|
||||
center: 'title',
|
||||
right: 'month,agendaWeek,agendaDay'
|
||||
},
|
||||
buttonIcons: {
|
||||
prev: 'none fa fa-angle-left',
|
||||
next: 'none fa fa-angle-right',
|
||||
prevYear: 'none fa fa-angle-left',
|
||||
nextYear: 'none fa fa-angle-right'
|
||||
},
|
||||
editable: true,
|
||||
defaultDate: '2016-10-11',
|
||||
events: [
|
||||
{
|
||||
title: 'Birthday',
|
||||
start: '2016-10-11',
|
||||
className: 'bg-success'
|
||||
},
|
||||
{
|
||||
title: 'NinjaTeam Events',
|
||||
start: '2016-10-16',
|
||||
end: '2016-10-18',
|
||||
className: 'bg-primary'
|
||||
},
|
||||
{
|
||||
title: 'Meeting',
|
||||
start: '2016-10-13',
|
||||
end: '2016-10-14',
|
||||
className: 'bg-danger'
|
||||
},
|
||||
{
|
||||
title: 'Events Group',
|
||||
start: '2016-10-03',
|
||||
end: '2016-10-04',
|
||||
className: 'bg-warning'
|
||||
},
|
||||
{
|
||||
title: 'Group',
|
||||
start: '2016-10-28',
|
||||
end: '2016-10-29',
|
||||
className: 'bg-violet'
|
||||
},
|
||||
]
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
});
|
||||
|
||||
})(jQuery);
|
||||
1
assets/scripts/ion.rangeSlider.init.min.js
vendored
Normal file
1
assets/scripts/ion.rangeSlider.init.min.js
vendored
Normal file
@ -0,0 +1 @@
|
||||
!function(e){"use strict";var a={};e(document).ready(function(){return e("#ion-range-01").length&&a["default"](),e("#ion-range-02").length&&a.minMax(),e("#ion-range-03").length&&a.prefix(),e("#ion-range-04").length&&a.negative(),e("#ion-range-05").length&&a.step(),e("#ion-range-06").length&&a.fractional(),e("#ion-range-07").length&&a.arrayNumber(),e("#ion-range-08").length&&a.arrayStringNumber(),e("#ion-range-09").length&&a.arrayStringMonth(),!1}),a={"default":function(){return e("#ion-range-01").ionRangeSlider(),!1},minMax:function(){return e("#ion-range-02").ionRangeSlider({min:100,max:1e3,from:550}),!1},prefix:function(){return e("#ion-range-03").ionRangeSlider({type:"double",grid:!0,min:0,max:1e3,from:200,to:800,prefix:"$"}),!1},negative:function(){return e("#ion-range-04").ionRangeSlider({type:"double",grid:!0,min:-1e3,max:1e3,from:-500,to:500}),!1},step:function(){return e("#ion-range-05").ionRangeSlider({type:"double",grid:!0,min:-1e3,max:1e3,from:-500,to:500,step:250}),!1},fractional:function(){return e("#ion-range-06").ionRangeSlider({type:"double",grid:!0,min:-12.8,max:12.8,from:-3.2,to:3.2,step:.1}),!1},arrayNumber:function(){return e("#ion-range-07").ionRangeSlider({type:"double",grid:!0,from:1,to:5,values:[0,10,100,1e3,1e4,1e5,1e6]}),!1},arrayStringNumber:function(){return e("#ion-range-08").ionRangeSlider({grid:!0,from:5,values:["zero","one","two","three","four","five","six","seven","eight","nine","ten"]}),!1},arrayStringMonth:function(){return e("#ion-range-09").ionRangeSlider({grid:!0,from:3,values:["January","February","March","April","May","June","July","August","September","October","November","December"]}),!1}}}(jQuery);
|
||||
12
assets/scripts/isotope.pkgd.min.js
vendored
Normal file
12
assets/scripts/isotope.pkgd.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
1
assets/scripts/jquery.knob.init.min.js
vendored
Normal file
1
assets/scripts/jquery.knob.init.min.js
vendored
Normal file
@ -0,0 +1 @@
|
||||
!function(e){"use strict";e(document).ready(function(){e(".knob").knob({draw:function(){if("tron"===this.$.data("skin")){this.cursorExt=.3;var e,t=this.arc(this.cv),i=1;return this.g.lineWidth=this.lineWidth,this.o.displayPrevious&&(e=this.arc(this.v),this.g.beginPath(),this.g.strokeStyle=this.pColor,this.g.arc(this.xy,this.xy,this.radius-this.lineWidth,e.s,e.e,e.d),this.g.stroke()),this.g.beginPath(),this.g.strokeStyle=i?this.o.fgColor:this.fgColor,this.g.arc(this.xy,this.xy,this.radius-this.lineWidth,t.s,t.e,t.d),this.g.stroke(),this.g.lineWidth=2,this.g.beginPath(),this.g.strokeStyle=this.o.fgColor,this.g.arc(this.xy,this.xy,this.radius-this.lineWidth+1+2*this.lineWidth/3,0,2*Math.PI,!1),this.g.stroke(),!1}}});var t,i=0,r=0,a=0,o=e("div.idir"),n=e("div.ival"),l=function(){a++,o.show().html("+").fadeOut(),n.html(a)},s=function(){a--,o.show().html("-").fadeOut(),n.html(a)};return e("input.infinite").knob({min:0,max:20,stopper:!1,change:function(){t>this.cv?i?(s(),i=0):(i=1,r=0):t<this.cv&&(r?(l(),r=0):(r=1,i=0)),t=this.cv}}),!1})}(jQuery);
|
||||
4
assets/scripts/jquery.min.js
vendored
Normal file
4
assets/scripts/jquery.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
1
assets/scripts/mailbox.init.min.js
vendored
Normal file
1
assets/scripts/mailbox.init.min.js
vendored
Normal file
@ -0,0 +1 @@
|
||||
!function(e){"use strict";e('.mailbox-messages input[type="checkbox"]').iCheck({checkboxClass:"icheckbox_square-blue",radioClass:"iradio_square-blue"}),e(".checkbox-toggle").on("click",function(){var a=e(this).data("clicks");return a?(e(".mailbox-messages input[type='checkbox']").iCheck("uncheck"),e(".fa",this).removeClass("fa-check-square-o").addClass("fa-square-o")):(e(".mailbox-messages input[type='checkbox']").iCheck("check"),e(".fa",this).removeClass("fa-square-o").addClass("fa-check-square-o")),e(this).data("clicks",!a),!1}),e(".mailbox-star").on("click",function(a){a.preventDefault();var t=e(this).find("a > i"),r=t.hasClass("glyphicon"),i=t.hasClass("fa");return r&&(t.toggleClass("glyphicon-star"),t.toggleClass("glyphicon-star-empty")),i&&(t.toggleClass("fa-star"),t.toggleClass("fa-star-o")),!1})}(jQuery);
|
||||
1
assets/scripts/main.min.js
vendored
Normal file
1
assets/scripts/main.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
381
assets/scripts/map.demo.js
Normal file
381
assets/scripts/map.demo.js
Normal file
@ -0,0 +1,381 @@
|
||||
/**
|
||||
* Theme: Ninja Admin Template
|
||||
* Author: NinjaTeam
|
||||
* Module/App: Google Maps
|
||||
*/
|
||||
|
||||
(function($) {
|
||||
"use strict";
|
||||
|
||||
if ($("#map-default").length){
|
||||
var mapCanvas = document.getElementById("map-default");
|
||||
var mapOptions = {
|
||||
center: new google.maps.LatLng(51.508742,-0.120850),
|
||||
zoom: 5
|
||||
};
|
||||
var map = new google.maps.Map(mapCanvas, mapOptions);
|
||||
}
|
||||
|
||||
if ($("#map-marker").length){
|
||||
var mapCanvas = document.getElementById("map-marker");
|
||||
var mapOptions = {
|
||||
center: new google.maps.LatLng(51.508742,-0.120850),
|
||||
zoom: 5
|
||||
};
|
||||
var marker = new google.maps.Marker({
|
||||
position: new google.maps.LatLng(51.508742,-0.120850),
|
||||
animation:google.maps.Animation.BOUNCE
|
||||
});
|
||||
var map = new google.maps.Map(mapCanvas, mapOptions);
|
||||
marker.setMap(map);
|
||||
}
|
||||
|
||||
if ($("#map-poly").length){
|
||||
var stavanger = new google.maps.LatLng(58.983991,5.734863);
|
||||
var amsterdam = new google.maps.LatLng(52.395715,4.888916);
|
||||
var london = new google.maps.LatLng(51.508742,-0.120850);
|
||||
|
||||
var mapCanvas = document.getElementById("map-poly");
|
||||
var mapOptions = {center: amsterdam, zoom: 4};
|
||||
var map = new google.maps.Map(mapCanvas,mapOptions);
|
||||
|
||||
var flightPath = new google.maps.Polyline({
|
||||
path: [stavanger, amsterdam, london],
|
||||
strokeColor: "#0000FF",
|
||||
strokeOpacity: 0.8,
|
||||
strokeWeight: 2
|
||||
});
|
||||
flightPath.setMap(map);
|
||||
}
|
||||
|
||||
if ($("#map-polygon").length){
|
||||
var stavanger = new google.maps.LatLng(58.983991,5.734863);
|
||||
var amsterdam = new google.maps.LatLng(52.395715,4.888916);
|
||||
var london = new google.maps.LatLng(51.508742,-0.120850);
|
||||
|
||||
var mapCanvas = document.getElementById("map-polygon");
|
||||
var mapOptions = {center: amsterdam, zoom: 4};
|
||||
var map = new google.maps.Map(mapCanvas,mapOptions);
|
||||
|
||||
var flightPath = new google.maps.Polygon({
|
||||
path: [stavanger, amsterdam, london],
|
||||
strokeColor: "#0000FF",
|
||||
strokeOpacity: 0.8,
|
||||
strokeWeight: 2,
|
||||
fillColor: "#0000FF",
|
||||
fillOpacity: 0.4
|
||||
});
|
||||
flightPath.setMap(map);
|
||||
}
|
||||
|
||||
if($("#map-circle").length){
|
||||
var amsterdam = new google.maps.LatLng(52.395715,4.888916);
|
||||
|
||||
var mapCanvas = document.getElementById("map-circle");
|
||||
var mapOptions = {center: amsterdam, zoom: 7};
|
||||
var map = new google.maps.Map(mapCanvas,mapOptions);
|
||||
|
||||
var myCity = new google.maps.Circle({
|
||||
center: amsterdam,
|
||||
radius: 50000,
|
||||
strokeColor: "#0000FF",
|
||||
strokeOpacity: 0.8,
|
||||
strokeWeight: 2,
|
||||
fillColor: "#0000FF",
|
||||
fillOpacity: 0.4
|
||||
});
|
||||
myCity.setMap(map);
|
||||
}
|
||||
|
||||
if($("#map-info").length){
|
||||
var myCenter = new google.maps.LatLng(51.508742,-0.120850);
|
||||
var mapCanvas = document.getElementById("map-info");
|
||||
var mapOptions = {center: myCenter, zoom: 5};
|
||||
var map = new google.maps.Map(mapCanvas, mapOptions);
|
||||
var marker = new google.maps.Marker({position:myCenter});
|
||||
marker.setMap(map);
|
||||
|
||||
var infowindow = new google.maps.InfoWindow({
|
||||
content: "Hello World!"
|
||||
});
|
||||
infowindow.open(map,marker);
|
||||
}
|
||||
|
||||
if ($("#map-hybrid").length){
|
||||
var mapCanvas = document.getElementById("map-hybrid");
|
||||
var mapOptions = {
|
||||
center: new google.maps.LatLng(51.508742,-0.120850),
|
||||
zoom: 5,
|
||||
mapTypeId: google.maps.MapTypeId.HYBRID
|
||||
};
|
||||
var map = new google.maps.Map(mapCanvas, mapOptions);
|
||||
}
|
||||
|
||||
if ($("#map-45").length){
|
||||
var mapCanvas = document.getElementById("map-45");
|
||||
var mapOptions = {
|
||||
center: new google.maps.LatLng(45.434046,12.340284),
|
||||
zoom:18,
|
||||
mapTypeId:google.maps.MapTypeId.HYBRID
|
||||
};
|
||||
var map = new google.maps.Map(mapCanvas,mapOptions);
|
||||
}
|
||||
|
||||
if ($("#map-light-dream").length){
|
||||
var myCenter = new google.maps.LatLng(40.6700, -73.9400);
|
||||
var mapOptions = {
|
||||
zoom: 11,
|
||||
|
||||
center: new google.maps.LatLng(40.6700, -73.9400),
|
||||
|
||||
styles: [
|
||||
{
|
||||
"featureType": "landscape",
|
||||
"stylers": [
|
||||
{
|
||||
"hue": "#FFBB00"
|
||||
},
|
||||
{
|
||||
"saturation": 43.400000000000006
|
||||
},
|
||||
{
|
||||
"lightness": 37.599999999999994
|
||||
},
|
||||
{
|
||||
"gamma": 1
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"featureType": "road.highway",
|
||||
"stylers": [
|
||||
{
|
||||
"hue": "#FFC200"
|
||||
},
|
||||
{
|
||||
"saturation": -61.8
|
||||
},
|
||||
{
|
||||
"lightness": 45.599999999999994
|
||||
},
|
||||
{
|
||||
"gamma": 1
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"featureType": "road.arterial",
|
||||
"stylers": [
|
||||
{
|
||||
"hue": "#FF0300"
|
||||
},
|
||||
{
|
||||
"saturation": -100
|
||||
},
|
||||
{
|
||||
"lightness": 51.19999999999999
|
||||
},
|
||||
{
|
||||
"gamma": 1
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"featureType": "road.local",
|
||||
"stylers": [
|
||||
{
|
||||
"hue": "#FF0300"
|
||||
},
|
||||
{
|
||||
"saturation": -100
|
||||
},
|
||||
{
|
||||
"lightness": 52
|
||||
},
|
||||
{
|
||||
"gamma": 1
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"featureType": "water",
|
||||
"stylers": [
|
||||
{
|
||||
"hue": "#0078FF"
|
||||
},
|
||||
{
|
||||
"saturation": -13.200000000000003
|
||||
},
|
||||
{
|
||||
"lightness": 2.4000000000000057
|
||||
},
|
||||
{
|
||||
"gamma": 1
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"featureType": "poi",
|
||||
"stylers": [
|
||||
{
|
||||
"hue": "#00FF6A"
|
||||
},
|
||||
{
|
||||
"saturation": -1.0989010989011234
|
||||
},
|
||||
{
|
||||
"lightness": 11.200000000000017
|
||||
},
|
||||
{
|
||||
"gamma": 1
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
};
|
||||
|
||||
// Get the HTML DOM element that will contain your map
|
||||
// We are using a div with id="map" seen below in the <body>
|
||||
var mapElement = document.getElementById('map-light-dream');
|
||||
|
||||
// Create the Google Map using our element and options defined above
|
||||
var map = new google.maps.Map(mapElement, mapOptions);
|
||||
|
||||
var marker = new google.maps.Marker({position:myCenter});
|
||||
marker.setMap(map);
|
||||
}
|
||||
|
||||
if ($("#map-blue-essence").length){
|
||||
var myCenter = new google.maps.LatLng(40.6700, -73.9400);
|
||||
var mapOptions = {
|
||||
zoom: 11,
|
||||
|
||||
center: new google.maps.LatLng(40.6700, -73.9400),
|
||||
|
||||
styles: [
|
||||
{
|
||||
"featureType": "landscape.natural",
|
||||
"elementType": "geometry.fill",
|
||||
"stylers": [
|
||||
{
|
||||
"visibility": "on"
|
||||
},
|
||||
{
|
||||
"color": "#e0efef"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"featureType": "poi",
|
||||
"elementType": "geometry.fill",
|
||||
"stylers": [
|
||||
{
|
||||
"visibility": "on"
|
||||
},
|
||||
{
|
||||
"hue": "#1900ff"
|
||||
},
|
||||
{
|
||||
"color": "#c0e8e8"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"featureType": "road",
|
||||
"elementType": "geometry",
|
||||
"stylers": [
|
||||
{
|
||||
"lightness": 100
|
||||
},
|
||||
{
|
||||
"visibility": "simplified"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"featureType": "road",
|
||||
"elementType": "labels",
|
||||
"stylers": [
|
||||
{
|
||||
"visibility": "off"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"featureType": "transit.line",
|
||||
"elementType": "geometry",
|
||||
"stylers": [
|
||||
{
|
||||
"visibility": "on"
|
||||
},
|
||||
{
|
||||
"lightness": 700
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"featureType": "water",
|
||||
"elementType": "all",
|
||||
"stylers": [
|
||||
{
|
||||
"color": "#7dcdcd"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
};
|
||||
|
||||
// Get the HTML DOM element that will contain your map
|
||||
// We are using a div with id="map" seen below in the <body>
|
||||
var mapElement = document.getElementById('map-blue-essence');
|
||||
|
||||
// Create the Google Map using our element and options defined above
|
||||
var map = new google.maps.Map(mapElement, mapOptions);
|
||||
|
||||
var marker = new google.maps.Marker({position:myCenter});
|
||||
marker.setMap(map);
|
||||
}
|
||||
|
||||
if ($("#map-midnight-commander").length){
|
||||
var myCenter = new google.maps.LatLng(40.6700, -73.9400);
|
||||
var mapOptions = {
|
||||
zoom: 11,
|
||||
|
||||
center: new google.maps.LatLng(40.6700, -73.9400),
|
||||
|
||||
styles: [{"featureType":"all","elementType":"labels.text.fill","stylers":[{"color":"#ffffff"}]},{"featureType":"all","elementType":"labels.text.stroke","stylers":[{"color":"#000000"},{"lightness":13}]},{"featureType":"administrative","elementType":"geometry.fill","stylers":[{"color":"#000000"}]},{"featureType":"administrative","elementType":"geometry.stroke","stylers":[{"color":"#144b53"},{"lightness":14},{"weight":1.4}]},{"featureType":"landscape","elementType":"all","stylers":[{"color":"#08304b"}]},{"featureType":"poi","elementType":"geometry","stylers":[{"color":"#0c4152"},{"lightness":5}]},{"featureType":"road.highway","elementType":"geometry.fill","stylers":[{"color":"#000000"}]},{"featureType":"road.highway","elementType":"geometry.stroke","stylers":[{"color":"#0b434f"},{"lightness":25}]},{"featureType":"road.arterial","elementType":"geometry.fill","stylers":[{"color":"#000000"}]},{"featureType":"road.arterial","elementType":"geometry.stroke","stylers":[{"color":"#0b3d51"},{"lightness":16}]},{"featureType":"road.local","elementType":"geometry","stylers":[{"color":"#000000"}]},{"featureType":"transit","elementType":"all","stylers":[{"color":"#146474"}]},{"featureType":"water","elementType":"all","stylers":[{"color":"#021019"}]}]
|
||||
};
|
||||
|
||||
// Get the HTML DOM element that will contain your map
|
||||
// We are using a div with id="map" seen below in the <body>
|
||||
var mapElement = document.getElementById('map-midnight-commander');
|
||||
|
||||
// Create the Google Map using our element and options defined above
|
||||
var map = new google.maps.Map(mapElement, mapOptions);
|
||||
|
||||
var marker = new google.maps.Marker({position:myCenter});
|
||||
marker.setMap(map);
|
||||
}
|
||||
|
||||
if ($("#map-flat").length){
|
||||
var myCenter = new google.maps.LatLng(40.6700, -73.9400);
|
||||
var mapOptions = {
|
||||
zoom: 11,
|
||||
|
||||
center: new google.maps.LatLng(40.6700, -73.9400),
|
||||
|
||||
styles: [{"featureType":"all","elementType":"labels","stylers":[{"visibility":"off"}]},{"featureType":"landscape","elementType":"all","stylers":[{"visibility":"on"},{"color":"#f3f4f4"}]},{"featureType":"landscape.man_made","elementType":"geometry","stylers":[{"weight":0.9},{"visibility":"off"}]},{"featureType":"poi.park","elementType":"geometry.fill","stylers":[{"visibility":"on"},{"color":"#83cead"}]},{"featureType":"road","elementType":"all","stylers":[{"visibility":"on"},{"color":"#ffffff"}]},{"featureType":"road","elementType":"labels","stylers":[{"visibility":"off"}]},{"featureType":"road.highway","elementType":"all","stylers":[{"visibility":"on"},{"color":"#fee379"}]},{"featureType":"road.arterial","elementType":"all","stylers":[{"visibility":"on"},{"color":"#fee379"}]},{"featureType":"water","elementType":"all","stylers":[{"visibility":"on"},{"color":"#7fc8ed"}]}]
|
||||
};
|
||||
|
||||
// Get the HTML DOM element that will contain your map
|
||||
// We are using a div with id="map" seen below in the <body>
|
||||
var mapElement = document.getElementById('map-flat');
|
||||
|
||||
// Create the Google Map using our element and options defined above
|
||||
var map = new google.maps.Map(mapElement, mapOptions);
|
||||
|
||||
var marker = new google.maps.Marker({position:myCenter});
|
||||
marker.setMap(map);
|
||||
}
|
||||
|
||||
})(jQuery);
|
||||
4
assets/scripts/modernizr.min.js
vendored
Normal file
4
assets/scripts/modernizr.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
1
assets/scripts/nouislider.init.min.js
vendored
Normal file
1
assets/scripts/nouislider.init.min.js
vendored
Normal file
@ -0,0 +1 @@
|
||||
!function(e){"use strict";var t={};e(document).ready(function(){return e("#noui-connect").length&&t.connect(),e("#noui-html5").length&&t.html5(),e("#noui-slider1").length&&t.lock(),!1}),t={connect:function(){var e=document.getElementById("noui-connect");noUiSlider.create(e,{start:[20,80],connect:!1,range:{min:0,max:100}});var t=document.createElement("div"),a=e.querySelector(".noUi-base");return t.className+="connect",a.appendChild(t),e.noUiSlider.on("update",function(e,a,n,i,r){var o=r[a];1===a&&(o=100-o),t.style[a?"right":"left"]=o+"%"}),!1},html5:function(){for(var e=document.getElementById("noui-select"),t=-20;40>=t;t++){var a=document.createElement("option");a.text=t,a.value=t,e.appendChild(a)}var n=document.getElementById("noui-html5");noUiSlider.create(n,{start:[10,30],connect:!0,range:{min:-20,max:40}});var i=document.getElementById("noui-input-number");return n.noUiSlider.on("update",function(t,a){var n=t[a];a?i.value=n:e.value=Math.round(n)}),e.addEventListener("change",function(){n.noUiSlider.set([this.value,null])}),i.addEventListener("change",function(){n.noUiSlider.set([null,this.value])}),!1},lock:function(){function e(e,t){if(a){var r=i===t?0:1,o=r?0:1;return e-=n[o]-n[r],t.noUiSlider.set(e),!1}}function t(){return n=[Number(i.noUiSlider.get()),Number(r.noUiSlider.get())],!1}var a=!1,n=[60,80],i=document.getElementById("noui-slider1"),r=document.getElementById("noui-slider2"),o=document.getElementById("noui-lockbutton"),l=document.getElementById("noui-slider1-span"),s=document.getElementById("noui-slider2-span");return o.addEventListener("click",function(){a=!a,this.textContent=a?"unlock":"lock"}),noUiSlider.create(i,{start:60,animate:!1,range:{min:50,max:100}}),noUiSlider.create(r,{start:80,animate:!1,range:{min:50,max:100}}),i.noUiSlider.on("update",function(e,t){l.innerHTML=e[t]}),r.noUiSlider.on("update",function(e,t){s.innerHTML=e[t]}),i.noUiSlider.on("change",t),r.noUiSlider.on("change",t),i.noUiSlider.on("slide",function(t,a){e(t[a],r)}),r.noUiSlider.on("slide",function(t,a){e(t[a],i)}),!1}}}(jQuery);
|
||||
1
assets/scripts/rwd.demo.min.js
vendored
Normal file
1
assets/scripts/rwd.demo.min.js
vendored
Normal file
@ -0,0 +1 @@
|
||||
!function(e){"use strict";e(".table-responsive").responsiveTable()}(jQuery);
|
||||
1
assets/scripts/sweetalert.init.min.js
vendored
Normal file
1
assets/scripts/sweetalert.init.min.js
vendored
Normal file
@ -0,0 +1 @@
|
||||
!function(e){"use strict";var t={};e(document).ready(function(){return e("#sal-basic").length&&t.basic(),e("#sal-text").length&&t.text(),e("#sal-success").length&&t.success(),e("#sal-warning").length&&t.warning(),e("#sal-icon").length&&t.icon(),e("#sal-html").length&&t.html(),e("#sal-auto").length&&t.auto(),e("#sal-prompt").length&&t.prompt(),!1}),t={basic:function(){return e("#sal-basic").on("click",function(){return swal({title:"Here's a message!",confirmButtonColor:"#304ffe"}),!1}),!1},text:function(){return e("#sal-text").on("click",function(){return swal({title:"Here's a message!",text:"It's pretty, isn't it?",confirmButtonColor:"#304ffe"}),!1}),!1},success:function(){return e("#sal-success").on("click",function(){return swal({title:"Good job!",text:"You clicked the button!",type:"success",confirmButtonColor:"#304ffe"}),!1}),!1},warning:function(){return e("#sal-warning").on("click",function(){return swal({title:"Are you sure?",text:"You will not be able to recover this imaginary file!",type:"warning",showCancelButton:!0,confirmButtonText:"Yes, delete it!",cancelButtonText:"No, cancel plx!",closeOnConfirm:!1,closeOnCancel:!1,confirmButtonColor:"#f60e0e"},function(e){e?swal({title:"Deleted!",text:"Your imaginary file has been deleted.",type:"success",confirmButtonColor:"#304ffe"}):swal({title:"Cancelled",text:"Your imaginary file is safe :)",type:"error",confirmButtonColor:"#f60e0e"})}),!1}),!1},icon:function(){return e("#sal-icon").on("click",function(){return swal({title:"Sweet!",text:"Here's a custom image.",imageUrl:"assets/images/avatar.png",confirmButtonColor:"#304ffe"}),!1}),!1},html:function(){return e("#sal-html").on("click",function(){return swal({title:"HTML <small>Title</small>!",text:'A custom <span style="color:#F8BB86">html<span> message.',html:!0,confirmButtonColor:"#304ffe"}),!1}),!1},auto:function(){return e("#sal-auto").on("click",function(){return swal({title:"Auto close alert!",text:"I will close in 2 seconds.",timer:2e3,showConfirmButton:!1}),!1}),!1},prompt:function(){return e("#sal-prompt").on("click",function(){return swal({title:"An input!",text:"Write something interesting:",type:"input",showCancelButton:!0,closeOnConfirm:!1,animation:"slide-from-top",inputPlaceholder:"Write something",confirmButtonColor:"#304ffe"},function(e){return e!==!1&&(""===e?(swal({title:"You need to write something!",type:"error",confirmButtonColor:"#f60e0e"}),!1):void swal({title:"Nice!",text:"You wrote: "+e,type:"success",confirmButtonColor:"#304ffe"}))}),!1}),!1}}}(jQuery);
|
||||
1
assets/scripts/tinymce.init.min.js
vendored
Normal file
1
assets/scripts/tinymce.init.min.js
vendored
Normal file
@ -0,0 +1 @@
|
||||
!function(){"use strict";tinyMCE.baseURL="/assets/plugin/tinymce",tinymce.init({selector:"#tinymce",height:500,plugins:["advlist autolink lists link image charmap print preview anchor","searchreplace visualblocks code fullscreen","insertdatetime media table contextmenu paste code"],toolbar:"insertfile undo redo | styleselect | bold italic | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | link image",content_css:"assets/plugin/tinymce/content.min.css"}),tinymce.init({selector:"h2.editable",inline:!0,toolbar:"undo redo",menubar:!1}),tinymce.init({selector:"div.editable",inline:!0,plugins:["advlist autolink lists link image charmap print preview anchor","searchreplace visualblocks code fullscreen","insertdatetime media table contextmenu paste"],toolbar:"insertfile undo redo | styleselect | bold italic | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | link image"})}(jQuery);
|
||||
1
assets/scripts/toastr.demo.min.js
vendored
Normal file
1
assets/scripts/toastr.demo.min.js
vendored
Normal file
@ -0,0 +1 @@
|
||||
!function(e){"use strict";function t(){return a}var a,n=-1,i=0,r=function(){var e=["My name is Inigo Montoya. You killed my father. Prepare to die!",'<div><input class="input-small" value="textbox"/> <a href="http://johnpapa.net" target="_blank">This is a hyperlink</a></div><div><button type="button" id="okBtn" class="btn btn-primary">Close me</button><button type="button" id="surpriseBtn" class="btn" style="margin: 0 8px 0 8px">Surprise me</button></div>',"Are you the six fingered man?","Inconceivable!","I do not think that means what you think it means.","Have fun storming the castle!"];return n++,n===e.length&&(n=0),e[n]},o=function(e){return e=e?e:"Clear itself?",e+='<br /><br /><button type="button" class="btn clear">Yes</button>'};e("#closeButton").on("click",function(){return e(this).is(":checked")?e("#addBehaviorOnToastCloseClick").prop("disabled",!1):(e("#addBehaviorOnToastCloseClick").prop("disabled",!0),e("#addBehaviorOnToastCloseClick").prop("checked",!1)),!1}),e("#showtoast").on("click",function(){var t=e("#toastTypeGroup input:radio:checked").val(),n=e("#message").val(),l=e("#title").val()||"",s=e("#showDuration"),c=e("#hideDuration"),u=e("#timeOut"),d=e("#extendedTimeOut"),m=e("#showEasing"),h=e("#hideEasing"),y=e("#showMethod"),p=e("#hideMethod"),f=i++,g=e("#addClear").prop("checked");toastr.options={closeButton:e("#closeButton").prop("checked"),debug:e("#debugInfo").prop("checked"),newestOnTop:e("#newestOnTop").prop("checked"),progressBar:e("#progressBar").prop("checked"),rtl:e("#rtl").prop("checked"),positionClass:e("#positionGroup input:radio:checked").val()||"toast-top-right",preventDuplicates:e("#preventDuplicates").prop("checked"),onclick:null},e("#addBehaviorOnToastClick").prop("checked")&&(toastr.options.onclick=function(){alert("You can perform some custom action after a toast goes away")}),e("#addBehaviorOnToastCloseClick").prop("checked")&&(toastr.options.onCloseClick=function(){alert("You can perform some custom action when the close button is clicked")}),s.val().length&&(toastr.options.showDuration=parseInt(s.val())),c.val().length&&(toastr.options.hideDuration=parseInt(c.val())),u.val().length&&(toastr.options.timeOut=g?0:parseInt(u.val())),d.val().length&&(toastr.options.extendedTimeOut=g?0:parseInt(d.val())),m.val().length&&(toastr.options.showEasing=m.val()),h.val().length&&(toastr.options.hideEasing=h.val()),y.val().length&&(toastr.options.showMethod=y.val()),p.val().length&&(toastr.options.hideMethod=p.val()),g&&(n=o(n),toastr.options.tapToDismiss=!1),n||(n=r()),e("#toastrOptions").text('Command: toastr["'+t+'"]("'+n+(l?'", "'+l:"")+'")\n\ntoastr.options = '+JSON.stringify(toastr.options,null,2));var x=toastr[t](n,l);return a=x,"undefined"!=typeof x?(x.find("#okBtn").length&&x.delegate("#okBtn","click",function(){alert("you clicked me. i was toast #"+f+". goodbye!"),x.remove()}),x.find("#surpriseBtn").length&&x.delegate("#surpriseBtn","click",function(){alert("Surprise! you clicked me. i was toast #"+f+". You could perform an action here.")}),x.find(".clear").length&&x.delegate(".clear","click",function(){toastr.clear(x,{force:!0})}),!1):void 0}),e("#clearlasttoast").on("click",function(){return toastr.clear(t()),!1}),e("#cleartoasts").on("click",function(){return toastr.clear(),!1})}(jQuery);
|
||||
1
assets/scripts/tourist.demo.min.js
vendored
Normal file
1
assets/scripts/tourist.demo.min.js
vendored
Normal file
@ -0,0 +1 @@
|
||||
!function(e){"use strict";var a=[{content:"<h4>Current online user</h4><p>You can find here status of user who's currently online.</p>",highlightTarget:!0,nextButton:!0,target:e("#tour-1"),my:"top left",at:"bottom center"},{content:"<h4>Page title</h4><p>This is page title.</p>",highlightTarget:!1,nextButton:!0,target:e("#tour-2"),my:"top center",at:"bottom center"},{content:"<h4>Notification</h4><p>Click here to view notifications.</p>",highlightTarget:!1,nextButton:!0,target:e("#tour-3"),my:"top right",at:"bottom center"},{content:"<h4>Search</h4><p>Find somthing userful here!</p>",highlightTarget:!1,nextButton:!0,target:e("#tour-4"),my:"top center",at:"bottom center"}],t=new Tourist.Tour({steps:a,tipClass:"Bootstrap",tipOptions:{showEffect:"slidein"}});t.start()}(jQuery);
|
||||
1
assets/scripts/treeview.init.min.js
vendored
Normal file
1
assets/scripts/treeview.init.min.js
vendored
Normal file
@ -0,0 +1 @@
|
||||
$(function(){var e=[{text:"Parent 1",href:"#parent1",tags:["4"],nodes:[{text:"Child 1",href:"#child1",tags:["2"],nodes:[{text:"Grandchild 1",href:"#grandchild1",tags:["0"]},{text:"Grandchild 2",href:"#grandchild2",tags:["0"]}]},{text:"Child 2",href:"#child2",tags:["0"]}]},{text:"Parent 2",href:"#parent2",tags:["0"]},{text:"Parent 3",href:"#parent3",tags:["0"]},{text:"Parent 4",href:"#parent4",tags:["0"]},{text:"Parent 5",href:"#parent5",tags:["0"]}];$("#treeview1").treeview({data:e,selectedBackColor:"#304ffe",onhoverColor:"rgba(0, 0, 0, 0.05)",expandIcon:"fa fa-plus",collapseIcon:"fa fa-minus",nodeIcon:"fa fa-folder"}),$("#treeview2").treeview({levels:1,data:e,selectedBackColor:"#304ffe",onhoverColor:"rgba(0, 0, 0, 0.05)",expandIcon:"fa fa-plus",collapseIcon:"fa fa-minus",nodeIcon:"fa fa-folder"}),$("#treeview3").treeview({levels:99,data:e,selectedBackColor:"#304ffe",onhoverColor:"rgba(0, 0, 0, 0.05)",expandIcon:"fa fa-plus",collapseIcon:"fa fa-minus",nodeIcon:"fa fa-folder"}),$("#treeview4").treeview({color:"#304ffe",data:e,selectedBackColor:"#304ffe",onhoverColor:"rgba(0, 0, 0, 0.05)",expandIcon:"fa fa-plus",collapseIcon:"fa fa-minus",nodeIcon:"fa fa-folder"}),$("#treeview5").treeview({color:"#304ffe",expandIcon:"fa fa-chevron-right",collapseIcon:"fa fa-chevron-down",nodeIcon:"fa fa-bookmark",data:e,selectedBackColor:"#304ffe",onhoverColor:"rgba(0, 0, 0, 0.05)"}),$("#treeview6").treeview({color:"#304ffe",expandIcon:"fa fa-square",collapseIcon:"fa fa-square-o",nodeIcon:"fa fa-user",showTags:!0,data:e,selectedBackColor:"#304ffe",onhoverColor:"rgba(0, 0, 0, 0.05)"}),$("#treeview10").treeview({color:"#304ffe",enableLinks:!0,data:e,selectedBackColor:"#304ffe",onhoverColor:"rgba(0, 0, 0, 0.05)",expandIcon:"fa fa-plus",collapseIcon:"fa fa-minus",nodeIcon:"fa fa-folder"});var t=$("#treeview-searchable").treeview({data:e,selectedBackColor:"#304ffe",onhoverColor:"rgba(0, 0, 0, 0.05)",expandIcon:"fa fa-plus",collapseIcon:"fa fa-minus",nodeIcon:"fa fa-folder"}),n=function(){var e=$("#input-search").val(),n={ignoreCase:$("#chk-ignore-case").is(":checked"),exactMatch:$("#chk-exact-match").is(":checked"),revealResults:$("#chk-reveal-results").is(":checked")},o=t.treeview("search",[e,n]),i="<p>"+o.length+" matches found</p>";return $.each(o,function(e,t){i+="<p>- "+t.text+"</p>"}),$("#search-output").html(i),!1};$("#btn-search").on("click",n),$("#input-search").on("keyup",n),$("#btn-clear-search").on("click",function(){return t.treeview("clearSearch"),$("#input-search").val(""),$("#search-output").html(""),!1})});
|
||||
1
assets/scripts/x-editable.demo.min.js
vendored
Normal file
1
assets/scripts/x-editable.demo.min.js
vendored
Normal file
@ -0,0 +1 @@
|
||||
!function(e){"use strict";function t(){return e("#inline-username").editable("destroy"),e("#inline-firstname").editable("destroy"),e("#inline-sex").editable("destroy"),e("#inline-status").editable("destroy"),e("#inline-group").editable("destroy"),e("#inline-dob").editable("destroy"),e("#inline-event").editable("destroy"),e("#inline-comments").editable("destroy"),e("#inline-fruits").editable("destroy"),!1}e(document).ready(function(){return e("#inline-username").editable({type:"text",pk:1,name:"username",title:"Enter username",mode:"inline"}),e("#inline-firstname").editable({validate:function(t){if(""===e.trim(t))return"This field is required"},mode:"inline"}),e("#inline-sex").editable({prepend:"not selected",mode:"inline",source:[{value:1,text:"Male"},{value:2,text:"Female"}],display:function(t,i){var r={"":"#98a6ad",1:"#5fbeaa",2:"#5d9cec"},a=e.grep(i,function(e){return e.value===t});a.length?e(this).text(a[0].text).css("color",r[t]):e(this).empty()}}),e("#inline-status").editable({mode:"inline"}),e("#inline-group").editable({showbuttons:!1,mode:"inline"}),e("#inline-dob").editable({mode:"inline"}),e("#inline-event").editable({mode:"inline"}),e("#inline-comments").editable({showbuttons:"bottom",mode:"inline"}),e("#inline-fruits").editable({pk:1,limit:3,source:[{value:1,text:"banana"},{value:2,text:"peach"},{value:3,text:"apple"},{value:4,text:"watermelon"},{value:5,text:"orange"}],mode:"inline"}),!1}),e("#switch-inline").on("change",function(){e(this).prop("checked")?(t(),e("#inline-username").editable({type:"text",pk:1,name:"username",title:"Enter username",mode:"inline"}),e("#inline-firstname").editable({validate:function(t){if(""===e.trim(t))return"This field is required"},mode:"inline"}),e("#inline-sex").editable({prepend:"not selected",mode:"inline",source:[{value:1,text:"Male"},{value:2,text:"Female"}],display:function(t,i){var r={"":"#98a6ad",1:"#5fbeaa",2:"#5d9cec"},a=e.grep(i,function(e){return e.value===t});a.length?e(this).text(a[0].text).css("color",r[t]):e(this).empty()}}),e("#inline-status").editable({mode:"inline"}),e("#inline-group").editable({showbuttons:!1,mode:"inline"}),e("#inline-dob").editable({mode:"inline"}),e("#inline-event").editable({mode:"inline"}),e("#inline-comments").editable({showbuttons:"bottom",mode:"inline"}),e("#inline-fruits").editable({pk:1,limit:3,source:[{value:1,text:"banana"},{value:2,text:"peach"},{value:3,text:"apple"},{value:4,text:"watermelon"},{value:5,text:"orange"}],mode:"inline"})):(t(),e("#inline-username").editable({type:"text",pk:1,name:"username",title:"Enter username"}),e("#inline-firstname").editable({validate:function(t){if(""===e.trim(t))return"This field is required"}}),e("#inline-sex").editable({prepend:"not selected",source:[{value:1,text:"Male"},{value:2,text:"Female"}],display:function(t,i){var r={"":"#98a6ad",1:"#5fbeaa",2:"#5d9cec"},a=e.grep(i,function(e){return e.value===t});a.length?e(this).text(a[0].text).css("color",r[t]):e(this).empty()}}),e("#inline-status").editable(),e("#inline-group").editable({showbuttons:!1}),e("#inline-dob").editable(),e("#inline-event").editable(),e("#inline-comments").editable({showbuttons:"bottom"}),e("#inline-fruits").editable({pk:1,limit:3,source:[{value:1,text:"banana"},{value:2,text:"peach"},{value:3,text:"apple"},{value:4,text:"watermelon"},{value:5,text:"orange"}]}))})}(jQuery);
|
||||
Reference in New Issue
Block a user