PageSourceSearch

https://n2m-architekten.de/administrator/myspot/js/demo.js

js n2m-architekten.de collected 2026-10-06 15:16:58 UTC 22,911 bytes, 1 lines download raw bytes

1!function(a){var b=function(){var b=65,c='<div class="colorpicker"><div class="colorpicker_color"><div><div></div></div></div><div class="colorpicker_hue"><div></div></div><div class="colorpicker_new_color"></div><div class="colorpicker_current_color"></div><div class="colorpicker_hex"><input type="text" maxlength="6" size="6" /></div><div class="colorpicker_rgb_r colorpicker_field"><input type="text" maxlength="3" size="3" /><span></span></div><div class="colorpicker_rgb_g colorpicker_field"><input type="text" maxlength="3" size="3" /><span></span></div><div class="colorpicker_rgb_b colorpicker_field"><input type="text" maxlength="3" size="3" /><span></span></div><div class="colorpicker_hsb_h colorpicker_field"><input type="text" maxlength="3" size="3" /><span></span></div><div class="colorpicker_hsb_s colorpicker_field"><input type="text" maxlength="3" size="3" /><span></span></div><div class="colorpicker_hsb_b colorpicker_field"><input type="text" maxlength="3" size="3" /><span></span></div><div class="colorpicker_submit"></div></div>',d={eventName:"click",onShow:function(){},onBeforeShow:function(){},onHide:function(){},onChange:function(){},onSubmit:function(){},color:"ff0000",livePreview:!0,flat:!1},e=function(b,c){var d=L(b);a(c).data("colorpicker").fields.eq(1).val(d.r).end().eq(2).val(d.g).end().eq(3).val(d.b).end()},f=function(b,c){a(c).data("colorpicker").fields.eq(4).val(b.h).end().eq(5).val(b.s).end().eq(6).val(b.b).end()},g=function(b,c){a(c).data("colorpicker").fields.eq(0).val(N(b)).end()},h=function(b,c){a(c).data("colorpicker").selector.css("backgroundColor","#"+N({h:b.h,s:100,b:100})),a(c).data("colorpicker").selectorIndic.css({left:parseInt(150*b.s/100,10),top:parseInt(150*(100-b.b)/100,10)})},i=function(b,c){a(c).data("colorpicker").hue.css("top",parseInt(150-150*b.h/360,10))},j=function(b,c){a(c).data("colorpicker").currentColor.css("backgroundColor","#"+N(b))},k=function(b,c){a(c).data("colorpicker").newColor.css("backgroundColor","#"+N(b))},l=function(c){var d=c.charCode||c.keyCode||-1;if(d>b&&90>=d||32==d)return!1;var e=a(this).parent().parent();e.data("colorpicker").livePreview===!0&&m.apply(this)},m=function(b){var c,d=a(this).parent().parent();d.data("colorpicker").color=c=this.parentNode.className.indexOf("_hex")>0?J(H(this.value)):this.parentNode.className.indexOf("_hsb")>0?F({h:parseInt(d.data("colorpicker").fields.eq(4).val(),10),s:parseInt(d.data("colorpicker").fields.eq(5).val(),10),b:parseInt(d.data("colorpicker").fields.eq(6).val(),10)}):K(G({r:parseInt(d.data("colorpicker").fields.eq(1).val(),10),g:parseInt(d.data("colorpicker").fields.eq(2).val(),10),b:parseInt(d.data("colorpicker").fields.eq(3).val(),10)})),b&&(e(c,d.get(0)),g(c,d.get(0)),f(c,d.get(0))),h(c,d.get(0)),i(c,d.get(0)),k(c,d.get(0)),d.data("colorpicker").onChange.apply(d,[c,N(c),L(c)])},n=function(){var b=a(this).parent().parent();b.data("colorpicker").fields.parent().removeClass("colorpicker_focus")},o=function(){b=this.parentNode.className.indexOf("_hex")>0?70:65,a(this).parent().parent().data("colorpicker").fields.parent().removeClass("colorpicker_focus"),a(this).parent().addClass("colorpicker_focus")},p=function(b){var c=a(this).parent().find("input").focus(),d={el:a(this).parent().addClass("colorpicker_slider"),max:this.parentNode.className.indexOf("_hsb_h")>0?360:this.parentNode.className.indexOf("_hsb")>0?100:255,y:b.pageY,field:c,val:parseInt(c.val(),10),preview:a(this).parent().parent().data("colorpicker").livePreview};a(document).bind("mouseup",d,r),a(document).bind("mousemove",d,q)},q=function(a){return a.data.field.val(Math.max(0,Math.min(a.data.max,parseInt(a.data.val+a.pageY-a.data.y,10)))),a.data.preview&&m.apply(a.data.field.get(0),[!0]),!1},r=function(b){return m.apply(b.data.field.get(0),[!0]),b.data.el.removeClass("colorpicker_slider").find("input").focus(),a(document).unbind("mouseup",r),a(document).unbind("mousemove",q),!1},s=function(){var b={cal:a(this).parent(),y:a(this).offset().top};b.preview=b.cal.data("colorpicker").livePreview,a(document).bind("mouseup",b,u),a(document).bind("mousemove",b,t)},t=function(a){return m.apply(a.data.cal.data("colorpicker").fields.eq(4).val(parseInt(360*(150-Math.max(0,Math.min(150,a.pageY-a.data.y)))/150,10)).get(0),[a.data.preview]),!1},u=function(b){return e(b.data.cal.data("colorpicker").color,b.data.cal.get(0)),g(b.data.cal.data("colorpicker").color,b.data.cal.get(0)),a(document).unbind("mouseup",u),a(document).unbind("mousemove",t),!1},v=function(){var b={cal:a(this).parent(),pos:a(this).offset()};b.preview=b.cal.data("colorpicker").livePreview,a(document).bind("mouseup",b,x),a(document).bind("mousemove",b,w)},w=function(a){return m.apply(a.data.cal.data("colorpicker").fields.eq(6).val(parseInt(100*(150-Math.max(0,Math.min(150,a.pageY-a.data.pos.top)))/150,10)).end().eq(5).val(parseInt(100*Math.max(0,Math.min(150,a.pageX-a.data.pos.left))/150,10)).get(0),[a.data.preview]),!1},x=function(b){return e(b.data.cal.data("colorpicker").color,b.data.cal.get(0)),g(b.data.cal.data("colorpicker").color,b.data.cal.get(0)),a(document).unbind("mouseup",x),a(document).unbind("mousemove",w),!1},y=function(){a(this).addClass("colorpicker_focus")},z=function(){a(this).removeClass("colorpicker_focus")},A=function(){var b=a(this).parent(),c=b.data("colorpicker").color;b.data("colorpicker").origColor=c,j(c,b.get(0)),b.data("colorpicker").onSubmit(c,N(c),L(c),b.data("colorpicker").el)}
1,B=function(){var b=a("#"+a(this).data("colorpickerId"));b.data("colorpicker").onBeforeShow.apply(this,[b.get(0)]);var c=a(this).offset(),d=E(),e=c.top+this.offsetHeight,f=c.left;return e+176>d.t+d.h&&(e-=this.offsetHeight+176),f+356>d.l+d.w&&(f-=356),b.css({left:f+"px",top:e+"px"}),0!=b.data("colorpicker").onShow.apply(this,[b.get(0)])&&b.show(),a(document).bind("mousedown",{cal:b},C),!1},C=function(b){D(b.data.cal.get(0),b.target,b.data.cal.get(0))||(0!=b.data.cal.data("colorpicker").onHide.apply(this,[b.data.cal.get(0)])&&b.data.cal.hide(),a(document).unbind("mousedown",C))},D=function(a,b,c){if(a==b)return!0;if(a.contains)return a.contains(b);if(a.compareDocumentPosition)return!!(16&a.compareDocumentPosition(b));for(var d=b.parentNode;d&&d!=c;){if(d==a)return!0;d=d.parentNode}return!1},E=function(){var a="CSS1Compat"==document.compatMode;return{l:window.pageXOffset||(a?document.documentElement.scrollLeft:document.body.scrollLeft),t:window.pageYOffset||(a?document.documentElement.scrollTop:document.body.scrollTop),w:window.innerWidth||(a?document.documentElement.clientWidth:document.body.clientWidth),h:window.innerHeight||(a?document.documentElement.clientHeight:document.body.clientHeight)}},F=function(a){return{h:Math.min(360,Math.max(0,a.h)),s:Math.min(100,Math.max(0,a.s)),b:Math.min(100,Math.max(0,a.b))}},G=function(a){return{r:Math.min(255,Math.max(0,a.r)),g:Math.min(255,Math.max(0,a.g)),b:Math.min(255,Math.max(0,a.b))}},H=function(a){var b=6-a.length;if(b>0){for(var c=[],d=0;b>d;d++)c.push("0");c.push(a),a=c.join("")}return a},I=function(a){var a=parseInt(a.indexOf("#")>-1?a.substring(1):a,16);return{r:a>>16,g:(65280&a)>>8,b:255&a}},J=function(a){return K(I(a))},K=function(a){var b={h:0,s:0,b:0},c=Math.min(a.r,a.g,a.b),d=Math.max(a.r,a.g,a.b),e=d-c;return b.b=d,b.s=0!=d?255*e/d:0,b.h=0!=b.s?a.r==d?(a.g-a.b)/e:a.g==d?2+(a.b-a.r)/e:4+(a.r-a.g)/e:-1,b.h*=60,b.h<0&&(b.h+=360),b.s*=100/255,b.b*=100/255,b},L=function(a){var b={},c=Math.round(a.h),d=Math.round(255*a.s/100),e=Math.round(255*a.b/100);if(0==d)b.r=b.g=b.b=e;else{var f=e,g=(255-d)*e/255,h=(f-g)*(c%60)/60;360==c&&(c=0),60>c?(b.r=f,b.b=g,b.g=g+h):120>c?(b.g=f,b.b=g,b.r=f-h):180>c?(b.g=f,b.r=g,b.b=g+h):240>c?(b.b=f,b.r=g,b.g=f-h):300>c?(b.b=f,b.g=g,b.r=g+h):360>c?(b.r=f,b.g=g,b.b=f-h):(b.r=0,b.g=0,b.b=0)}return{r:Math.round(b.r),g:Math.round(b.g),b:Math.round(b.b)}},M=function(b){var c=[b.r.toString(16),b.g.toString(16),b.b.toString(16)];return a.each(c,function(a,b){1==b.length&&(c[a]="0"+b)}),c.join("")},N=function(a){return M(L(a))},O=function(){var b=a(this).parent(),c=b.data("colorpicker").origColor;b.data("colorpicker").color=c,e(c,b.get(0)),g(c,b.get(0)),f(c,b.get(0)),h(c,b.get(0)),i(c,b.get(0)),k(c,b.get(0))};return{init:function(b){if(b=a.extend({},d,b||{}),"string"==typeof b.color)b.color=J(b.color);else if(void 0!=b.color.r&&void 0!=b.color.g&&void 0!=b.color.b)b.color=K(b.color);else{if(void 0==b.color.h||void 0==b.color.s||void 0==b.color.b)return this;b.color=F(b.color)}return this.each(function(){if(!a(this).data("colorpickerId")){var d=a.extend({},b);d.origColor=b.color;var q="collorpicker_"+parseInt(1e3*Math.random());a(this).data("colorpickerId",q);var r=a(c).attr("id",q);d.flat?r.appendTo(this).show():r.appendTo(document.body),d.fields=r.find("input").bind("keyup",l).bind("change",m).bind("blur",n).bind("focus",o),r.find("span").bind("mousedown",p).end().find(">div.colorpicker_current_color").bind("click",O),d.selector=r.find("div.colorpicker_color").bind("mousedown",v),d.selectorIndic=d.selector.find("div div"),d.el=this,d.hue=r.find("div.colorpicker_hue div"),r.find("div.colorpicker_hue").bind("mousedown",s),d.newColor=r.find("div.colorpicker_new_color"),d.currentColor=r.find("div.colorpicker_current_color"),r.data("colorpicker",d),r.find("div.colorpicker_submit").bind("mouseenter",y).bind("mouseleave",z).bind("click",A),e(d.color,r.get(0)),f(d.color,r.get(0)),g(d.color,r.get(0)),i(d.color,r.get(0)),h(d.color,r.get(0)),j(d.color,r.get(0)),k(d.color,r.get(0)),d.flat?r.css({position:"relative",display:"block"}):a(this).bind(d.eventName,B)}})},showPicker:function(){return this.each(function(){a(this).data("c
1olorpickerId")&&B.apply(this)})},hidePicker:function(){return this.each(function(){a(this).data("colorpickerId")&&a("#"+a(this).data("colorpickerId")).hide()})},setColor:function(b){if("string"==typeof b)b=J(b);else if(void 0!=b.r&&void 0!=b.g&&void 0!=b.b)b=K(b);else{if(void 0==b.h||void 0==b.s||void 0==b.b)return this;b=F(b)}return this.each(function(){if(a(this).data("colorpickerId")){var c=a("#"+a(this).data("colorpickerId"));c.data("colorpicker").color=b,c.data("colorpicker").origColor=b,e(b,c.get(0)),f(b,c.get(0)),g(b,c.get(0)),i(b,c.get(0)),h(b,c.get(0)),j(b,c.get(0)),k(b,c.get(0))}})}}}();a.fn.extend({ColorPicker:b.init,ColorPickerHide:b.hidePicker,ColorPickerShow:b.showPicker,ColorPickerSetColor:b.setColor})}(jQuery),function(a,b,c){a(c).ready(function(){a("#hotspot").hotspot({responsive:!0})})}(jQuery,window,document),function(a,b){function c(){this.settings={show_on:"mouseover",responsive:!1}}function d(a,b){this.id=v,this.type="spot",this.x=a,this.y=b,this.content="",this.html='<div class="hb-spot hb-spot-object" id="hb-spot-'+this.id+'"><div class="hb-tooltip-wrap"><div class="hb-tooltip"></div></div></div>',this.css="",this.root="",this.width=30,this.height=30,this.tooltipWidth="auto",this.tintColor="#e52929",this.settings={visible:"visible",show_on:s.settings.show_on,popup_position:"left",content:"",tooltip_width:200,tooltip_auto_width:!0},v++}function e(a,b){this.id=v,this.type="rect",this.x=a,this.y=b,this.width=0,this.height=0,this.content="",this.popupPosition=0,this.html='<div class="hb-rect-spot hb-spot-object" id="hb-spot-'+this.id+'"><div class="hb-tooltip-wrap"><div class="hb-tooltip"></div></div></div>',this.css="",this.root="",this.tintColor="#e52929",this.success=!0,this.settings={visible:"invisible",show_on:s.settings.show_on,popup_position:"left",content:"",tooltip_width:200,tooltip_auto_width:!0},v++}function f(){s=new c,t=a("#hb-map-wrap"),H=t.offset().left,I=t.offset().top;var b=new Image;b.src=t.find("img").attr("src"),b.complete?(J=t.width(),K=t.height()):b.onload=function(){J=t.width(),K=t.height()},T='<div class="hb-scale-handle"></div>',U='<div class="hb-move-handle"></div>',a("body").prepend('<div id="hb-help-tooltip"></div>'),V=a("#hb-help-tooltip"),a("#input-tint-color").ColorPicker({onChange:function(b,c){a("#input-tint-color").val(c),a("#input-tint-color").css({background:"#"+c}),W.set_tint_color("#"+c)}})}function g(){a("#result").on("click",r),t.on("mousedown",function(b){return B=x,C=y,a(b.target).hasClass("hb-scale-handle")?(R=!0,w=u[a(b.target).closest(".hb-spot-object").attr("id").replace("hb-spot-","")],!1):a(b.target).hasClass("hb-move-handle")?(P=!0,w=u[a(b.target).closest(".hb-spot-object").attr("id").replace("hb-spot-","")],!1):a(b.target).hasClass("hb-spot")?(P=!0,w=u[a(b.target).attr("id").replace("hb-spot-","")],!1):0!=a(b.target).closest(".hb-spot-object").length||a(b.target).hasClass("hb-spot-object")?void 0:(L=!0,!1)}),a(document).on("mousemove",function(a){return x=a.pageX,y=a.pageY,z=x-B,A=y-C,O&&j(),w!==b?R?(B=x,C=y,R=!1,S=!0,void w.start_scaling()):S?void w.scale():P?(B=x,C=y,P=!1,Q=!0,void w.start_moving()):Q?void w.move():L&&!M?void(z>5&&A>5&&(M=!0,N=!0,w=new e(x-H,y-I),w.init())):N?void w.draw():void j():void 0}),a(document).on("mouseup",function(b){return Q||S||P||R?(Q=!1,S=!1,P=!1,void(R=!1)):(M?(w.end_drawing(),w.success?(u.push(w),h()):w.release(),M=!1,N=!1):"hb-map-wrap"!=a(b.target).attr("id")&&0==a(b.target).closest("#hb-map-wrap").length||!L||(w=new d(x-H,y-I),u[v-1]=w,w.init(),h()),void(L=!1))})}function h(){a(".hb-scale-handle, .hb-move-handle, .hb-spot, .hb-spot-object").off(".hb"),a(".hb-scale-handle").on("mouseover.hb",function(){i("scale")}),a(".hb-scale-handle").on("mouseout.hb",function(){k()}),a(".hb-move-handle").on("mouseover.hb",function(){i("move")}),a(".hb-move-handle").on("mouseout.hb",function(){k()}),a(".hb-spot").on("mouseover.hb",function(){i("move")}),a(".hb-spot").on("mouseout.hb",function(){k()}),a(".hb-spot-object").on("mouseup.hb",function(){a(this).toggleClass("visible-tooltip"),u[a(this).attr("id").replace("hb-spot-","")].select()})}function i(a){V.html(a),V.show(),V.css({left:x+15,top:y+15}),O=!0}function j(){V.css({left:x+15,top:y+15})}function k(){V.hide(),O=!1}function l(){a("#visible-select").val(W.settings.visible),a("#show-select").val(s.settings.show_on),a("#position-select").val(W.settings.popup_position),a("#content").val(W.settings.content),a("#input-tint-color").ColorPickerSetColor(W.tintColor),a("#input-tint-color").css({background:W.tintColor}),W.settings.tooltip_auto_width?(a("#tooltip-auto-width").attr("checked","checked"),a("#tooltip-width").attr("disabled",!0).val(W.settings.tooltip_width)):(a("#tooltip-auto-width").removeAttr("checked"),a("#tooltip-width").attr("disabled",!1).val(W.settings.tooltip_width))}function m(){a("#visible-select").on("change",function(){W&&(W.settings.visible=a(this).val(),W.apply_settings())}),a("#show-select").on("change",function(){s.set("show_on",a(this).val()),s.apply()}),a("#checkbox-responsive").on("change",function(){s.settings.responsive=a(this).prop("checked")}),a("#position-select").on("change",function(){W&&(W.settings.popup_position=a(this).val(),W.apply_settings())}),a("#content").on("change",function(){W&&(W.settings.content=a(this).val(),W.apply_settings())}),a("#delete").on("click",function(){W&&W.del()}),a("#tooltip-auto-width").on("change",function(){1==a(this).get(0).checked?(a("#tooltip-width").attr("disabled",!0),W.settings.tooltip_auto_width=!0):(a("#tooltip-width").attr("disabled",!1),W.settings.tooltip_auto_width=!1),W.settings.tooltip_width=parseInt(a("#tooltip-width").val().replace("px","")),W.apply_settings()}),a("#tooltip-width").on("change",function(){W.settings.tooltip_width=parseInt(a("#tooltip-width").val().replace("px","")),W.apply_settings()})}function n(){a("#hb-settings-wrap").find("input, textarea, select").attr("disabled",!0)}function o(){a("input, textarea, select").not("#tooltip-width").attr("disabled",!1),a("#tooltip-auto-width").attr("checked")&&a("#tooltip-width").attr("disabled",!0)}function p(a){var b,c="",d=u.length;for(c+='<div id="hotspot-'+a+'" class="hs-wrap hs-loading">\n',c+='<img src="'+t.find("img").attr("src")+'">\n',b=0;d>b;b++)if(u[b]){var e=u[b].x/J*100,f=u[b].y/K*100,g=u[b].width/J*100,h=u[b].height/K*100,i=u[b].type;"spot"==i&&(g=u[b].width,h=u[b].height),c+='<div class="hs-spot-object" data-tint-color="'+u[b].tintColor+'" data-type="'+u[b].type+'" data-x="'+e+'" data-y="'+f+'" data-width="'+g+'" data-height="'+h+'" data-popup-position="'+u[b].settings.popup_position+'" data-visible="'+u[b].settings.visible+'" data-tooltip-width="'+u[b].settings.tooltip_width+'" data-tooltip-auto-width="'+u[b].settings.tooltip_auto_width+'">
1\n',c+=u[b].settings.content+"\n",c+="</div>\n"}return c+="</div>\n"}function q(a){var b="";return b+='$("#hotspot-'+a+'").hotspot({ "show_on" : "'+s.settings.show_on+'", "responsive" : '+s.settings.responsive+" });"}function r(){var b=Math.round(100*Math.random()),c=p(b);a("#hb-html-code").val(c),a("#hb-javascript-code").val(q(b)),a("#hb-live-preview").html(c),a("#hb-live-preview").find(".hs-wrap").hotspot({show_on:s.settings.show_on,responsive:s.settings.responsive})}var s,t=0,u=new Array,v=0,w=0,x=0,y=0,z=0,A=0,B=0,C=0,D=0,E=0,F=0,G=0,H=0,I=0,J=0,K=0,L=!1,M=!1,N=!1,O=!1,P=!1,Q=!1,R=!1,S=!1,T="",U="",V="",W=b;c.prototype.apply=function(){for(var a=u.length,b=0;a>b;b++)u[b].settings.show_on=this.settings.show_on,u[b].apply_settings()},c.prototype.set=function(a,b){var c=u.length;this.settings[a]=b;for(var d=0;c>d;d++)u[d].settings[a]=this.settings[a]},d.prototype.init=function(){t.append(this.html),this.root=a("#hb-spot-"+this.id),this.root.css({left:this.x,top:this.y,width:this.width,height:this.height,"margin-left":-this.width/2,"margin-top":-this.height/2}),this.apply_settings()},d.prototype.start_moving=function(){D=this.x,E=this.y},d.prototype.move=function(){this.x=D+z+this.width/2>J?J-this.width/2:D+z-this.width/2<0?this.width/2:D+z,this.y=E+A+this.height/2>K?K-this.height/2:E+A-this.height/2<0?this.height/2:E+A,this.root.css({left:this.x,top:this.y})},d.prototype.select=function(){o(),a(".hb-spot-object.selected").removeClass("selected"),this.root.addClass("selected"),W=this,l()},d.prototype.del=function(){this.deselect(),n(),this.root.remove(),u[this.id]=null},d.prototype.deselect=function(){this.root.removeClass("selected"),W=b},d.prototype.apply_settings=function(){this.root.removeClass("left").removeClass("top").removeClass("bottom").removeClass("right").removeClass("mouseover").removeClass("always").removeClass("click").removeClass("visible").removeClass("invisible"),this.root.addClass(this.settings.popup_position),this.root.addClass(this.settings.show_on),this.root.addClass(this.settings.visible),this.root.find(".hb-tooltip").html(this.settings.content),this.root.find(".hb-tooltip-wrap").css(this.settings.tooltip_auto_width?{width:"auto"}:{width:this.settings.tooltip_width})},d.prototype.set_tint_color=function(a){var b=this;b.tintColor=a,b.root.css({background:a})},e.prototype.init=function(){t.append(this.html),this.root=a("#hb-spot-"+this.id),this.root.css({left:this.x,top:this.y}),this.apply_settings()},e.prototype.draw=function(){this.width=16>z?16:z,this.height=16>A?16:A,this.width=this.width+this.x>J?J-this.x:this.width,this.height=this.height+this.y>K?K-this.y:this.height,this.root.css({width:this.width,height:this.height})},e.prototype.end_drawing=function(){this.root.append(T),this.root.append(U),this.width<16&&this.height<16&&(this.success=!1)},e.prototype.release=function(){this.root.remove(),v--},e.prototype.start_moving=function(){D=this.x,E=this.y},e.prototype.move=function(){this.x=D+z+this.width>J?J-this.width:0>D+z?0:D+z,this.y=E+A+this.height>K?K-this.height:0>E+A?0:E+A,this.root.css({left:this.x,top:this.y})},e.prototype.start_scaling=function(){F=this.width,G=this.height},e.prototype.scale=function(){this.width=16>F+z?16:F+z,this.height=16>G+A?16:G+A,this.width=this.width+this.x>J?J-this.x:this.width,this.height=this.height+this.y>K?K-this.y:this.height,this.root.css({width:this.width,height:this.height})},e.prototype.select=function(){o(),a(".hb-spot-object.selected").removeClass("selected"),this.root.addClass("selected"),W=this,l()},e.prototype.del=function(){this.deselect(),n(),this.root.remove(),u[this.id]=null},e.prototype.deselect=function(){this.root.removeClass("selected"),W=b},e.prototype.apply_settings=function(){this.root.removeClass("left").removeClass("top").removeClass("bottom").removeClass("right").removeClass("always").removeClass("mouseover").removeClass("click").removeClass("visible").removeClass("invisible"),this.root.addClass(this.settings.popup_position),this.root.addClass(this.settings.show_on),this.root.addClass(this.settings.visible),this.root.find(".hb-tooltip").html(this.settings.content),this.root.find(".hb-tooltip-wrap").css(this.settings.tooltip_auto_width?{width:"auto"}:{width:this.settings.tooltip_width})},e.prototype.set_tint_color=function(a){var b=this;b.tintColor=a,b.root.css({"border-color":a})},a(document).ready(function(){f(),g(),m(),n()})}(jQuery),!function(a){function b(a,b){this.options=b,this.root=a}b.prototype.init=function(){if(!this.root.hasClass("hs-loaded")){var b="",c="",d="auto",e="",f="",g=this.root.find("img"),h=g.width();
1g.height(),b+='<img src="'+g.first().attr("src")+'" class="hsmap-image">',this.root.find(".hs-spot-object").each(function(){var g=a(this).data("x"),h=a(this).data("y"),i=a(this).data("width"),j=a(this).data("height"),k=0,l=0,m=a(this).data("tint-color"),n="",o="";"rect"==a(this).data("type")?(c="hs-rect",i+="%",j+="%",n="border-color: "+m):(c="hs-spot",k=-i/2,l=-j/2,i+="px",j+="px",o="background: "+m),e="visible"==a(this).data("visible")?"visible":"",d=0==a(this).data("tooltip-auto-width")?a(this).data("tooltip-width")+"px":"auto",f=a(this).data("popup-position"),b+='<div class="'+c+" "+e+" "+f+' hs-spot-object" style="left: '+g+"%; top: "+h+"%; width: "+i+"; height: "+j+"; margin-left: "+k+"px; margin-top: "+l+'px;">',b+='	<div class="hs-spot-shape" style="'+n+'"></div><div class="hs-spot-shape-inner" style="'+o+'"></div><div class="hs-spot-shape-inner-two"></div>',b+='	<div class="hs-spot-tooltip-outer">',b+='		<div class="hs-tooltip-buffer"></div>',b+='		<div class="hs-tooltip-wrap" style="width: '+d+';">',b+='			<div class="hs-tooltip">',b+=a(this).html(),b+="			</div>",b+="		</div>",b+="	</div>",b+="</div>"}),this.root.html(b),this.root.removeClass("hs-loading"),this.root.addClass(this.options.show_on),this.root.addClass(this.options.color_scheme),this.options.transparent_spots&&this.root.addClass("transparent-spots"),this.options.responsive?this.root.addClass("responsive"):0!=h&&this.root.css({width:h}),"click"==this.options.show_on&&a(".hs-spot-object").on("click",function(){a(this).toggleClass("visible-tooltip")}),"mouseover"==this.options.show_on&&(a(".hs-spot-object").on("mouseover",function(){a(this).addClass("visible-tooltip")}),a(".hs-spot-object").on("mouseout",function(){a(this).removeClass("visible-tooltip")})),this.root.addClass("hs-loaded")}},a.fn.hotspot=function(c){var d={show_on:"mouseover",transparent_spots:!0,color_scheme:"red"};return O=a.extend(!0,d,c),this.each(function(){var c=new b(a(this),O);c.init()})}}(jQuery);

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.