hand-detection/assets/scripts/form.demo.min.js

2 lines
4.9 KiB
JavaScript

!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);