1// redirect to list view 2function azrulWindowSaveClose(){ 3 window.location.reload(); 4} 5 6function editWindowTitle(nt){ 7 //jax.$('azrulEditorMessage').innerHTML = nt; 8} 9 10// Global object to hold drag information. 11var load_method = (window.ie ? 'load' : 'domready'); 12 13// Must re-initialize window position 14function myAzrulShowWindow(windowUrl){ 15 16 Obj = document.getElementById("azrulWindow"); 17 if(!Obj){ 18 Obj = document.createElement('div'); 19 20 var html = ''; 21 html += '<div id="azrulWindow" onmousedown="dragOBJ(this, event); return false;" style="top: 0px; text-decoration: none;">'; 22 html += ' <!-- top section -->'; 23 html += ' <div id="az_tl"></div>'; 24 html += ' <div id="az_tm"></div>'; 25 html += ' <div id="az_tr"></div>'; 26 html += ' <div style="clear: both;"></div>'; 27 html += ' <!-- middle section -->'; 28 html += ' <div id="az_ml"></div>'; 29 html += ' <div id="azrulWindowContentOuter">'; 30 html += ' <div id="azrulWindowContentTop">'; 31 html += ' <a href="javascript:void(0);" onclick="myAzrulHideWindow();" id="az_close_btn">Close</a>'; 32 html += ' <div id="az_logo"></div>'; 33 html += ' </div>'; 34 html += ' <div id="azrulWindowContent">'; 35 html += ' </div>'; 36 html += ' </div>'; 37 html += ' <div id="az_mr"></div>'; 38 html += ' <div style="clear: both;"></div>'; 39 html += ' <!-- bottom section -->'; 40 html += ' <div id="az_bl"></div>'; 41 html += ' <div id="az_bm"></div>'; 42 html += ' <div id="az_br"></div>'; 43 html += ' <div style="clear: both;"></div>'; 44 html += '</div>'; 45// html += '<!--[if lte IE 6]>'; 46// html += '<script type="text/javascript">'; 47// html += 'jQuery("#az_tl, #az_tm, #az_tr, #az_ml, #az_mr, #az_bl, #az_bm, #az_br, #az_logo").pngfix(\'components/com_myblog/images/pixel.gif\');'; 48// html += '</script>'; 49// html += '<![endif]-->'; 50 51 52 Obj.innerHTML = html; 53 document.body.appendChild(Obj); 54 55 } 56 57 58 var myWidth = 0, myHeight = 0; 59 if( typeof( window.innerWidth ) == 'number' ) { 60 //Non-IE 61 myWidth = window.innerWidth; 62 myHeight = window.innerHeight; 63 } 64 else if( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) { 65 //IE 6+ in 'standards compliant mode' 66 myWidth = document.documentElement.clientWidth; 67 myHeight = document.documentElement.clientHeight - 20+'px'; 68 } 69 else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) { 70 //IE 4 compatible 71 myWidth = document.body.clientWidth; 72 myHeight = document.body.clientHeight; 73 } 74 75 var yPos; 76 if (window.innerHeight != null) 77 { 78 yPos = window.innerHeight; 79 } 80 else if (document.documentElement && document.documentElement.clientHeight) 81 { 82 yPos = document.documentElement.clientHeight; 83 } 84 else 85 { 86 yPos = document.body.clientHeight; 87 } 88 89 yPos = yPos - 60; 90 var leftPos = (myWidth - 980)/2; 91 92 document.getElementById('azrulWindow').style.visibility = "visible"; 93 document.getElementById('azrulWindow').style.zIndex = myGetZIndexMax() + 1; 94 document.getElementById('azrulWindowContent').innerHTML = '<iframe id="azrulContentFrame" src="' + windowUrl + '" frameborder="0" scrolling="no"></iframe>'; 95 96 // change the iframe source 97 //document.getElementById('azrulContentFrame').setAttribute("src", ''); 98 document.getElementById('azrulContentFrame').setAttribute("src", windowUrl); 99 100 //if (browser.isIE) { 101 //jQuery('#az_tl, #az_tm, #az_tr, #az_ml, #az_mr, #az_bl, #az_bm, #az_br, #az_logo').pngfix(); 102 //} 103 104 /* 105 Set editor position, center it in screen regardless of the scroll position 106 */ 107 // In ie 7, pageYOffset is null 108 var iframe = document.getElementById("azrulWindow"); 109 if (window.pageYOffset) 110 iframe.style.marginTop = (window.pageYOffset + 10) + 'px'; 111 else 112 iframe.style.marginTop = (document.body.scrollTop + 10) + 'px'; 113 iframe.style.height = (yPos) + 'px'; 114 115 116 /* 117 Set height and width for transparent window 118 */ 119 120 var m_s = yPos + 'px'; 121 document.getElementById("azrulWindow").style.height = m_s 122 document.getElementById('azrulWindow').style.left = leftPos + 'px'; 123 document.getElementById("azrulWindowContent").style.height = (yPos - 30) + 'px'; 124 document.getElementById("azrulContentFrame").style.height = (yPos - 30) + 'px'; 125 document.getElementById("azrulWindowContentOuter").style.height = m_s; 126 document.getElementById("az_ml").style.height = m_s; 127 document.getElementById("az_mr").style.height = m_s; 128 129 130} 131 132function myAzrulHideWindow(){ 133 document.getElementById('azrulWindowContent').innerHTML = ""; 134 document.getElementById('azrulWindow').style.visibility = "hidden"; 135} 136 137function dragOBJ(d,e) { 138 139 function drag(e) { 140 if(!stop) { 141 d.style.top=(tX=xy(e,1)+oY-eY+'px'); 142 d.style.left=(tY=xy(e)+oX-eX+'px'); 143 } 144 } 145 146 function agent(v) { 147 return(Math.max(navigator.userAgent.toLowerCase().indexOf(v),0)); 148 } 149 function xy(e,v) { 150 return(v?(agent('msie')?event.clientY+document.body.scrollTop:e.pageY):(agent('msie')?event.clientX+document.body.scrollTop:e.pageX)); 151 } 152 153 var oX=parseInt(d.style.left); 154 var oY=parseInt(d.style.top); 155 var eX=xy(e); 156 var eY=xy(e,1); 157 var tX,tY,stop; 158 159 document.onmousemove=drag; 160 document.onmouseup=function(){ 161 stop=1; document.onmousemove=''; document.onmouseup=''; 162 }; 163 164} 165 166function myGetZIndexMax(){ 167 var allElems = document.getElementsByTagName? 168 document.getElementsByTagName("*"): 169 document.all; // or test for that too 170 var maxZIndex = 0; 171 172 for(var i=0;i<allElems.length;i++) { 173 var elem = allElems[i]; 174 var cStyle = null; 175 if (elem.currentStyle) {cStyle = elem.currentStyle;} 176 else if (document.defaultView && document.defaultView.getComputedStyle) { 177 cStyle = document.defaultView.getComputedStyle(elem,""); 178 } 179 180 var sNum; 181 if (cStyle) { 182 sNum = Number(cStyle.zIndex); 183 } else { 184 sNum = Number(elem.style.zIndex); 185 } 186 if (!isNaN(sNum)) { 187 maxZIndex = Math.max(maxZIndex,sNum); 188 } 189 } 190 return maxZIndex; 191} 192 193function fixPng( element ) 194{ 195 // test if browser ie IE 6 196 if ( jQuery.browser.msie && /MSIE\s(5\.5|6\.)/.test(navigator.userAgent) ) 197 { 198 filter = "progid:DXImageTransform.Microsoft.AlphaImageLoader(enabled=true,sizingMethod=crop,src='components/com_myblog/images/pixel.gif')"; 199 jQuery(element).css({filter:'', background:'url('+src+')'}); 200 } 201}
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.