1let vh = window.innerHeight * 0.01; 2document.documentElement.style.setProperty('--vh', `${vh}px`); 3 4function reportWindowSize() { 5 let vh = window.innerHeight * 0.01; 6 document.documentElement.style.setProperty('--vh', `${vh}px`); 7} 8 9window.onresize = reportWindowSize; 10 11let lastTouchEnd = 0 12document.documentElement.addEventListener("touchstart", function (event) { 13 if (event.touches.length > 1) { 14 event.preventDefault(); 15 } 16}); 17document.documentElement.addEventListener("touchend", function (event) { 18 let now = (new Date()).getTime(); 19 if (now - lastTouchEnd <= 300) { 20 event.preventDefault(); 21 } else { 22 lastTouchEnd = now; 23 } 24}, false); 25 26document.documentElement.addEventListener("gesturestart", function (event) { 27 event.preventDefault(); 28}); 29 30 31/** 32 * åæèªç³» 33 */ 34var SetSystemLanguage = function () { 35 var lang = $('#sysLanguage').val(); 36 var options = { 37 data: '', 38 success: function (result) { 39 location.href = location.href; 40 } 41 }; 42 UTK.ajax('/setsystemlanguage/' + lang, options); 43} 44 45let SYSTEM_LANGUAGE_LIST = JSON.parse(sessionStorage.getItem('SYSTEM_LANGUAGE_LIST')) || {}; 46 47var GetSystemLanguage = function () { 48 var options = { 49 data: '', 50 success: function (result) { 51 if (result._returnCode == "0000") { 52 SYSTEM_LANGUAGE_LIST = result.Data; 53 sessionStorage.setItem('SYSTEM_LANGUAGE_LIST', JSON.stringify(SYSTEM_LANGUAGE_LIST)); 54 } 55 } 56 }; 57 UTK.ajax('/getsystemlanguage', options); 58} 59var GetSystemLanguageText = function (key) { 60 try { 61 return SYSTEM_LANGUAGE_LIST[key]; 62 } 63 catch (e) { } 64 return key; 65} 66var RegexAlphaNumeric = function () { 67 $('.alpha-numeric-only').on('input', function () { 68 var $this = $(this); 69 setTimeout(function () { 70 var originalValue = $this.val(); 71 var validInput = originalValue.replace(/[^a-zA-Z0-9]/g, ''); 72 if (originalValue !== validInput) { 73 $this.val(validInput); 74 } 75 }, 0); 76 }); 77}; 78 79/* Formè¡¨å® */ 80 81/** 82 * 83 **/ 84var ErrorNoticeElement = function (element, message) { 85 //å¨éåelement䏿¹å å ¥é¯èª¤è¨æ¯ 86 var errorElement = $(element).next('.error-notice'); 87 if (errorElement.length == 0) { 88 $(element).after('<div class="error-notice form-text text-danger fw-bolder"></div>'); 89 errorElement = $(element).next('.error-notice'); 90 } 91 errorElement.html(message); 92 93 //è¨å®é¯èª¤è¨æ¯æ¶å¤±ï¼ç¶focaséåelement䏿¬¡çæåå°±æ¶å¤± 94 $(element).one('focus', function () { 95 $(element).removeClass('error'); 96 errorElement.remove(); 97 }); 98} 99 100 101/* Formè¡¨å® */
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.