PageSourceSearch

https://strategysystems.com/wp-content/themes/gutenbergrainmaker/a…/FormatPhoneNumbers.js?ver=1782312630

js strategysystems.com collected 2026-10-08 01:53:50 UTC 1,101 bytes, 9 lines download raw bytes

1// Format phone numbers as they are typed
2!function(r){r.fn.phoneFormat=function(e){var t={errorHtml:'<div class="error">Area code cannot start with 0 or 1.</div>',showErrors:!0},s=function(r){var e=this.val();if(filteredNum=e.replace(/[^\d]/g,""),"0"==filteredNum.substr(0,1)||"1"==filteredNum.substr(0,1))this.settings.showErrors&&this.error.show(),filteredNum="";else if(this.settings.showErrors){var t=this;setTimeout(function(){t.error.fadeOut()},2e3)}var s="";filteredNum.length?(s="("+filteredNum.substr(0,3),filteredNum.length>=3&&(3!=filteredNum.length||8!=r.which)&&(s+=") "),s+=filteredNum.substr(3,3),filteredNum.length>=6&&(6!=filteredNum.length||8!=r.which)&&(s+="-"),s+=filteredNum.substr(6,4)):1==e.length&&"("==e[0]&&(s="("),this.val(s)};return this.each(function(){var i=r(this);i.settings=r.extend({},t,e),i.settings.showErrors&&(i.error=r(i.settings.errorHtml),i.error.hide(),i.after(i.error)),i.keyup(r.proxy(s,i)),i.change(r.proxy(s,i))})}}(jQuery);
3
4// pretty-format phone inputs
5( function( $ ) {
6    $(function() {
7        $('[type="tel"]').phoneFormat();
8    })
9})( jQuery );

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.