PageSourceSearch

https://sherlockian-sherlock.com/share/js/float.js

js sherlockian-sherlock.com collected 2026-10-02 04:50:52 UTC 10,544 bytes, 23 lines download raw bytes

1/* Copyright (C) 2013-2019 Hupso.com */
2var displayed=!1;if("undefined"===typeof hupso_background_f)var hupso_background_f="#EAF4FF";if("undefined"===typeof hupso_border_f)var hupso_border_f="#66CCFF";if("undefined"===typeof hupso_float_left_f)var hupso_float_left_f=!1;if("undefined"===typeof hupso_float_right_f)var hupso_float_right_f=!1;if("undefined"===typeof hupso_twitter_via)var hupso_twitter_via="";if("undefined"===typeof hupso_image_folder_url)var hupso_image_folder_url="";
3var hupso_p=document.location.protocol,parent_width_out=0,parent_height_out=0;if("undefined"===typeof hupso_srv)var hupso_srv="1";if(1==hupso_srv){var ifrm=document.createElement("iframe"),params=document.referrer,num=Math.random();ifrm.setAttribute("src",hupso_p+"https://static.hupso.com/share/js/service.html?r_x="+params+"&w_x=float.js&n_x=");ifrm.style.width="0px";ifrm.style.height="0px";ifrm.style.border="0";document.body.appendChild(ifrm);hupso_srv=2}
4"function"!=typeof document.getElementsByClassName&&(document.getElementsByClassName=function(b){var e=document.getElementsByTagName("*"),a=[];for(i=0;i<e.length;i++)if(e[i].getAttribute("class"))for(ecl=e[i].getAttribute("class").split(" "),j=0;j<ecl.length;j++)ecl[j].toLowerCase()==b.toLowerCase()&&a.push(e[i]);else if(e[i].className)for(ecl=e[i].className.split(" "),j=0;j<ecl.length;j++)ecl[j].toLowerCase()==b.toLowerCase()&&a.push(e[i]);return a});
5window.getComputedStyle||(window.getComputedStyle=function(b,e){this.el=b;this.getPropertyValue=function(a){"float"==a&&(a="styleFloat");var c=/(\-([a-z]){1})/g;c.test(a)&&(a=a.replace(c,function(a,b,c){return c.toUpperCase()}));return b.currentStyle[a]?b.currentStyle[a]:null};return this});var all_services="Facebook Twitter StumbleUpon Digg Reddit Bebo Delicious Linkedin".split(" "),nodes=document.getElementsByClassName("hupso_float"),count;
6for(count in nodes){var node=nodes[count];if("A"==node.nodeName){var newDiv=document.createElement("div");newDiv.id="hupso_buttons_"+count;newDiv.className="hupso_c";newDiv.style.font.size="10px";newDiv.style.position="absolute";var res=document.getElementById(newDiv.id);null==res&&node.appendChild(newDiv);node.onclick=function(b){return!1};load_buttons(newDiv.id)}}
7function load_buttons(b){var e=getNextZindex();var a="undefined"===typeof hupso_url_f?document.URL:""==hupso_url_f?document.URL:hupso_url_f;var c="undefined"===typeof hupso_title_f?document.title:""==hupso_title_f?document.title:hupso_title_f;c=c.replace(/&quot;/g,'"');a=a.replace(/#/g,"");var l=document.location.protocol+"https://www.hupso.com/share/add.php?service=",m="&title="+encodeURIComponent(c)+"&url="+encodeURIComponent(a),t=m+"&via="+encodeURIComponent(hupso_twitter_via),g=""!=hupso_image_folder_url?
8hupso_image_folder_url:document.location.protocol+"https://static.hupso.com/share/img/services/";var n='target="_blank" '+('><img onmouseover="this.style.opacity=0.8;" onmouseout="this.style.opacity=1;" style="padding-right: 5px; padding-top: 5px; margin: 0; border: 0px; outline: none; box-shadow: none; max-width:none; " src="'+g+"32/");var p=' onclick="hupso_orig_pinterest()" '+('><img onmouseover="this.style.opacity=0.8;" onmouseout="this.style.opacity=1;" style="padding-right: 5px; padding-top: 5px; margin: 0; background-color:transparent; display:inline-block; border:0px; outline: none; box-shadow: none; max-width:none;  " src="'+
9g+"32/");var q=' onclick="window.print()" '+('><img onmouseover="this.style.opacity=0.8;" onmouseout="this.style.opacity=1;" style="padding-right: 5px; padding-top: 5px; margin: 0; background-color:transparent; display:inline-block; border:0px; outline: none; box-shadow: none; max-width:none;  " src="'+g+"32/");var r='><img onmouseover="this.style.opacity=0.8;" onmouseout="this.style.opacity=1;" style="padding-right: 5px; padding-top: 5px; margin: 0; background-color:transparent; display:inline-block; border:0px; outline: none; box-shadow: none; max-width:none;  " src="'+
10g+"32/";g=document.getElementById(b);if(null!=g&&""==g.innerHTML){parent_width_out=g.parentNode.offsetWidth;parent_height_out=g.parentNode.offsetHeight;parent_width_out=100;var k=80;var h=0,f="";"labels"==hupso_icon_type_f&&(f+='<table border="0" rowspan="10">');for(var u in hupso_services_f){var d=hupso_services_f[u];if(!(3>d.length||30<d.length||-1!=d.indexOf("function")||-1!=d.indexOf("(")||-1!=d.indexOf("{")||-1!=d.indexOf("[")||"object"===typeof d)&&(sfile=d.toLowerCase(),sfile=sfile.replace(" ",
11""),"Google Plus"!=d)){new_url="Twitter"==d&&""!=hupso_twitter_via?t:m;switch(d){case "Pinterest":if("labels"==hupso_icon_type_f)line='<tr><td style="width: '+k+'px; text-align:center"><a style="text-decoration:underline; background:none; color: #5C5C5C; font-family: arial,sans-serif;" href="javascript:void(0)" '+p+sfile+'.png" alt="'+d+'" title="'+d+'" /></a></td></tr>',line+='<tr><td style="text-align:center"><a style="text-decoration:underline; background:none; color: #5C5C5C; font-family: arial,sans-serif;" href="javascript:void(0)" onclick="hupso_pinterest()" >'+
12d+"</a></td></tr>";else if(line='<a style="text-decoration:underline; background:none; color: #5C5C5C; font-family: arial,sans-serif;" href="javascript:void(0)" '+p+sfile+'.png" alt="'+d+'" title="'+d+'" /></a>',hupso_float_right_f||hupso_float_left_f)line+="<br/>";break;case "Print":"labels"==hupso_icon_type_f?(line='<tr><td style="width: '+k+'px; text-align:center"><a style="text-decoration:underline; background:none; color: #5C5C5C; font-family: arial,sans-serif;" href="javascript:void(0)" '+q+
13sfile+'.png" alt="'+d+'" title="'+d+'" /></a></td></tr>',line+='<tr><td style="text-align:center"><a style="text-decoration:underline; background:none; color: #5C5C5C; font-family: arial,sans-serif;" href="javascript:void(0)" onclick="window.print()" >'+d+"</a></td></tr>"):line='<a style="text-decoration:underline; background:none; color: #5C5C5C; font-family: arial,sans-serif;" href="javascript:void(0)" '+q+sfile+'.png" alt="'+d+'" title="'+d+'" /></a>';break;case "Email":"labels"==hupso_icon_type_f?
14(line='<tr><td style="width: '+k+'px; text-align:center"><a style="text-decoration:underline; background:none; color: #5C5C5C; font-family: arial,sans-serif;" href="mailto:?Subject='+hupso_mailto(c)+"&Body="+hupso_mailto(a)+'" '+r+sfile+'.png" alt="'+d+'" title="'+d+'" /></a></td></tr>',line+='<tr><td style="text-align:center"><a style="text-decoration:underline; background:none; color: #5C5C5C; font-family: arial,sans-serif;" href="mailto:?Subject='+hupso_mailto(c)+"&Body="+hupso_mailto(a)+'" >'+
15d+"</a></td></tr>"):line='<a style="text-decoration:underline; background:none; color: #5C5C5C; font-family: arial,sans-serif;" href="mailto:?Subject='+hupso_mailto(c)+"&Body="+hupso_mailto(a)+'" '+r+sfile+'.png" alt="'+d+'" title="'+d+'" /></a>';break;default:if("labels"==hupso_icon_type_f)line='<tr><td style="width: '+k+'px; text-align:center"><a style="text-decoration:underline; background:none; color: #5C5C5C; font-family: arial,sans-serif;" href="'+l+sfile+new_url+'" '+n+sfile+'.png" alt="'+
16d+'" title="'+d+'" /></a></td></tr>',line+='<tr><td style="text-align:center"><a style="text-decoration:underline; background:none; color: #5C5C5C; font-family: arial,sans-serif;" href="'+l+sfile+new_url+'" target="_blank">'+d+"</a></td></tr>";else if(line='<a style="text-decoration:underline; background:none; color: #5C5C5C; font-family: arial,sans-serif;" href="'+l+sfile+new_url+'" '+n+sfile+'.png" alt="'+d+'" title="'+d+'" /></a>',hupso_float_right_f||hupso_float_left_f)line+="<br/>"}h++;f+=line}}"labels"==
17hupso_icon_type_f&&(f+="</table>");"icons"==hupso_icon_type_f&&6>h&&(k=a=21*h,parent_width_out=a+20);"icons"==hupso_icon_type_f&&(hupso_float_left_f||hupso_float_right_f)&&(parent_width_out=52,k=32);a='<div style="position:absolute; border: 2px solid '+hupso_border_f+"; font-size: 13px; border-radius: 10px 10px 10px 10px; margin-bottom: 20px; width: "+parent_width_out+"px;
17 margin-top: 1px; background: "+hupso_background_f+"; z-index: "+e+';">'+('<div id="hupso_float_menu" style="text-align:left; border-radius: 6px 6px 6px 6px; padding: 10px 10px; width:'+
18k+"px; height:100%; z-index: "+e+"; background: "+hupso_background_f+'; ">');a=a+'<div id="hupso_content">'+f;"labels"==hupso_icon_type_f&&(a+="</div>");a+="</div></div>";f=document.createElement("div");f.style.height=21*h+"px";f.style.width=parent_width_out+"px";f.innerHTML=a;displayed=!0;c=a=1;f.id="float_"+b;f.style.top=c+"px";f.style.left=a+"px";f.style.zindex=e;f.style.position="fixed";f.style.display="none";null==document.getElementById(f.id)&&document.body.appendChild(f);b=document.getElementById(f.id);
19b=parseInt(b.style.height);h=(window.innerHeight||document.documentElement.clientHeight)/2-b/2-9*h;hupso_float_left_f&&(a=5,c=h);hupso_float_right_f&&(a=(window.innerWidth||document.documentElement.clientWidth)-parent_width_out-20-5,f.style.paddingRight="10px",c=h);f.style.left=a+"px";f.style.top=c+"px";h=window.getComputedStyle(g.parentNode.parentNode,"");b=parseInt(h.getPropertyValue("padding-top"));h=0;"Opera"==navigator.appName&&(h-=b);if("Microsoft Internet Explorer"!=navigator.appName){for(b=
20!1;null!=g;){if("entry-content"==g.className){b=!0;break}g=g.parentNode}b&&(h-=6);f.style.top=parseInt(f.style.top)+h+"px"}f.style.display="block"}}function hupso_orig_pinterest(){var b=document.createElement("script");b.src="http://assets.pinterest.com/js/pinmarklet.js";document.getElementsByTagName("head")[0].appendChild(b)}
21function absoluteURL(b){var e=document.createElement("a"),a=document.getElementsByTagName("base")[0],c=a&&a.href,l=document.head||document.getElementsByTagName("head")[0],m=a||l.appendChild(document.createElement("base"));m.href="";e.href=b;b=e.href;a?a.href=c:l.removeChild(m);return b}function hupso_mailto(b){b=b.replace(/&/g,"%26");return b=b.replace(/"/g,"%22")}
22function getNextZindex(){var b=0,e=0;var a=document.getElementsByTagName("*");for(var c=0;c<a.length;c++)a[c].style?e=parseInt(a[c].style.zIndex):window.getComputedStyle&&(e=parseInt(document.defaultView.getComputedStyle(a[c],null).getPropertyValue("z-index"))),!isNaN(e)&&e>b&&(b=e);return b+1}function createCookie(b,e,a){if(a){var c=new Date;c.setTime(c.getTime()+864E5*a);a="; expires="+c.toGMTString()}else a="";document.cookie=b+"="+e+a+";domain=static.hupso.com; path=/"}
23function readCookie(b){b+="=";for(var e=document.cookie.split(";"),a=0;a<e.length;a++){for(var c=e[a];" "==c.charAt(0);)c=c.substring(1,c.length);if(0==c.indexOf(b))return c.substring(b.length,c.length)}return 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.