1function in_array (needle, haystack, argStrict) { 2 var key = '', strict = !! argStrict; 3 4 if (strict) { 5 for (key in haystack) { 6 if (haystack[key] === needle) { return true; 7 } 8 } 9 } else { 10 for (key in haystack) { if (haystack[key] == needle) { 11 return true; 12 } 13 } 14 } 15 return false; 16} 17 18function JT_show(url,linkId,title,obj){ 19 20 control=getGen(obj,'Jtip'); 21 contentId=getGen(obj,'contentId'); 22 /*var de = document.documentElement; 23 var w = self.innerWidth || (de&&de.clientWidth) || document.body.clientWidth; 24 var hasArea = w - getAbsoluteLeft(obj); 25 var clickElementy = getAbsoluteTop(obj) - 3; //set y position 26 */ 27 28 /*var queryString = url.replace(/^[^\?]+\??/,''); 29 var params = parseQuery( queryString ); 30 if(params['width'] === undefined ){ if (control=='actions'){params['width'] = 90; }else{params['width'] = 250;}}; 31 if(params['link'] !== undefined){ 32 $(obj).bind('click',function(){window.location = params['link']}); 33 $(obj).css('cursor','pointer'); 34 }*/ 35 36 if (control=='actions'){jt_width = 90; }else{jt_width = 250;} 37 if (control=='content'){ 38 title=""; 39 } 40 else{ 41 if(title == false)title=" "; 42 title=$("#"+control+'_title').html(); 43 44 } 45 $(obj).append("<div id='JT' class='exist' style='cursor:default;width:"+jt_width*1+"px'><div id='JT_arrow_left'></div><div id='JT_copy'><div class='JT_loader'><div></div></div>");//right side 46 47 48/* if(hasArea>((params['width']*1)+75)){ 49 50 offset2=11; 51 $(obj).append("<div id='JT' class='exist' style='cursor:default;width:"+params['width']*1+"px'><div id='JT_arrow_left'></div><div id='JT_close_left'>"+title+"</div><div id='JT_copy'><div class='JT_loader'><div></div></div>");//right side 52 var arrowOffset = getElementWidth(obj) + offset2; 53 var clickElementx = getAbsoluteLeft(obj) + arrowOffset -2; //set x position 54 55 if (in_array(control,['medalla_PLATINO','medalla_ORO','medalla_PLATA','medalla_NARANJA','medalla_ROJO'])){ 56 clickElementy=clickElementy-40; 57 } 58 59 60 61 }else{ 62 $(obj).append("<div id='JT' class='exist;' style='cursor:default;width:"+params['width']*1+"px'><div id='JT_arrow_right' style='left:"+((params['width']*1)+1)+"px'></div><div id='JT_close_right'>"+title+"</div><div id='JT_copy' ><div class='JT_loader'><div></div></div>");//left side 63 var clickElementx = getAbsoluteLeft(obj) - ((params['width']*1) + 10); //set x position 64 if (in_array(control,['medalla_PLATINO','medalla_ORO','medalla_PLATA','medalla_NARANJA','medalla_ROJO'])){ 65 clickElementy=clickElementy-40; 66 clickElementx=clickElementx+10; 67 } 68 69 70 } 71*/ 72 var pos = $(obj).offset(); 73 var eWidth = $(obj).outerWidth(); 74 var mWidth = $('#JT').outerWidth(); 75 var left = (pos.left + eWidth - mWidth) + "px"; 76 var top = 25+pos.top + "px"; 77 $('#JT').css( { 78 position: 'absolute', 79 zIndex: 5000, 80 left: pos.left, 81 top: top 82 } ); 83 84 85 86 if (control=='content'){ 87 //clickElementy=clickElementy+17; 88 $('#ContentId').val(getGen(obj,'ContentId')); 89 $('#ContentType').val(getGen(obj,'ContentType')); 90 call_bak_module('modContent','getData'); 91 $('#JT').show(); 92 } 93 else{ 94 $('#JT_copy').html($("#"+control+'_copy').html()); 95 //$('#JT').css({left: clickElementx+"px", top: clickElementy+"px"}); 96 $('#JT').show(); 97 //$('#JT_copy').load(url); 98 } 99 load_data_modules(); 100 101} 102 103function getElementWidth(obj) { 104 var offset = $(obj).offset(); 105 return offset.left; 106 /*x = document.getElementById(objectId); 107 return x.offsetWidth;*/ 108} 109 110function getAbsoluteLeft(obj) { 111 // Get an object left position from the upper left viewport corner 112 /*o = document.getElementById(objectId) 113 oLeft = o.offsetLeft // Get left position from the parent object 114 while(o.offsetParent!=null) { // Parse the parent hierarchy up to the document element 115 oParent = o.offsetParent // Get parent object reference 116 oLeft += oParent.offsetLeft // Add parent left position 117 o = oParent 118 } 119 return oLeft 120 */ 121} 122 123function getAbsoluteTop(objectId) { 124 // Get an object top position from the upper left viewport corner 125 o = document.getElementById(objectId) 126 oTop = o.offsetTop // Get top position from the parent object 127 while(o.offsetParent!=null) { // Parse the parent hierarchy up to the document element 128 oParent = o.offsetParent // Get parent object reference 129 oTop += oParent.offsetTop // Add parent top position 130 o = oParent 131 } 132 return oTop 133} 134 135function parseQuery ( query ) { 136 var Params = new Object (); 137 if ( ! query ) return Params; // return empty object 138 var Pairs = query.split(/[;&]/); 139 for ( var i = 0; i < Pairs.length; i++ ) { 140 var KeyVal = Pairs[i].split('='); 141 if ( ! KeyVal || KeyVal.length != 2 ) continue; 142 var key = unescape( KeyVal[0] ); 143 var val = unescape( KeyVal[1] ); 144 val = val.replace(/\+/g, ' '); 145 Params[key] = val; 146 } 147 return Params; 148} 149 150function blockEvents(evt) { 151 if(evt.target){ 152 evt.preventDefault(); 153 }else{ 154 evt.returnValue = false;
155 } 156} 157 158 159
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.