1var authFormWindow = { 2 3 form_window: null, 4 overlay : null, 5 form_window_id : "login-form-window", 6 login_field_id : "auth-user-login", 7 8 ShowLoginForm : function() 9 { 10 if (!this.form_window) 11 { 12 this.form_window = document.getElementById(this.form_window_id); 13 if (!this.form_window) 14 return false; 15 16 try {document.body.appendChild(this.form_window);} 17 catch (e){} 18 } 19 20 this.form_window.style.display = "block"; 21 22 if (this.GetOpacityProperty()) 23 this.CreateOverlay(); 24 25 var loginField = document.getElementById(this.login_field_id); 26 if (loginField) 27 { 28 loginField.focus(); 29 loginField.select(); 30 } 31 return false; 32 }, 33 34 CloseLoginForm : function() 35 { 36 if (this.form_window) 37 this.form_window.style.display = "none"; 38 39 if (this.overlay) 40 this.overlay.style.display = "none"; 41 42 return false; 43 }, 44 45 CreateOverlay : function() 46 { 47 if (!this.overlay) 48 { 49 this.overlay = document.body.appendChild(document.createElement("DIV")); 50 this.overlay.className = "login-form-overlay"; 51 52 var _this = this; 53 this.overlay.onclick = function() {_this.CloseLoginForm()}; 54 } 55 56 var windowSize = this.GetWindowScrollSize(); 57 58 this.overlay.style.width = windowSize.scrollWidth + "px"; 59 this.overlay.style.height = windowSize.scrollHeight + "px"; 60 this.overlay.style.display = "block"; 61 }, 62 63 GetOpacityProperty : function() 64 { 65 if (typeof document.body.style.opacity == 'string') 66 return 'opacity'; 67 else if (typeof document.body.style.MozOpacity == 'string') 68 return 'MozOpacity'; 69 else if (typeof document.body.style.KhtmlOpacity == 'string') 70 return 'KhtmlOpacity'; 71 else if (document.body.filters && navigator.appVersion.match(/MSIE ([\d.]+);/)[1]>=5.5) 72 return 'filter'; 73 74 return false; 75 }, 76 77 GetWindowScrollSize : function(pDoc) 78 { 79 var width, height; 80 if (!pDoc) 81 pDoc = document; 82 83 if ( (pDoc.compatMode && pDoc.compatMode == "CSS1Compat")) 84 { 85 width = pDoc.documentElement.scrollWidth; 86 height = pDoc.documentElement.scrollHeight; 87 } 88 else 89 { 90 if (pDoc.body.scrollHeight > pDoc.body.offsetHeight) 91 height = pDoc.body.scrollHeight; 92 else 93 height = pDoc.body.offsetHeight; 94 95 if (pDoc.body.scrollWidth > pDoc.body.offsetWidth || 96 (pDoc.compatMode && pDoc.compatMode == "BackCompat") || 97 (pDoc.documentElement && !pDoc.documentElement.clientWidth) 98 ) 99 width = pDoc.body.scrollWidth; 100 else 101 width = pDoc.body.offsetWidth; 102 } 103 return {scrollWidth : width, scrollHeight : height}; 104 } 105} 106 107var authPreloadImages = ["close.gif", "login-form-header-bg.gif"]; 108for (var imageIndex = 0; imageIndex < authPreloadImages.length; imageIndex++) 109{ 110 var imageObj = new Image(); 111 imageObj.src = "/bitrix/templates/modern/components/bitrix/system.auth.form/auth/images/" + authPreloadImages[imageIndex]; 112} 113authPreloadImages = null;
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.