Your IP : 3.144.15.34
$(function(e) {
'use strict'
// Toggles
$('.toggle').toggles({
on: true,
height: 26
});
// Input Masks
$('#dateMask').mask('99/99/9999');
$('#phoneMask').mask('(999) 999-9999');
$('#ssnMask').mask('999-99-9999');
// Time Picker
$('#tpBasic').timepicker();
$('#tp2').timepicker({
'scrollDefault': 'now'
});
$('#tp3').timepicker();
$(document).on('click', '#setTimeButton', function() {
$('#tp3').timepicker('setTime', new Date());
});
// Color picker
$('#colorpicker').spectrum({
color: '#0061da'
});
$('#showAlpha').spectrum({
color: 'rgba(0, 97, 218, 0.5)',
showAlpha: true
});
$('#showPaletteOnly').spectrum({
showPaletteOnly: true,
showPalette: true,
color: '#DC3545',
palette: [
['#1D2939', '#fff', '#0866C6', '#23BF08', '#F49917'],
['#DC3545', '#17A2B8', '#6610F2', '#fa1e81', '#72e7a6']
]
});
//Date range picker
$('#reservation').daterangepicker();
// Datepicker
$('.fc-datepicker').datepicker({
showOtherMonths: true,
selectOtherMonths: true
});
$('#datepickerNoOfMonths').datepicker({
showOtherMonths: true,
selectOtherMonths: true,
numberOfMonths: 2
});
//_________Date picker
$('#datepicker-date').bootstrapdatepicker({
format: "dd-mm-yyyy",
viewMode: "date",
multidate: true,
multidateSeparator: "-",
})
//_________Month picker
$('#datepicker-month').bootstrapdatepicker({
format: "MM",
viewMode: "months",
minViewMode: "months",
multidate: true,
multidateSeparator: "-",
})
//_________Year picker
$('#datepicker-year').bootstrapdatepicker({
format: "yyyy",
viewMode: "year",
minViewMode: "years",
multidate: true,
multidateSeparator: "-",
})
// Select2
$('.select2').select2({
minimumResultsForSearch: Infinity,
width: '100%'
});
// Select2 by showing the search
$('.select2-show-search').select2({
minimumResultsForSearch: '',
width: '100%'
});
});