PageSourceSearch

https://queguaparadio.es/wp-content/plugins/qt-places/inc/frontend/assets/script.js?ver=7.1.2

js queguaparadio.es collected 2026-10-08 10:04:16 UTC 26,972 bytes, 406 lines download raw bytes

1function stripslashes(str) {
2  return (str + '')
3    .replace(/\\(.?)/g, function(s, n1) {
4      switch (n1) {
5        case '\\':
6          return '\\';
7        case '0':
8          return '\u0000';
9        case '':
10          return '';
11        default:
12          return n1;
13      }
14    });
15}
16
17
18(function($){
19	"use strict";
20
21    
22
23	/* Googl Maps Richmarker
24	=================================================================*/
25	if(typeof($.fn.createRichMarker) !== "function" && google.maps != undefined) {
26		$.fn.createRichMarker = function(){
27		    (function(){var b=true,f=false;function g(a){var c=a||{};this.d=this.c=f;if(a.visible==undefined)a.visible=b;if(a.shadow==undefined)a.shadow="7px -3px 5px rgba(88,88,88,0.7)";if(a.anchor==undefined)a.anchor=i.BOTTOM;this.setValues(c)}g.prototype=new google.maps.OverlayView;window.RichMarker=g;g.prototype.getVisible=function(){return this.get("visible")};g.prototype.getVisible=g.prototype.getVisible;g.prototype.setVisible=function(a){this.set("visible",a)};g.prototype.setVisible=g.prototype.setVisible;
28		    g.prototype.s=function(){if(this.c){this.a.style.display=this.getVisible()?"":"none";this.draw()}};g.prototype.visible_changed=g.prototype.s;g.prototype.setFlat=function(a){this.set("flat",!!a)};g.prototype.setFlat=g.prototype.setFlat;g.prototype.getFlat=function(){return this.get("flat")};g.prototype.getFlat=g.prototype.getFlat;g.prototype.p=function(){return this.get("width")};g.prototype.getWidth=g.prototype.p;g.prototype.o=function(){return this.get("height")};g.prototype.getHeight=g.prototype.o;
29		    g.prototype.setShadow=function(a){this.set("shadow",a);this.g()};g.prototype.setShadow=g.prototype.setShadow;g.prototype.getShadow=function(){return this.get("shadow")};g.prototype.getShadow=g.prototype.getShadow;g.prototype.g=function(){if(this.c)this.a.style.boxShadow=this.a.style.webkitBoxShadow=this.a.style.MozBoxShadow=this.getFlat()?"":this.getShadow()};g.prototype.flat_changed=g.prototype.g;g.prototype.setZIndex=function(a){this.set("zIndex",a)};g.prototype.setZIndex=g.prototype.setZIndex;
30		    g.prototype.getZIndex=function(){return this.get("zIndex")};g.prototype.getZIndex=g.prototype.getZIndex;g.prototype.t=function(){if(this.getZIndex()&&this.c)this.a.style.zIndex=this.getZIndex()};g.prototype.zIndex_changed=g.prototype.t;g.prototype.getDraggable=function(){return this.get("draggable")};g.prototype.getDraggable=g.prototype.getDraggable;g.prototype.setDraggable=function(a){this.set("draggable",!!a)};g.prototype.setDraggable=g.prototype.setDraggable;
31		    g.prototype.k=function(){if(this.c)this.getDraggable()?j(this,this.a):k(this)};g.prototype.draggable_changed=g.prototype.k;g.prototype.getPosition=function(){return this.get("position")};g.prototype.getPosition=g.prototype.getPosition;g.prototype.setPosition=function(a){this.set("position",a)};g.prototype.setPosition=g.prototype.setPosition;g.prototype.q=function(){this.draw()};g.prototype.position_changed=g.prototype.q;g.prototype.l=function(){return this.get("anchor")};g.prototype.getAnchor=g.prototype.l;
32		    g.prototype.r=function(a){this.set("anchor",a)};g.prototype.setAnchor=g.prototype.r;g.prototype.n=function(){this.draw()};g.prototype.anchor_changed=g.prototype.n;function l(a,c){var d=document.createElement("DIV");d.innerHTML=c;if(d.childNodes.length==1)return d.removeChild(d.firstChild);else{for(var e=document.createDocumentFragment();d.firstChild;)e.appendChild(d.firstChild);return e}}function m(a,c){if(c)for(var d;d=c.firstChild;)c.removeChild(d)}
33		    g.prototype.setContent=function(a){this.set("content",a)};g.prototype.setContent=g.prototype.setContent;g.prototype.getContent=function(){return this.get("content")};g.prototype.getContent=g.prototype.getContent;
34		    g.prototype.j=function(){if(this.b){m(this,this.b);var a=this.getContent();if(a){if(typeof a=="string"){a=a.replace(/^\s*([\S\s]*)\b\s*$/,"$1");a=l(this,a)}this.b.appendChild(a);var c=this;a=this.b.getElementsByTagName("IMG");for(var d=0,e;e=a[d];d++){google.maps.event.addDomListener(e,"mousedown",function(h){if(c.getDraggable()){h.preventDefault&&h.preventDefault();h.returnValue=f}});google.maps.event.addDomListener(e,"load",function(){c.draw()})}google.maps.event.trigger(this,"domready")}this.c&&
35		    this.draw()}};g.prototype.content_changed=g.prototype.j;function n(a,c){if(a.c){var d="";if(navigator.userAgent.indexOf("Gecko/")!==-1){if(c=="dragging")d="-moz-grabbing";if(c=="dragready")d="-moz-grab"}else if(c=="dragging"||c=="dragready")d="move";if(c=="draggable")d="pointer";if(a.a.style.cursor!=d)a.a.style.cursor=d}}
36		    function o(a,c){if(a.getDraggable())if(!a.d){a.d=b;var d=a.getMap();a.m=d.get("draggable");d.set("draggable",f);a.h=c.clientX;a.i=c.clientY;n(a,"dragready");a.a.style.MozUserSelect="none";a.a.style.KhtmlUserSelect="none";a.a.style.WebkitUserSelect="none";a.a.unselectable="on";a.a.onselectstart=function(){return f};p(a);google.maps.event.trigger(a,"dragstart")}}
37		    function q(a){if(a.getDraggable())if(a.d){a.d=f;a.getMap().set("draggable",a.m);a.h=a.i=a.m=null;a.a.style.MozUserSelect="";a.a.style.KhtmlUserSelect="";a.a.style.WebkitUserSelect="";a.a.unselectable="off";a.a.onselectstart=function(){};r(a);n(a,"draggable");google.maps.event.trigger(a,"dragend");a.draw()}}
38		    function s(a,c){if(!a.getDraggable()||!a.d)q(a);else{var d=a.h-c.clientX,e=a.i-c.clientY;a.h=c.clientX;a.i=c.clientY;d=parseInt(a.a.style.left,10)-d;e=parseInt(a.a.style.top,10)-e;a.a.style.left=d+"px";a.a.style.top=e+"px";var h=t(a);a.setPosition(a.getProjection().fromDivPixelToLatLng(new google.maps.Point(d-h.width,e-h.height)));n(a,"dragging");google.maps.event.trigger(a,"drag")}}function k(a){if(a.f){google.maps.event.removeListener(a.f);delete a.f}n(a,"")}
39		    function j(a,c){if(c){a.f=google.maps.event.addDomListener(c,"mousedown",function(d){o(a,d)});n(a,"draggable")}}
39function p(a){if(a.a.setCapture){a.a.setCapture(b);a.e=[google.maps.event.addDomListener(a.a,"mousemove",function(c){s(a,c)},b),google.maps.event.addDomListener(a.a,"mouseup",function(){q(a);a.a.releaseCapture()},b)]}else a.e=[google.maps.event.addDomListener(window,"mousemove",function(c){s(a,c)},b),google.maps.event.addDomListener(window,"mouseup",function(){q(a)},b)]}
40		    function r(a){if(a.e){for(var c=0,d;d=a.e[c];c++)google.maps.event.removeListener(d);a.e.length=0}}
41		    function t(a){var c=a.l();if(typeof c=="object")return c;var d=new google.maps.Size(0,0);if(!a.b)return d;var e=a.b.offsetWidth;a=a.b.offsetHeight;switch(c){case i.TOP:d.width=-e/2;break;case i.TOP_RIGHT:d.width=-e;break;case i.LEFT:d.height=-a/2;break;case i.MIDDLE:d.width=-e/2;d.height=-a/2;break;case i.RIGHT:d.width=-e;d.height=-a/2;break;case i.BOTTOM_LEFT:d.height=-a;break;case i.BOTTOM:d.width=-e/2;d.height=-a;break;case i.BOTTOM_RIGHT:d.width=-e;d.height=-a}return d}
42		    g.prototype.onAdd=function(){if(!this.a){this.a=document.createElement("DIV");this.a.style.position="absolute"}if(this.getZIndex())this.a.style.zIndex=this.getZIndex();this.a.style.display=this.getVisible()?"":"none";if(!this.b){this.b=document.createElement("DIV");this.a.appendChild(this.b);var a=this;google.maps.event.addDomListener(this.b,"click",function(){google.maps.event.trigger(a,"click")});google.maps.event.addDomListener(this.b,"mouseover",function(){google.maps.event.trigger(a,"mouseover")});
43		    google.maps.event.addDomListener(this.b,"mouseout",function(){google.maps.event.trigger(a,"mouseout")})}this.c=b;this.j();this.g();this.k();var c=this.getPanes();c&&c.overlayImage.appendChild(this.a);google.maps.event.trigger(this,"ready")};g.prototype.onAdd=g.prototype.onAdd;
44		    g.prototype.draw=function(){if(!(!this.c||this.d)){var a=this.getProjection();if(a){var c=this.get("position");a=a.fromLatLngToDivPixel(c);c=t(this);this.a.style.top=a.y+c.height+"px";this.a.style.left=a.x+c.width+"px";a=this.b.offsetHeight;c=this.b.offsetWidth;c!=this.get("width")&&this.set("width",c);a!=this.get("height")&&this.set("height",a)}}};g.prototype.draw=g.prototype.draw;g.prototype.onRemove=function(){this.a&&this.a.parentNode&&this.a.parentNode.removeChild(this.a);k(this)};
45		    g.prototype.onRemove=g.prototype.onRemove;var i={TOP_LEFT:1,TOP:2,TOP_RIGHT:3,LEFT:4,MIDDLE:5,RIGHT:6,BOTTOM_LEFT:7,BOTTOM:8,BOTTOM_RIGHT:9};window.RichMarkerPosition=i;
46		    })();
47		}
48	}
49
50
51	/* dynamic Maps
52	=================================================================*/
53
54	$.fn.qtPlaceDynamicMaps = function(targetContainer){
55        
56		if(targetContainer === undefined) {
57			targetContainer = ".qtPlaces-container";
58		}
59	    var map, mapElement, myLatlng, mapOptions;
60	    if(typeof google !== 'undefined'){
61	        $.fn.createRichMarker();
62	        var googleMapsColorLight    = [{"featureType":"water","elementType":"geometry","stylers":[{"color":"#ff0000"},{"lightness":2}]},{"featureType":"landscape","elementType":"labels","stylers":[{"visibility":"off"}]},{"featureType":"transit","elementType":"labels","stylers":[{"visibility":"off"}]},{"featureType":"poi","elementType":"labels","stylers":[{"visibility":"off"}]},{"featureType":"water","elementType":"labels","stylers":[{"visibility":"off"}]},{"featureType":"road","elementType":"labels.icon","stylers":[{"visibility":"off"}]},{"stylers":[{"hue":"#00aaff"},{"saturation":-100},{"gamma":2.15},{"lightness":12}]},{"featureType":"road","elementType":"labels.text.fill","stylers":[{"visibility":"on"},{"lightness":24}]},{"featureType":"road","elementType":"geometry","stylers":[{"lightness":57}]}];
63	        var googleMapsColorDark     = [{"featureType":"water","elementType":"geometry","stylers":[{"color":"#000000"},{"lightness":17}]},{"featureType":"landscape","elementType":"geometry","stylers":[{"color":"#000000"},{"lightness":20}]},{"featureType":"road.highway","elementType":"geometry.fill","stylers":[{"color":"#000000"},{"lightness":17}]},{"featureType":"road.highway","elementType":"geometry.stroke","stylers":[{"color":"#000000"},{"lightness":29},{"weight":0.2}]},{"featureType":"road.arterial","elementType":"geometry","stylers":[{"color":"#000000"},{"lightness":18}]},{"featureType":"road.local","elementType":"geometry","stylers":[{"color":"#000000"},{"lightness":16}]},{"featureType":"poi","elementType":"geometry","stylers":[{"color":"#000000"},{"lightness":21}]},{"elementType":"labels.text.stroke","stylers":[{"visibility":"on"},{"color":"#000000"},{"lightness":16}]},{"elementType":"labels.text.fill","stylers":[{"saturation":36},{"color":"#000000"},{"lightness":40}]},{"elementType":"labels.icon","stylers":[{"visibility":"off"}]},{"featureType":"transit","elementType":"geometry","stylers":[{"color":"#000000"},{"lightness":19}]},{"featureType":"administrative","elementType":"geometry.fill","stylers":[{"color":"#000000"},{"lightness":20}]},{"featureType":"administrative","elementType":"geometry.stroke","stylers":[{"color":"#000000"},{"lightness":17},{"weight":1.2}]}];
64	        // Array with all the locations:
65	        
66	      //  google.maps.event.addDomListener(window, 'load', 
67	           // function () {
68	           // 
69            
70            $(targetContainer).each(function(i,c){
71
72                // per ogni mappa
73                var that = $(this),
74                    target = that.attr("data-dynamicmap"),
75                    mapcolor = that.attr("data-mapcolor"),
76                    currentMapId = that.attr("id"),
77                    mousewheel = that.attr("data-mousewheel"),
78                    getdirections = that.attr("data-getdirections");
79
80
81                var themapcolor = googleMapsColorDark;
82                if (mapcolor === "light"){
83                    themapcolor = googleMapsColorLight;
84                }
85                if (mapcolor === "normal" || mapcolor === "natural"){
86                    themapcolor = '';
87                }
88
89
90                
91                mapOptions = {
92                        zoom: 4,
93                        styles: themapcolor,
94                        panControl: true,
95                        scrollwheel: mousewheel,
96                        zoomControl: true,
97                        draggable: true,
98                        zoomControlOptions: {
99                            style: google.maps.ZoomControlStyle.LARGE,
100                            position: google.maps.ControlPosition.LEFT_CENTER
101                        },
102                        mapTypeControl: false,
103                        scaleControl: true,
104                        streetViewControl:  that.attr("data-streetview"),
105                        overviewMapControl: true 
106                    };
107                mapElement = document.getElementById(target);
108                that.map = new google.maps.Map(mapElement, mapOptions);
109
110                that.bounds = new google.maps.LatLngBounds ();
111              
112                
113                  
114                
115                that.find(".qtPlaces-marker").each(function(i,c){
116                    // Adding markers
117                    var mapitem = $(this);
118                    mapitem.lat = mapitem.attr("data-lat"),
119                    mapitem.lon = mapitem.attr("data-lon");
120                    
121
122                    if( mapitem.lat !== "" && mapitem.lon !== ""){
123                        myLatlng = new google.maps.LatLng(mapitem.lat, mapitem.lon);
124                        that.bounds.extend (myLatlng);
125                        //
126                        //  MARKER // hidden
127                        //  ============================================
128
129                        var markerid = mapitem.attr("data-markerid"),
130                            mapid = mapitem.attr("data-mapid"),
131                            clicktarget = mapitem.attr("data-clicktarget"),
132                            markertitle = mapitem.attr("data-markertitle"),
133                            markerimg = mapitem.attr("data-markerimg"),
134                            hidethumbnail = mapitem.attr("data-hidethumbnail"),
135                            filters = mapitem.attr("data-filters"),
136                            markerdate = mapitem.attr("data-markerdate"),
137                            markerlink = mapitem.attr("data-markerlink"),
138                            markerphone = mapitem.attr("data-markerphone"),
139                            markerlink = mapitem.attr("data-markerlink"),
140                            markerlocation = mapitem.attr("data-markerlocation"),
141                            markericon = mapitem.find("i").attr("class"),
142                            markeremail = mapitem.attr("data-markeremail"),
143                            fulladdress = mapitem.attr("data-markeraddress")+" "+mapitem.attr("data-markercity")+" "+mapitem.attr("data-markercountry").split("++").join("");
144
145                        if(markerimg != ''){
146                            markerimg = '<img src="'+markerimg+'" class="'+hidethumbnail+'">';
147                        }
148                        var markercontent = '<div id="mapmarker'+markerid+'" class="qtPlaces-mapmarker all '+filters+'">'
149                        	+'<a class="qtPlaces-marker-img qtIndicator" data-mapct="'+markerid+'">'
150                            +markerimg
151                            +'<i class="'+markericon+'"></i></a>'
152                            +'<div class="markercontents">';
153							if(markertitle != ''){
154                            	markercontent +='<h5 class="locationname"><a href="'+mapitem.attr("href")+'">'+stripslashes(markertitle)+'</a></h5>';
155                            }
156                            if(markertitle === markerlocation) {
157                            	markerlocation = '';
158                            }
159                            markercontent +='<p class="location"><span>'+stripslashes(markerlocation)+'</span>'+stripslashes(mapitem.attr("data-markeraddress"))+' '+stripslashes(mapitem.attr("data-markercity"))+ ' '+stripslashes(mapitem.attr("data-markercountry"))+' </p>';
160                            if(markerlink != ''){
161                            	markercontent +='<p class="det"><i class="fa fa-external-link"></i><a href="'+markerlink+'" class="qtPlaces-button" target="_blank">'+markerlink+'</a></p>';
162                            }
163                            if(markerphone != ''){
164                            	markercontent +='<p class="det"><i class="fa fa-phone"></i>
164<a href="tel:'+markerphone+'" class="qtPlaces-button" target="_blank">'+markerphone+'</a></p>';
165                            }
166                            if(markeremail != ''){
167                            	markercontent +='<p class="det"><i class="fa fa-envelope-o"></i><a href="mailto:'+markeremail+'" class="qtPlaces-button" target="_blank">'+markeremail+'</a></p>';
168                            }
169
170                            if(getdirections != ''){
171                                markercontent +='<p class="det"><i class="fa fa-compass"></i> <a href="https://www.google.com/maps/dir/Current+Location/'+fulladdress.split(" ").join("+")+'" class="qtPlaces-button" target="_blank">'+getdirections+'</a></p>';
172                            }
173                            markercontent +='<i class="fa fa-close close"></i></div></div>';
174
175                        if( mapitem.marker = new RichMarker({  position: myLatlng, map: that.map,  draggable: false, content: markercontent }) ){
176
177
178                        	//  CLICK on the List button
179	                        //  ============================================
180	                        mapitem.click(function(e){
181	                            e.preventDefault();
182	                            var theitem = $(this);
183	                            var theid = theitem.attr("data-markerid");
184	                            var themapid = theitem.attr("data-mapid");
185	                            var themap = $("#"+themapid);
186	                            $("#"+themapid+" .qtPlaces-mapmarker").removeClass("active");
187	                            $("#"+themapid+" #mapmarker"+theid).addClass("active"); 
188	                            var lat = theitem.attr("data-lat"),
189	                                lon = theitem.attr("data-lon");
190	                            myLatlng = new google.maps.LatLng(lat, lon);
191	                            that.map.setCenter(myLatlng);
192	                            that.map.panTo(myLatlng);
193                                if(theitem.attr("data-autozoom") === "1") {
194                                    that.map.setZoom(15);  
195                                }
196
197                                if($(window).width() < 1024) {
198                                    that.closest(".qtPlaces-container").removeClass("open").find(".qtPlaces-menuswitch i").addClass("fa-bars").removeClass("fa-close");
199                                } 
200	                        });
201
202
203	                        that.on("click", ".qtPlaces-mapmarker .close", function(e){
204	                        	e.preventDefault();
205	                        	$(this).closest(".qtPlaces-mapmarker").removeClass("active");
206	                        } );
207                        }
208                    }
209
210                }); // LOOP: data-mapitem each
211                that.map.fitBounds (that.bounds);
212             
213                that.animate({"opacity":"1"},800);
214            
215            }).delay(1000).promise().done(function(){ 
216               /**/ 
217               $("a.qtIndicator").click(function(e){
218                	e.preventDefault();
219                    var buttonid = $(this).attr("data-mapct");
220                    $("#"+$(this).attr("data-mapct")).click();
221                });
222            }); // data DYNAMICMAP EACH
223	    } else {
224            console.log('Google script not loaded');
225        }
226	}
227
228	/**
229	 * [qtPlaceMenuswitch switch menu open close]
230	 * @return {[boolean]} [success]
231	 */
232	$.fn.qtPlaceMenuswitch = function(){
233        $("body").off("click", ".qtPlaces-menuswitch");
234		$("body").on("click", ".qtPlaces-menuswitch", function(e){
235			e.preventDefault();
236			var that = $(this);
237			that.closest(".qtPlaces-container").toggleClass("open");
238			that.find("i").toggleClass("fa-bars").toggleClass("fa-close");
239		});
240		return true;
241	}
242
243	/**
244	 * [qtPlaceFilterResults applies a category filter to the selected map]
245	 * @param  {[string]} target [id of the selected map]
246	 * @param  {[string]} filter [taxonomy unique ID]
247	 * @return {[boolean]}        [success]
248	 */
249	$.fn.qtPlaceFilterResults = function(target, filter){
250		// 1 Filtering of the list results
251		$("#" + target + " .qtPlaces-entry").each(function(i,c){
252			var that = $(c);
253
254			if(that.hasClass(filter)) {
255				that.show().promise().done(function(){
256					that.animate({opacity:1}, 500);
257				});
258			} else {
259				that.animate({opacity:0}
259, 500).promise().done(function(){
260					that.hide();
261				});
262			};
263		});
264
265		$("#" + target + " .qtPlaces-mapmarker").each(function(i,c){
266			var that = $(c);
267
268			if(that.hasClass(filter)) {
269				that.show().promise().done(function(){
270					that.animate({opacity:1}, 500);
271				});
272			} else {
273				that.animate({opacity:0}, 500).promise().done(function(){
274					that.hide();
275				});
276			};
277		});
278		return true;
279	};
280
281
282	/**
283	 * [qtPlaceFilter filters the results based on the clicked tag]
284	 * @param  {[string]} targetContainer [map selector]
285	 * @return {[boolean]}                 [success]
286	 */
287	$.fn.qtPlaceFilter = function(targetContainer){
288		if(targetContainer === undefined) {
289			targetContainer = ".qtPlaces-container";
290		}
291		$("body").off("click", targetContainer+" [data-placefilter]");
292		$("body").on("click", targetContainer+" [data-placefilter]", function(e){
293			e.preventDefault();
294			var that = $(this),
295				target = that.attr("data-targetmap"),
296				filter = that.attr("data-placefilter");
297			if(that.hasClass("active")){
298				that.removeClass("active");
299				$.fn.qtPlaceFilterResults(target, "all");
300			} else {
301				that.siblings().removeClass("active");
302				that.addClass("active");
303				$.fn.qtPlaceFilterResults(target, filter);
304			}
305		});
306		return true;
307	};
308
309	/**
310	 * [qtPlaceAutoBg automatically adds background images]
311	 * @return {[type]} [description]
312	 */
313	$.fn.qtPlaceAutoBg = function(targetContainer){
314		if(targetContainer === undefined) {
315			targetContainer = ".qtPlaces-container";
316		}
317		$(targetContainer+" [data-qtautobg]").each(function(i){
318			var that = $(this),
319				bg = that.attr("data-qtautobg");
320			that.css({"background-image": "url("+bg+")"});
321		});
322	}
323
324	/**
325	 * [qtPlacesInit initialization. Contains all the needed functions to run the map. Can be called again for ajax initialization]
326	 * @return {[type]} [description]
327	 */
328	$.fn.qtPlacesInit = function(){
329		$.fn.qtPlaceMenuswitch();
330		$.fn.qtPlaceFilter();
331		$.fn.qtPlaceAutoBg();
332		$.fn.qtPlaceDynamicMaps();
333	};
334
335
336
337
338
339    /** ========================================================================================================================================
340     *
341     * 
342     *  19. Dynamic maps
343     *  
344     * 
345     ========================================================================================================================================*/
346
347    var QT_map_light    = [{"featureType":"landscape","elementType":"labels","stylers":[{"visibility":"off"}]},{"featureType":"transit","elementType":"labels","stylers":[{"visibility":"off"}]},{"featureType":"poi","elementType":"labels","stylers":[{"visibility":"off"}]},{"featureType":"water","elementType":"labels","stylers":[{"visibility":"off"}]},{"featureType":"road","elementType":"labels.icon","stylers":[{"visibility":"off"}]},{"stylers":[{"hue":"#00aaff"},{"saturation":-100},{"gamma":2.15},{"lightness":12}]},{"featureType":"road","elementType":"labels.text.fill","stylers":[{"visibility":"on"},{"lightness":24}]},{"featureType":"road","elementType":"geometry","stylers":[{"lightness":57}]}];
348    var QT_map_dark     = [{"featureType":"water","elementType":"geometry","stylers":[{"color":"#000000"},{"lightness":17}]},{"featureType":"landscape","elementType":"geometry","stylers":[{"color":"#000000"},{"lightness":20}]},{"featureType":"road.highway","elementType":"geometry.fill","stylers":[{"color":"#000000"},{"lightness":17}]},{"featureType":"road.highway","elementType":"geometry.stroke","stylers":[{"color":"#000000"},{"lightness":29},{"weight":0.2}]},{"featureType":"road.arterial","elementType":"geometry","stylers":[{"color":"#000000"},{"lightness":18}]},{"featureType":"road.local","elementType":"geometry","stylers":[{"color":"#000000"},{"lightness":16}]},{"featureType":"poi","elementType":"geometry","stylers":[{"color":"#000000"},{"lightness":21}]},{"elementType":"labels.text.stroke","stylers":[{"visibility":"on"},{"color":"#000000"},{"lightness":16}]},{"elementType":"labels.text.fill","stylers":[{"saturation":36},{"color":"#000000"},{"lightness":40}]},{"elementType":"labels.icon","stylers":[{"visibility":"off"}]},{"featureType":"transit","elementType":"geometry","stylers":[{"color":"#000000"},{"lightness":19}]},{"featureType":"administrative","elementType":"geometry.fill","stylers":[{"color":"#000000"},{"lightness":20}]},{"featureType":"administrative","elementType":"geometry.stroke","stylers":[{"color":"#000000"},{"lightness":17},{"weight":1.2}]}];
349    $.fn.qtDynamicMaps = function(targetContainer){
350        if(undefined === targetContainer) {
351                targetContainer = "body";
352        }
353        var map, mapOptions;
354        $(targetContainer+" .qt_dynamicmaps").each(function(i,c){
355            var that = $(c),
356                coord = that.attr("data-coord").split(","),
357                mylat = coord[0],
358                mylon = coord[1],
359                mapid = that.attr("id"),
360                colors = that.attr("data-colors"),
361                height = that.attr("data-height"),
362                locationname = that.attr("data-locationname");
363
364            that.height(height);
365            var map = new google.maps.Map(document.getElementById(mapid), {
366                zoom: 16, 
367                height: height,
368                // styles: QT_map_dark, 
369                center: new google.maps.LatLng(mylat, mylon), 
370                mapTypeId: google.maps.MapTypeId.ROADMAP
371            });
372            var infowindow = new google.maps.InfoWindow();
373            var marker, i;
374            marker = new google.maps.Marker({
375                position: new google.maps.LatLng(mylat,mylon),
376                map: map
377            });
378            google.maps.event.addListener(marker, 'click', (function(marker, i) {
379                return function() {
380                    infowindow.setContent(locationname);
381                    infowindow.open(map, marker);
382                }
383            })(marker, i));
384        });
385    }
386   
387    /**
388     * Custom styles from shortcodes
389     */
390    $.fn.QtPlacesStyles = function(){
391        var styles = '';
392        $('[data-qtplaces-styles]').each(function(i,c){
393            styles = styles + $(c).data('qtplaces-styles');
394        });
395        $('head').append('<style id="qtplaces-styles">'+styles+'<style>');
396    }
397
398
399	$(window).ready(function(){
400        $.fn.qtDynamicMaps();
401        $.fn.qtPlacesInit();
402        $.fn.QtPlacesStyles();
403	});
404
405
406})(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.