PageSourceSearch

https://www.buonconsiglio.it/wp-content/themes/Divi-child/js/custom.js?ver=1.1

js buonconsiglio.it collected 2026-09-26 00:43:52 UTC 23,070 bytes, 754 lines download raw bytes

1jQuery(document).ready(function(){
2	
3    // the same height for all blocks / blog module, grid style
4    var maxHeightBlock = 0;
5	jQuery('.et_pb_blog_grid .et_pb_post').each(function() {maxHeightBlock = Math.max(maxHeightBlock, jQuery(this).height()); }).height(maxHeightBlock);         
6});
7
8
9
10
11
12/* ==========================================================================
13   Menu Toggle
14   ========================================================================== */
15jQuery(function($){
16$('.slide-in-open').click(function(){
17$(this).toggleClass('open');
18$('.slide-in-menu-container').toggleClass('slide-in-menu');
19$('body').toggleClass('menu-open');
20});
21	
22	jQuery('.coMwork-catalog-plugin').parents('.et_pb_section').addClass('page_left_gap');
23        
24        
25         jQuery('.banner_section.et_pb_section_video video').removeAttr('loop');
26         jQuery('.banner_section.et_pb_section_video').on('ended', function () {
27            this.pause();
28         });
29});
30
31
32
33jQuery(document).ready(function($){      
34    jQuery('.footer-scroll-nav a').on('click',function(e){
35        $('.slide-in-open').toggleClass('open');
36        $('.slide-in-menu-container').toggleClass('slide-in-menu');      
37        $('body').toggleClass('menu-open');
38    });    
39});
40
41jQuery(document).ready(function($) {
42  $('body').on('click', '.mobile-sedi-nav li a', function(e) {
43    e.preventDefault(); 
44    const fullTargetURL = $(this).data('target');
45    const currentUrl = window.location.origin + window.location.pathname;
46    const targetURL = fullTargetURL.split('#')[0];
47    const targetID = '#' + fullTargetURL.split('#')[1];  
48    const cleanCurrent = currentUrl.replace(/\/$/, '');
49    const cleanTarget = targetURL.replace(/\/$/, '');  
50    if (cleanCurrent === cleanTarget && $(targetID).length) {    
51      $('.slide-in-open').toggleClass('open');
52      $('.slide-in-menu-container').toggleClass('slide-in-menu');
53      $('body').toggleClass('menu-open');
54      console.log('Scrolling to:', targetID);    
55        $('html, body').animate({
56          scrollTop: $(targetID).offset().top
57        }, 600);
58     
59    } else {     
60      window.location.href = fullTargetURL;
61    }
62  });
63});
64
65
66
67
68/* ==========================================================================
69   Slick Slider
70   ========================================================================== */
71
72
73jQuery('.page_img_sldier').slick({   
74    slidesToShow: 1,
75    slidesToScroll: 1,
76    autoplay: true,
77    autoplaySpeed: 2000,
78    arrows: false,
79    dots: true,
80    pauseOnHover: true,
81	infinite:true,
82
83});
84
85
86
87
88jQuery('.page_content_slider').slick({   
89    slidesToShow: 1,
90    slidesToScroll: 1,
91    autoplay: true,
92    autoplaySpeed: 2000,
93    arrows: true,
94    dots: false,
95    pauseOnHover: true,
96	infinite:true,
97
98});
99
100
101jQuery('.event_slider').slick({   
102    slidesToShow: 3,
103    slidesToScroll: 1,
104    autoplay: true,
105    autoplaySpeed: 5000,
106    arrows: true,
107    dots: false,
108    pauseOnHover: true,
109	infinite:true,
110	centerMode: true,
111    responsive: [
112       
113        {
114            breakpoint: 980,
115            settings: {
116                slidesToShow: 1
117            }
118        },
119		 {
120            breakpoint: 599,
121            settings: {
122                slidesToShow: 1
123            }
124        }
125    ]
126
127});
128
129
130
131jQuery('.event_slider_agenda').slick({   
132    slidesToShow: 3,
133    slidesToScroll: 1,
134    autoplay: true,
135    autoplaySpeed: 5000,
136    arrows: true,
137    dots: false,
138    pauseOnHover: true,
139	infinite:true,
140	centerMode: true,
141    responsive: [
142       
143        {
144            breakpoint: 980,
145            settings: {
146                slidesToShow: 2
147            }
148        },
149		 {
150            breakpoint: 599,
151            settings: {
152                slidesToShow: 1
153            }
154        }
155    ]
156
157});
158
159
160jQuery('.castle_content_slider').slick({   
161    slidesToShow: 1,
162    slidesToScroll: 1,
163    autoplay: true,
164    autoplaySpeed: 2000,
165    arrows: false,
166    dots: true,
167    pauseOnHover: true,
168	infinite:true,
169
170});
171
172
173jQuery('.event_custom_slider').slick({   
174    slidesToShow: 2,
175    slidesToScroll: 1,
176    autoplay: false,
177    autoplaySpeed: 2000,
178    arrows: true,
179    dots: false,
180    pauseOnHover: true,
181	infinite:true,
182	centerMode: true,
183    responsive: [
184       
185        {
186            breakpoint: 980,
187            settings: {
188                slidesToShow: 2
189            }
190        },
191		 {
192            breakpoint: 599,
193            settings: {
194                slidesToShow: 1
195            }
196        }
197    ]
198
199});
200
201jQuery('.visita_slider_row .et_pb_column').slick({   
202    slidesToShow: 4,
203    slidesToScroll: 1,
204    autoplay: true,
205    autoplaySpeed: 2000,
206    arrows: true,
207    dots: false,
208    pauseOnHover: true,
209	infinite:true,
210	//centerMode: true,
211    responsive: [
212       
213        {
214            breakpoint: 1199,
215            settings: {
216                slidesToShow: 3
217            }
218        },
219		 {
220            breakpoint: 767,
221            settings: {
222                slidesToShow: 2
223            }
224        }
225,		 {
226            breakpoint: 599,
227            settings: {
228                slidesToShow: 1
229            }
230        }
231    ]
232
233});
234
235
236
237jQuery('.banner_slider_row .et_pb_column').slick({   
238    slidesToShow: 1,
239    slidesToScroll: 1,
240    autoplay: true,
241    autoplaySpeed: 2000,
242    arrows: false,
243    dots: false,
244    pauseOnHover: true,
245	infinite:true,
246
247});
248
249jQuery('.event_banner_slider').slick({   
250    slidesToShow: 1,
251    slidesToScroll: 1,
252    autoplay: true,
253    autoplaySpeed: 5000,
254    arrows: true,
255    dots: false,
256    pauseOnHover: true,
257	infinite:true,
258
259});
260
261
262/* ==========================================================================
263   Owl Carousel
264   ========================================================================== */
265
266
267
268var windWidth =  jQuery(window).width(); 
269
270 if(windWidth <=767){ 	 
271	 //jQuery('#menu-castle-navigation li.current-menu-item').prependTo('#menu-castle-other-nav');
272	 //jQuery('#menu-castle-navigation li.current-page-ancestor').prependTo('#menu-castle-other-nav');
273	 jQuery('.castle-sidebar-other-nav ul').addClass('owl-carousel owl-theme');	 
274             
275	var slideNo = jQuery('.castle-sidebar-other-nav ul li.current-menu-item').index();
276	var navOwl = jQuery('.castle-sidebar-other-nav ul');
277	navOwl.owlCarousel({
278		margin: 20,
279		nav: true,
280		dots: false,
281		center: false,
282		loop: false,
283		autoWidth: true,
284		items: 3,
285		onInitialized: function(){ stage = jQuery('.owl-stage'); stage.width(stage.width() * 2); },
286        onRefreshed: function(){ stage = jQuery('.owl-stage'); stage.width(stage.width() * 2); },
287		
288	});
289	 
290	 jQuery('#menu-castle-other-nav .owl-nav').removeClass('disabled'); 
291	 
292      jQuery('#menu-castle-other-nav.owl-carousel').on('changed.owl.carousel', function(event) {
293	    jQuery(this).find('.owl-nav').removeClass('disabled');
294      });	 
295	 
296	//jQuery(navOwl).trigger('to.owl.carousel', slideNo); 
297        
298       
299    jQuery('.owl-carousel').find('.owl-nav').removeClass('disabled');
300    jQuery('.owl-carousel').on('changed.owl.carousel', function (event) {
301        jQuery(this).find('.owl-nav').removeClass('disabled');
302    });
303        
304 }
305
306
307jQuery(document).ready(function(e){
308    
309      var windWidth =  jQuery(window).width();    
310      jQuery('.castle_info').hide();
311      jQuery('.ft-nav-1').show();
312    
313      if(windWidth <=1200){
314          jQuery('ul#ft-menu-castle-navigation li').on('click', function (e) {
315            jQuery('.castle_info').hide();
316            var thisId = jQuery(this).attr('id');
317            jQuery('.' + thisId).show();
318            return false;
319        });   
320          
321      }else{
322        jQuery('ul#ft-menu-castle-navigation li').on('mouseenter', function (e) {
323            jQuery('.castle_info').hide();
324            var thisId = jQuery(this).attr('id');
325            jQuery('.' + thisId).show();
326        });    
327     }
328      return false;
329})
330
331
332
333jQuery(window).load(function () {
334     var windWidth =  jQuery(window).width();    
335    if (windWidth <= 1200) {
336        setTimeout(function () {
337            setup_collapsible_submenus();
338        }, 200);
339      if (windWidth <= 767) {
340         var hrefVal = jQuery('ul#top-menu ul.sub-menu li.et_pb_menu_collezioni a').attr('href');
341         if(hrefVal){
342         hrefVal = hrefVal.replace('#collezioni', '');
343        jQuery('ul#top-menu ul.sub-menu li.et_pb_menu_collezioni a').attr('href',hrefVal);
344         }
345      }
346        
347    }
348});  
349
350function setup_collapsible_submenus() {	
351	var FirstLevel = jQuery('.header_nav ul li.first-level > a');         
352	FirstLevel.on('click',function(e){            
353		jQuery(this).attr('href', '#');
354            
355		if (jQuery(this).attr('class') == 'icon-switch') {
356			jQuery(this).parent().children().children().removeClass('reveal-items')
357			jQuery(this).removeClass('icon-switch')
358		} else {
359			if (FirstLevel.parent().children().children().hasClass('reveal-items')) {
360				FirstLevel.parent().children().children().removeClass('reveal-items')
361				FirstLevel.removeClass('icon-switch')
362			}
363
364			if (jQuery(this).parent().children().children().hasClass('reveal-items')) {
365				jQuery(this).parent().children().children().removeClass('reveal-items')
366				jQuery(this).removeClass('icon-switch')
367			} else {                           
368				jQuery(this).parent().children().children().addClass('reveal-items')
369				jQuery(this).addClass('icon-switch')
370			}
371		}		
372		return false;
373	});
374}
375
376
377jQuery(document).ready(function(e){       
378    //jQuery('.castle_section_grid_wrap .castle_grid_hover_text .et_pb_blurb').hide();
379    jQuery('.castle_section_grid_wrap .castle_grid_hover_text .et_pb_hover_1').show();
380    jQuery('.castle_grid_hover_img .et_pb_hover_1').show();
381    jQuery('.castle_grid_hover_img .et_pb_blurb').on('mouseenter',function(e){
382        jQuery('.castle_grid_hover_img .et_pb_image').hide();
383        var moduleId = jQuery(this).attr('id');
384        jQuery('.castle_grid_hover_img .'+moduleId).show();
385        jQuery('.castle_section_grid_wrap .castle_grid_hover_text .et_pb_blurb').hide();
386        jQuery('.castle_section_grid_wrap .castle_grid_hover_text  .'+moduleId).show(); 
387        return false;        
388    });     
389   
390    
391    
392    
393}); 
394
395
396function isOnScreen(elem) {
397	// if the element doesn't exist, abort
398	if( elem.length == 0 ) {
399		return;
400	}
401	var $window = jQuery(window)
402	var viewport_top = $window.scrollTop()
403	var viewport_height = $window.height()
404	var viewport_bottom = viewport_top + viewport_height
405	var $elem = jQuery(elem)
406	var top = $elem.offset().top
407	var height = $elem.height()
408	var bottom = top + height
409
410	return (top >= viewport_top && top < viewport_bottom) ||
411	(bottom > viewport_top && bottom <= viewport_bottom) ||
412	(height > viewport_height && top <= viewport_top && bottom >= viewport_bottom)
413}
414
415jQuery( document ).ready( function() {     
416    jQuery( '.u-anim-image' ).css('visibility', 'hidden');
417	 jQuery( '.u-anim-image1' ).css('visibility', 'hidden');
418    var i=0,j=0;
419	window.addEventListener('scroll', function(e) {           
420		if( isOnScreen( jQuery( '.u-anim-image' ) ) ) { 
421                    i=i+1;
422                     if(i == 1){                         
423                         setTimeout(function () {			
424                         jQuery( '.u-anim-image' ).css('visibility','visible').hide().slideDown(1200);
425                          }, 500);
426                    }
427                    
428 		}	
429		
430		if( isOnScreen( jQuery( '.u-anim-image1' ) ) ) { 
431                    j=j+1;
432                     if(j == 1){                         
433                         setTimeout(function () {			
434                         jQuery( '.u-anim-image1' ).css('visibility','visible').hide().slideDown(1200);
435                          }, 1200);
436                    }
437                    
438 		}	
439	});
440});
441
442
443jQuery(document).ready(function($) {
444     var windWidth =  jQuery(window).width();  
445    if (windWidth <= 980) {
446        $(".castle_grid_hover_text .et_pb_blurb .et_pb_module_header").on("click", function () {
447            if ($(this).hasClass("active")) {
448                $(this).removeClass("active");
449                $(this).next(".et_pb_blurb_description").slideUp(200);
450            } else {
451                $(".castle_grid_hover_text .et_pb_blurb .et_pb_module_header").removeClass("active");
452                $(this).addClass("active");
453                $(".et_pb_blurb_description").slideUp(200);
454                $(this).next(".et_pb_blurb_description").slideDown(200);
455            }
456        });
457     }
458     jQuery('.tab_nav_row #castle_tab_01').addClass('active');
459     jQuery('.tab_nav_row .et_pb_image').on('click',function(e){
460         jQuery('.tab_content_row').hide();
461          jQuery('.tab_nav_row .et_pb_image').removeClass('active');
462          jQuery(this).addClass('active');
463          var tabId = jQuery(this).attr('id');
464         jQuery('.tab_content_row.'+tabId).show();
465         
466     });     
467     
468    if (windWidth <= 980) {
469        $(".tab_content_row  .tab_mobile_btn_image").on("click", function () {
470            if ($(this).hasClass("active")) {
471                $(this).removeClass("active");
472                $(this).next(".tab_mobile_content").slideUp(200);
473            } else {
474                $(".tab_content_row  .tab_mobile_btn_image").removeClass("active");
475                $(this).addClass("active");
476                $(".tab_mobile_content").slideUp(200);
477                $(this).next(".tab_mobile_content").slideDown(200);
478            }
479        });
480     
481     }
482	
483	   if (windWidth >= 767) {	
484	   jQuery('.visita_tab_content_row .et_pb_toggle').hide();	
485	     jQuery(".vsita_tab_button_row #tab-1").addClass('active');
486	   jQuery('.visita_tab_content_row .et_pb_toggle.tab-1').show();	
487	    jQuery(".vsita_tab_button_row .et_pb_button").on("click", function () {
488			 jQuery(".vsita_tab_button_row .et_pb_button").removeClass('active');
489		     jQuery(this).addClass('active');
490		     jQuery('.visita_tab_content_row .et_pb_toggle').hide();
491			 var tabId = jQuery(this).attr('id');
492			 jQuery('.visita_tab_content_row .et_pb_toggle.'+tabId).show();
493			 return false;		  
494	     });
495	   }
496	
497	
498	jQuery('.castle_navmenu li').on('mouseenter',function(e){
499		var castleClass = jQuery(this).attr('class');
500		 jQuery('.menu_bg_image .menu_bg_sub').removeClass('open');		
501		 jQuery('.menu_bg_image .'+castleClass).addClass('open');
502		
503	});
504     
505});
506
507
508jQuery(window).load(function($) {	
509
510var todaysId = jQuery('.event-toggle-calendar .em-view-container .em-calendar .em-cal-body .eventful-today a').attr('id');
511	get_ajax_event(todaysId);
512});
513
514jQuery(document).ready(function($) {	
515	
516	jQuery('.castle_toggle_row .arrow_line_code .arrow').on('click',function(e){
517		 jQuery('.castle_toggle_row .arrow_line_code').removeClass('active');
518		
519		 jQuery('.toggle-row').slideUp();		
520		 var lastClass = jQuery(this).attr('class').split(' ').pop();
521		 var lastNoArr = lastClass.split("-");
522		 var lastNo = lastNoArr[1];
523		 if(!jQuery('.toggle-row-' + lastNo).is(":visible")){
524		   jQuery('.toggle-row-' + lastNo).slideDown();
525		    jQuery(this).parent().parent().addClass('active');
526		 }else{
527			  jQuery(this).parent().parent().removeClass('active');
528		 }
529		 return false;		  
530	});
531	
532	
533	jQuery('.event-toggle-calendar .em-month-picker').removeAttr("style");
534	
535	
536	jQuery('body').on('click','.event-toggle-calendar .em-view-container .em-calendar .em-cal-body .em-cal-day a',function(e){		
537	  var eventId = jQuery(this).attr("id");
538		jQuery('.event-toggle-calendar .em-view-container .em-calendar .em-cal-body .em-cal-day').removeClass('selected');
539		jQuery(this).parent().parent().parent().addClass('selected');
540		get_ajax_event(eventId);
541		return false;
542	 });
543	
544
545	
546	 var windWidth =  jQuery(window).width();    
547	
548	 if(windWidth <=780){		
549		 jQuery('.toggle-row-1').appendTo('.castle_toggle_col_1'); 
550		 jQuery('.page_btn_col_1').appendTo('.castle_toggle_col_1'); 
551		 jQuery('.toggle-row-2').appendTo('.castle_toggle_col_2');
552		 jQuery('.page_btn_col_2').appendTo('.castle_toggle_col_2'); 
553		 jQuery('.toggle-row-3').appendTo('.castle_toggle_col_3'); 
554		 jQuery('.page_btn_col_3').appendTo('.castle_toggle_col_3'); 
555	 }
556});
557
558
559var ajaxUrl = jQuery('#ajax-url').val();
560	
561	function get_ajax_event(eventId){	
562		if(eventId !='' && eventId !=undefined){
563		jQuery.ajax({
564         type : "post",
565         url : ajaxUrl,
566         data : {
567                  action: "get_calendar_event_details",                  
568                  eventId   : eventId,                 
569              },
570             beforeSend: function(){
571                  jQuery(".evnt-loader").show();
572             },
573            success: function(response) {				
574                if(response) {
575                  jQuery('.cal-event-details .evnt-detials-show').html(response);
576                }
577                else {
578                console.log('System Faile: '+response);
579                }
580            },
581            complete:function(data){
582            jQuery(".evnt-loader").hide();
583          }
584      });
585		}
586		
587	}
588
589
590jQuery(document).ajaxStop(function() {
591  jQuery('.event-toggle-calendar .em-month-picker').removeAttr("style");
592});
593
594
595/* ==========================================================================
596   setHeight
597   ========================================================================== */
598
599
600function setHeight(el, val) {
601  if (typeof val === "function") val = val();
602  if (typeof val === "string") el.style.height = val;
603  else el.style.height = val + "px";
604}
605
606var equalheight = function(container){
607  var currentTallest = 0,
608      currentRowStart = 0,
609      rowDivs = new Array(),
610      $el,
611      topPosition = 0;
612
613  Array.from(document.querySelectorAll(container)).forEach((el,i) => {
614    el.style.height = "auto";
615    topPostion = el.offsetTop;
616    if(currentRowStart != topPostion){
617      for (currentDiv = 0 ; currentDiv < rowDivs.length ; currentDiv++) {
618        setHeight(rowDivs[currentDiv], currentTallest)
619      }
620      rowDivs.length = 0;
621      currentRowStart = topPostion;
622      currentTallest = parseFloat(getComputedStyle(el, null).height.replace("px", ""))
623      rowDivs.push(el);
624    } else {
625      rowDivs.push(el);
626      currentTallest = (currentTallest < parseFloat(getComputedStyle(el, null).height.replace("px", ""))) ? (parseFloat(getComputedStyle(el, null).height.replace("px", ""))) : (currentTallest);
627    }
628    for (currentDiv = 0 ; currentDiv < rowDivs.length ; currentDiv++) {
629      setHeight(rowDivs[currentDiv], currentTallest)
630    }
631  })
632}
633
634window.addEventListener("load", function(){
635  equalheight('.event_location_grid h5');
636});
637window.addEventListener("resize", function(){
638  setTimeout(function(){
639    equalheight('.event_location_grid h5');
640  })
641});
642
643jQuery(document).ready(function ($) {
644	setTimeout(function () {
645		$('.banner_section.et_pb_section_video .et_pb_row .et_pb_text h1').fadeOut('slow');
646	}, 5000);
647                
648        jQuery('.castle_section_grid_wrap .et_pb_blurb_description a').removeAttr('data-slb-active');
649        jQuery('.castle_section_grid_wrap .et_pb_blurb_description a').removeAttr('data-slb-asset');
650        jQuery('.castle_section_grid_wrap .et_pb_blurb_description a').removeAttr('data-slb-internal');
651        jQuery('.castle_section_grid_wrap .et_pb_blurb_description a').removeAttr('data-slb-group');
652        
653        
654        jQuery('.visita_slider_row .et_pb_blurb_content .et_pb_main_blurb_image a').removeAttr('data-slb-active');
655        jQuery('.visita_slider_row .et_pb_blurb_content .et_pb_main_blurb_image a').removeAttr('data-slb-asset');
656        jQuery('.visita_slider_row .et_pb_blurb_content .et_pb_main_blurb_image a').removeAttr('data-slb-internal');
657        jQuery('.visita_slider_row .et_pb_blurb_content .et_pb_main_blurb_image a').removeAttr('data-slb-group');
658        
659       
660        if(jQuery('body').hasClass('page-id-650') || jQuery('body').hasClass('page-id-30750')){
661            jQuery('.et_pb_clsd_event_list').each(function(e){
662                var replaceTxt = '';
663                
664                  if(jQuery('html')[0].lang == 'en-US'){
665                      replaceTxt = 'CLOSED';
666                  }
667                  if(jQuery('html')[0].lang == 'it-IT'){
668                      replaceTxt = 'CHIUSO';
669                  }
670                //  replaceTxt = '';
671                 var pText =  jQuery(this).html();
672                 pText     = pText.replace('All Day',replaceTxt);
673                 
674                    console.log(pText);
675                 
676                 jQuery(this).html(pText);
677                  jQuery(this).find('p').contents().unwrap();
678                 jQuery(this).find('a').contents().unwrap();
679                
680              
681            });
682        }
683        
684        if(jQuery('body').hasClass('page-template-castle-template')){
685             var pText =  jQuery('.et_pb_clsd_event_list').html();
686              if(pText != undefined){
687            if(pText.indexOf('All Day') > -1){
688                pText = pText.replace('All Day',''); 
689                jQuery('.et_pb_clsd_event_list').html(pText);
690            }
691            if(pText.indexOf('Chiuso') > -1){
692                  pText = pText.replace('Chiuso',''); 
693                 jQuery('.et_pb_clsd_event_list').html(pText);
694            }
695        }
696        }       
697
698          jQuery('.table-responsive').find('br').remove();
699          
700          
701         
702});
703jQuery(document).ready(function($) {
704    // Target element
705    var $element = $('.event-toggle-calendar .em-calendar');
706
707    // Function to check and remove the class
708    function removeSizeMediumClass() {
709        if ($element.hasClass('size-medium')) {
710            $element.removeClass('size-medium');
711            $element.addClass('size-small');
712        }
713    }
714
715    // Run the check initially in case the class is already added
716    removeSizeMediumClass();
717
718    // Monitor changes to the element's class attribute
719    $element.on('DOMSubtreeModified', function() {
720       // console.log('modified');
721        removeSizeMediumClass();
722    });
723
724    // Optionally, also handle window resize or other events
725    $(window).on('resize', function() {
726        removeSizeMediumClass();
727    });
728});
729
730jQuery(window).on('load', function () {
731    if (jQuery(".image-mapping-section")[0]) {       
732        jQuery('.image-mapping-section .castle-map-logo img').css('cursor', 'pointer');
733        jQuery('.image-mapping-section .map-row#castle-map1').addClass('active');
734        jQuery('.image-mapping-section .castle-map-logo').on('click mouseover', function () {
735            var mapClasses = jQuery(this).attr('class').split(/\s+/);
736            var targetClass = mapClasses.find(function (cls){
737                return cls.startsWith('castle-map') && cls !== 'castle-map-logo';
738            });
739            console.log(targetClass);
740            jQuery('.image-mapping-section .map-row').removeClass('active');
741            jQuery('#' + targetClass).addClass('active');
742            return false;
743        });
744    }
745});
746
747
748(function ($) {
749  $(document).ready(function () {
750    $('.map-area-text').each(function () {
751    $(this).closest('.map-row').find('.map-area-custom-code').append($(this));
752    });     
753  });
754})(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.