Server IP : 173.249.157.85 / Your IP : 216.73.216.232 Web Server : Apache System : Linux server.frogzhost.com 3.10.0-1127.19.1.el7.x86_64 #1 SMP Tue Aug 25 17:23:54 UTC 2020 x86_64 User : econtech ( 1005) PHP Version : 7.3.33 Disable Function : NONE MySQL : OFF | cURL : OFF | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /home/econtech/public_html/public/back/assets/js/demo7/pages/crud/forms/widgets/ |
Upload File : |
// Class definition var KTInputmask = function () { // Private functions var demos = function () { // date format $("#kt_inputmask_1").inputmask("99/99/9999", { "placeholder": "mm/dd/yyyy", autoUnmask: true }); // custom placeholder $("#kt_inputmask_2").inputmask("99/99/9999", { "placeholder": "mm/dd/yyyy", }); // phone number format $("#kt_inputmask_3").inputmask("mask", { "mask": "(999) 999-9999" }); // empty placeholder $("#kt_inputmask_4").inputmask({ "mask": "99-9999999", placeholder: "" // remove underscores from the input mask }); // repeating mask $("#kt_inputmask_5").inputmask({ "mask": "9", "repeat": 10, "greedy": false }); // ~ mask "9" or mask "99" or ... mask "9999999999" // decimal format $("#kt_inputmask_6").inputmask('decimal', { rightAlignNumerics: false }); // currency format $("#kt_inputmask_7").inputmask('€ 999.999.999,99', { numericInput: true }); //123456 => € ___.__1.234,56 //ip address $("#kt_inputmask_8").inputmask({ "mask": "999.999.999.999" }); //email address $("#kt_inputmask_9").inputmask({ mask: "*{1,20}[.*{1,20}][.*{1,20}][.*{1,20}]@*{1,20}[.*{2,6}][.*{1,2}]", greedy: false, onBeforePaste: function (pastedValue, opts) { pastedValue = pastedValue.toLowerCase(); return pastedValue.replace("mailto:", ""); }, definitions: { '*': { validator: "[0-9A-Za-z!#$%&'*+/=?^_`{|}~\-]", cardinality: 1, casing: "lower" } } }); } return { // public functions init: function() { demos(); } }; }(); jQuery(document).ready(function() { KTInputmask.init(); });