Moved to PHP folder
This commit is contained in:
6328
php/assets/front/js/bootstrap.bundle.js
vendored
Normal file
6328
php/assets/front/js/bootstrap.bundle.js
vendored
Normal file
File diff suppressed because it is too large
Load Diff
1
php/assets/front/js/bootstrap.bundle.js.map
Normal file
1
php/assets/front/js/bootstrap.bundle.js.map
Normal file
File diff suppressed because one or more lines are too long
7
php/assets/front/js/bootstrap.bundle.min.js
vendored
Normal file
7
php/assets/front/js/bootstrap.bundle.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
1
php/assets/front/js/bootstrap.bundle.min.js.map
Normal file
1
php/assets/front/js/bootstrap.bundle.min.js.map
Normal file
File diff suppressed because one or more lines are too long
3894
php/assets/front/js/bootstrap.js
vendored
Normal file
3894
php/assets/front/js/bootstrap.js
vendored
Normal file
File diff suppressed because it is too large
Load Diff
1
php/assets/front/js/bootstrap.js.map
Normal file
1
php/assets/front/js/bootstrap.js.map
Normal file
File diff suppressed because one or more lines are too long
7
php/assets/front/js/bootstrap.min.js
vendored
Normal file
7
php/assets/front/js/bootstrap.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
1
php/assets/front/js/bootstrap.min.js.map
Normal file
1
php/assets/front/js/bootstrap.min.js.map
Normal file
File diff suppressed because one or more lines are too long
2
php/assets/front/js/jquery-3.3.1.min.js
vendored
Normal file
2
php/assets/front/js/jquery-3.3.1.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
77
php/assets/front/js/jquery-input-mask-phone-number.js
vendored
Normal file
77
php/assets/front/js/jquery-input-mask-phone-number.js
vendored
Normal file
@ -0,0 +1,77 @@
|
||||
// ==================================================
|
||||
//
|
||||
// jquery-input-mask-phone-number v1.0
|
||||
//
|
||||
// Licensed (The MIT License)
|
||||
//
|
||||
// Copyright © Raja Rama Mohan Thavalam <rajaram.tavalam@gmail.com>
|
||||
//
|
||||
// ==================================================
|
||||
;
|
||||
(function ($) {
|
||||
$.fn.usPhoneFormat = function (options) {
|
||||
var params = $.extend({
|
||||
format: 'xxx-xxx-xxxx',
|
||||
international: false,
|
||||
|
||||
}, options);
|
||||
|
||||
if (params.format === 'xxx-xxx-xxxx') {
|
||||
$(this).bind('paste', function (e) {
|
||||
e.preventDefault();
|
||||
var inputValue = e.originalEvent.clipboardData.getData('Text');
|
||||
if (!$.isNumeric(inputValue)) {
|
||||
return false;
|
||||
} else {
|
||||
inputValue = String(inputValue.replace(/(\d{3})(\d{3})(\d{4})/, "$1-$2-$3"));
|
||||
$(this).val(inputValue);
|
||||
$(this).val('');
|
||||
inputValue = inputValue.substring(0, 12);
|
||||
$(this).val(inputValue);
|
||||
}
|
||||
});
|
||||
$(this).on('keypress', function (e) {
|
||||
if (e.which != 8 && e.which != 0 && (e.which < 48 || e.which > 57)) {
|
||||
return false;
|
||||
}
|
||||
var curchr = this.value.length;
|
||||
var curval = $(this).val();
|
||||
if (curchr == 3 && e.which != 8 && e.which != 0) {
|
||||
$(this).val(curval + "-");
|
||||
} else if (curchr == 7 && e.which != 8 && e.which != 0) {
|
||||
$(this).val(curval + "-");
|
||||
}
|
||||
$(this).attr('maxlength', '12');
|
||||
});
|
||||
|
||||
} else if (params.format === '(xxx) xxx-xxxx') {
|
||||
$(this).on('keypress', function (e) {
|
||||
if (e.which != 8 && e.which != 0 && (e.which < 48 || e.which > 57)) {
|
||||
return false;
|
||||
}
|
||||
var curchr = this.value.length;
|
||||
var curval = $(this).val();
|
||||
if (curchr == 3 && e.which != 8 && e.which != 0) {
|
||||
$(this).val('(' + curval + ')' + " ");
|
||||
} else if (curchr == 9 && e.which != 8 && e.which != 0) {
|
||||
$(this).val(curval + "-");
|
||||
}
|
||||
$(this).attr('maxlength', '14');
|
||||
});
|
||||
$(this).bind('paste', function (e) {
|
||||
e.preventDefault();
|
||||
var inputValue = e.originalEvent.clipboardData.getData('Text');
|
||||
if (!$.isNumeric(inputValue)) {
|
||||
return false;
|
||||
} else {
|
||||
inputValue = String(inputValue.replace(/(\d{3})(\d{3})(\d{4})/, "($1) $2-$3"));
|
||||
$(this).val(inputValue);
|
||||
$(this).val('');
|
||||
inputValue = inputValue.substring(0, 14);
|
||||
$(this).val(inputValue);
|
||||
}
|
||||
});
|
||||
|
||||
}
|
||||
}
|
||||
}(jQuery));
|
Reference in New Issue
Block a user