text: $(function(){$("#datemask").inputmask("dd/mm/yyyy",{placeholder:"dd/mm/yyyy"});$("#datemask2").inputmask("mm/dd/yyyy",{placeholder:"mm/dd/yyyy"});$("[data-mask]").inputmask();$("#reservation").daterangepicker();$("#reservationtime").daterangepicker({timePicker:true,timePickerIncrement:30,format:"MM/DD/YYYY h:mm A"});$("#daterange-btn").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")]},startDate:moment().subtract("days",29),endDate:moment()},function(b,a){$("#reportrange span").html(b.format("MMMM D, YYYY")+" - "+a.format("MMMM D, YYYY"))})});var placeholder="Select a State";$(".select2, .select2-multiple").select2({placeholder:placeholder});$(".select2-allow-clear").select2({allowClear:true,placeholder:placeholder});var select2OpenEventName="select2-open";$(":checkbox").on("click",function(){$(this).parent().nextAll("select").select2("enable",this.checked)});$(".select2, .select2-multiple, .select2-allow-clear, .select2-remote").on(select2OpenEventName,function(){if($(this).parents('[class*="has-"]').length){var b=$(this).parents('[class*="has-"]')[0].className.split(/\s+/);for(var a=0;a<b.length;++a){if(b[a].match("has-")){$("#select2-drop").addClass(b[a])}}}});$(document).ready(function(){$("#e1").select2()});$(document).ready(function(){$("#e2").select2()});$(function(){var b=$("#source").html(),a="<option></option>"+b;$("select.populate").each(function(){var c=$(this);c.html(c.hasClass("placeholder")?a:b)});$(".examples article:odd").addClass("zebra")});$(document).ready(function(){function a(b){if(!b.id){return b.text}return"<img class='flag' src='img/us_states_flags/"+b.id.toLowerCase()+".png'/>"+b.text}$("#e4").select2({formatResult:a,formatSelection:a,escapeMarkup:function(b){return b}})});$(document).ready(function(){$('input[type="checkbox"].minimal, input[type="radio"].minimal').iCheck({checkboxClass:"icheckbox_minimal",radioClass:"iradio_minimal"});$('input[type="checkbox"].minimal-red, input[type="radio"].minimal-red').iCheck({checkboxClass:"icheckbox_minimal-red",radioClass:"iradio_minimal-red"});$('input[type="checkbox"].flat-red, input[type="radio"].flat-red').iCheck({checkboxClass:"icheckbox_flat-red",radioClass:"iradio_flat-red"});$('input[type="checkbox"].flat-green, input[type="radio"].flat-green').iCheck({checkboxClass:"icheckbox_flat-green",radioClass:"iradio_flat-green"})});$(document).ready(function(){$(".chk").iCheck({checkboxClass:"icheckbox_flat-red",radioClass:"iradio_flat-red"})});$(document).ready(function(){$(".chk1").iCheck({checkboxClass:"icheckbox_flat-blue",radioClass:"iradio_flat-blue"})});$(document).ready(function(){$("input#defaultconfig").maxlength();$("input#thresholdconfig").maxlength({threshold:20});$("input#moreoptions").maxlength({alwaysShow:true,warningClass:"label label-success",limitReachedClass:"label label-danger"});$("input#alloptions").maxlength({alwaysShow:true,warningClass:"label label-success",limitReachedClass:"label label-danger",separator:" chars out of ",preText:"You typed ",postText:" chars.",validate:true});$("textarea#textarea").maxlength({alwaysShow:true});$("input#placement").maxlength({alwaysShow:true,placement:"top-left"})});function format(a){if(!a.id){return a.text}return"<img class='flag' src='img/countries_flags/"+a.id.toLowerCase()+".png'/>&nbsp;&nbsp;"+a.text}$("#select2_sample4").select2({placeholder:"Select a Country",allowClear:true,formatResult:format,formatSelection:format,escapeMarkup:function(a){return a}});$("#card").card({container:$(".card-wrapper")});