PageSourceSearch

https://www.yvesbeck.wine/wp-content/plugins/divi-toolbox/assets/js/toolbox-scripts.js?ver=1.8

js yvesbeck.wine collected 2026-09-26 15:29:18 UTC 34,122 bytes, 920 lines download raw bytes

1if (toolbox_values.dtb_vb_enabled !== '1' || (toolbox_values.dtb_vb_enabled === '1' && self == top)) {
2
3
4	jQuery(document).ready(function ($) {
5		
6		function dtb_equalize_heights(selector) {
7			var heights = new Array();
8			$(selector).each(function() {
9				$(this).css('min-height', '0');
10				$(this).css('max-height', 'none');
11				$(this).css('height', 'auto');
12				 heights.push($(this).height());
13			});
14			var max = Math.max.apply( Math, heights );
15			$(selector).each(function() {
16				$(this).css('height', max + 'px');
17			});
18		}
19		function dtb_equalize_heights_min(selector) {
20			var heights = new Array();
21			$(selector).each(function() {
22				$(this).css('min-height', '0');
23				$(this).css('max-height', 'none');
24				$(this).css('height', 'auto');
25				 heights.push($(this).height());
26			});
27			var min = Math.min.apply( Math, heights );
28			$(selector).each(function() {
29				$(this).css('height', min + 'px');
30			});
31		}
32		function dtb_equalize() {
33			var iv = null;
34			if(iv !== null) {window.clearTimeout(iv);}
35			iv = setTimeout(function() {
36				if ((toolbox_values.dtb_archive_styles === '1') || ((toolbox_values.dtb_blog_layout !== 'blog_default') && (toolbox_values.dtb_blog_layout !== ''))) {
37				
38					if (toolbox_values.dtb_equal_archive_boxed === '1') {
39						dtb_equalize_heights('.dtb_archives:not(.et-tb-has-body) .et_pb_post .dtb-post-wrap, .dtb-blog.et_pb_module .et_pb_post .dtb-post-wrap');
40					}
41					if (toolbox_values.dtb_equal_archive_img === '1') {
42						dtb_equalize_heights_min('.dtb_archives:not(.et-tb-has-body) .entry-featured-image-url, .dtb-blog.et_pb_module .entry-featured-image-url');
43					}
44				}
45				
46				if (toolbox_values.dtb_enable_equal_height === '1') {
47				
48					var windowsize = $(window).width();
49					if (windowsize > toolbox_values.dtb_equal_height_breakpoint) {
50					
51						$('.dtb-equal-height').each(function() {
52							if (toolbox_values.dtb_equal_height_quote === '1') {
53								var quote_in_row = $('.et_pb_testimonial_description', this);
54								dtb_equalize_heights(quote_in_row);
55							}
56							
57							if (toolbox_values.dtb_equal_height_pricing === '1') {
58								var pricing_in_row = $('.et_pb_pricing_content', this);
59								dtb_equalize_heights(pricing_in_row);
60							}
61							
62							if (toolbox_values.dtb_equal_height_blurb === '1') {
63								var blurbs_in_row = $('.et_pb_blurb_content', this);
64								dtb_equalize_heights(blurbs_in_row);
65							}
66						});
67					}
68				}
69				
70			}, 120);
71		}
72		
73		
74		function dtb_Ajax_Fn1() {
75			if (toolbox_values.dtb_readmore_text_enable === '1') {
76				$('.more-link').text(toolbox_values.dtb_readmore_text);
77			}
78			if (toolbox_values.dtb_comments_styles === '1') {
79				$('#respond #reply-title>span').text(toolbox_values.dtb_comments_text);
80			}
81			
82			$('#dtb-before-footer').detach().insertBefore('#main-footer, .et-l--footer');
83			$('#dtb-after-footer').detach().insertAfter('#main-footer, .et-l--footer');
84			$('#dtb-after-blog-content').detach().insertBefore('#comment-wrap');
85			
86			
87			if( $( '.et_social_inline_bottom' ).length ) {
88				if ( $( 'body' ).hasClass( 'et_pb_pagebuilder_layout' ) ) {
89					var social_monarch = $('.et_social_inline_bottom').closest('.et_pb_row');
90					$( '.entry-content .et_pb_section' ).not( '.et_pb_fullwidth_section' ).last().append( social_monarch );
91				}
92			}
93		}
94		
95		function dtb_FixedBeforeHeader() {	
96			if ( $('body:not(.et-fb) #dtb-before-header').length > 0 ) {
97				$('body').addClass('has-dtb-before-header');
98				var dtbBeforeHeader = $('body:not(.et-fb) #dtb-before-header');
99				if ($('#wpadminbar').length > 0) {
100				  var dtbBeforeHeaderOffset = $('#wpadminbar').height();
101				}
102				else {
103					var dtbBeforeHeaderOffset = 0;
104				}
105				dtbBeforeHeaderHeight = dtbBeforeHeader.height();
106				dtbMenuTransformValue = 'translateY(' + dtbBeforeHeaderHeight + 'px)';
107				dtbBeforeHeader.detach().prependTo('#page-container').each(function() {
108					var dtb_before_header_container = $(this);
109					if (dtb_before_header_container.children('#et-boc').length === 0) {
110						dtb_before_header_container.children('div').wrap('<div id="et-boc"></div>');
111					}
112				});
113				if ( $('body').hasClass('et_fixed_nav')) {
114					dtbBeforeHeader.css({
115					   'position' : 'fixed',
116					   'top' : dtbBeforeHeaderOffset,
117					   'width' : '100%',
118					   'z-index' : '100001'
119					});
120					$('body:not(.et-fb)').css({'padding-top' : dtbBeforeHeaderHeight});
121					$('#main-header').css({
122					   'transform' : dtbMenuTransformValue
123					});
124					if ( $('#top-header').length > 0 ) {
125						$('#top-header').css({
126						   'transform' : dtbMenuTransformValue,
127							'top' : dtbBeforeHeaderOffset+'!important'
128						});
129					}
130				}
131				
132				if ( $('body:not(.et-fb) .dtb-fixed-always').length > 0 ) {
133					dtbBeforeHeader.css({
134					   'position' : 'fixed',
135					   'top' : dtbBeforeHeaderOffset,
136					   'width' : '100%',
137					   'z-index' : '2'
138					});
139					$('#main-header').css({
140					   'transform' : dtbMenuTransformValue
141					});
142					$('.dtb-fixed-always').css({
143					   'transform' : dtbMenuTransformValue
144					});
145					$('body:not(.et-fb)').css({'padding-top' : dtbBeforeHeaderHeight});
146				}
147				var windowsize = $(window).width();
148				if (windowsize < toolbox_values.dtb_mobile_breakpoint && toolbox_values.dtb_m_m_fixed !== '1' && !$('body').hasClass('et-tb-has-header')) {
149					dtbBeforeHeader.css({
150					   'position' : 'absolute'
151					});
152				}
153				
154			}
155			
156			if (toolbox_values.dtb_move_page_below_header === '1') {
157					if ( $('#dtb-before-header').length > 0 ) {
158						var FixedHeaderHeight = $('.et_pb_section.dtb-fixed-always').outerHeight() + $('#dtb-before-header').outerHeight();
159					} else {
160						var FixedHeaderHeight = $('.et_pb_section.dtb-fixed-always').outerHeight();
161					}
162					dtbBodyTransformValue = 'translateY(' + FixedHeaderHeight + 'px)';
163					$('#main-header').css({
164					   'transform' : dtbBodyTransformValue
165					});
166					$('body:not(.et-fb)').css({'padding-top' : FixedHeaderHeight});
167			}
168		}
169	
170	   $(document).ajaxComplete(function() {
171		   dtb_equalize();
172		   dtb_Ajax_Fn1();
173	   });
174		$(window).resize(function() {
175			dtb_equalize()
176			dtb_FixedBeforeHeader()
177		});
178	   dtb_Ajax_Fn1();
179		dtb_equalize();
180		dtb_FixedBeforeHeader()
181		
182		
183		if ((toolbox_values.dtb_btt === '1') && (toolbox_values.dtb_btt_link === '1')) {
184			$('.et_pb_scroll_top').append('<a class="btt_link"></a>');
185			$('.et_pb_scroll_top').off('click');
186			$('.btt_link').attr('href', toolbox_values.dtb_btt_url);
187		}
188
189		if (toolbox_values.dtb_fixed_scroll === '1') {
190			$(window).scroll(function(){
191				if ($(window).scrollTop() >= toolbox_values.dtb_fixed_scroll_offset) {
192					$('body').addClass('scrolled-down');
193				}
194				 else {
195					 $('body').removeClass('scrolled-down');
196			   }
197			});
198		}
199		
200		if (toolbox_values.dtb_enable_sticky === '1') {
201			$('.dtb-sticky').each(function() {
202				var sticky_parent = $(this).parentsUntil('.et_pb_section');
203				$(sticky_parent).css('overflow','initial');
204			});
205		}
206		
207		
208		if (toolbox_values.dtb_archive_styles === '1')  {
209			$('.dtb_archives:not(.et-tb-has-body) .et_pb_post, .dtb-blog .et_pb_post').contents().filter(function () { return this.nodeType === 3 && $.trim(this.nodeValue).length; }).wrap('<p class="dtb-post-content">');
210			$('.dtb_archives:not(.et-tb-has-body) .et_pb_post, .dtb-blog .et_pb_post').each(function () {
211				if ($('.dtb-post-wrap', this).length < 1) {
212					$('>:not(.entry-featured-image-url)', this).not('.et_pb_gallery_post_type,.et_main_video_container,.et_audio_content').wrapAll('<div class="dtb-post-wrap"></div>');
213				}
214				if ($('.more-link', this).length < 1) {
215					if ((toolbox_values.dtb_archive_button !== '') && (toolbox_values.dtb_archive_styles !== '')) {
216						link_target = $(this).find('a').attr('href');
217						$('.dtb-post-wrap', this).append("<a class='dtb-read-more " + toolbox_values.dtb_archive_bt
217n_hover + "' href='" + link_target + "'>" + toolbox_values.dtb_readmore_text + "</a>");
218					}
219				}
220			});
221		}
222
223		if (toolbox_values.dtb_sticky_footer === '1') {
224			function positionFooter() {
225				if ($('body:not(.et-fb) #main-footer').length > 0) {
226				  var mFoo = $("body:not(.et-fb) #main-footer");
227				}
228				else if ($('body:not(.et-fb) .et-l--footer').length > 0){
229					var mFoo = $("body:not(.et-fb) .et-l--footer");
230				}
231				if ($('body:not(.et-fb) #dtb-before-footer').length > 0) {
232					var bFoo = $("body:not(.et-fb) #dtb-before-footer");
233				}
234				if ($('body:not(.et-fb) #dtb-after-footer').length > 0) {
235					var aFoo = $("body:not(.et-fb) #dtb-after-footer");
236				}
237				
238				var bodyHeight = $(document.body).height();
239				if ($('.dtb-body-wrapper').length > 0) {
240				  var bodyHeight = $('.dtb-body-wrapper').height();
241				}
242				if (typeof mFoo !== 'undefined') {
243					var mFooHeight = mFoo.outerHeight()
244				}
245				else {
246					var mFooHeight = 0;
247				}
248				if (typeof bFoo !== 'undefined') {
249					var bFooHeight = bFoo.outerHeight()
250				}
251				else {
252					var bFooHeight = 0;
253				}
254				if (typeof aFoo !== 'undefined') {
255					var aFooHeight = aFoo.outerHeight()
256				}
257				else {
258					var aFooHeight = 0;
259				}
260				
261				
262				var contentHeight = bodyHeight+bFooHeight+aFooHeight+mFooHeight;
263				
264				if ((contentHeight < $(window).height() && mFoo.css("position") === "fixed") || (bodyHeight < $(window).height() && mFoo.css("position") !== "fixed")) {
265					if  ( (typeof aFoo !== 'undefined') && (aFoo.outerHeight() > 0) ) {
266					mFoo.css({
267						position: "fixed",
268						bottom: aFoo.outerHeight() + "px",
269						right: "0",
270						left: "0"
271					});
272					} else {
273					mFoo.css({
274						position: "fixed",
275						bottom: "0",
276						right: "0",
277						left: "0"
278					});
279					}
280					if (typeof bFoo !== 'undefined') {
281						bFoo.css({
282							position: "fixed",
283							bottom: mFoo.outerHeight() + aFoo.outerHeight() + "px",
284							right: "0",
285							left: "0"
286						});
287					}
288					if (typeof aFoo !== 'undefined') {
289						aFoo.css({
290							position: "fixed",
291							bottom: "0",
292							right: "0",
293							left: "0"
294						});
295					}
296				}
297				else {
298					mFoo.css({
299						position: "",
300						bottom: "",
301						right: "",
302						left: ""
303					});
304					
305					if (typeof bFoo !== 'undefined') {
306						bFoo.css({
307							position: "",
308							bottom: "",
309							right: "",
310							left: ""
311						});
312					}
313					
314					if (typeof aFoo !== 'undefined') {
315						aFoo.css({
316							position: "",
317							bottom: "",
318							right: "",
319							left: ""
320						});
321					}
322				}
323			}
324			$(document).ready(function () {
325				positionFooter();
326				$(window).scroll(positionFooter);
327				$(window).resize(positionFooter);
328			});
329		}
330		if (toolbox_values.dtb_enable_typing === '1') {
331			var count = 0;
332			$('.et_pb_text.dtb-typing .et_pb_text_inner').each(function () {
333				$(this).wrap("<div class='count-" + count + "'>");
334				$(this).after("<span class='dtb-typed-" + count + "'>");
335				count++;
336			});
337		}
338		
339		
340		if (toolbox_values.dtb_mobile_parallax === '1') {
341			$dtb_is_mobile = null !== (navigator.userAgent.match(/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/))
342			if ($dtb_is_mobile) {
343				in_viewport = function(elem) {
344					elementTop = elem.offset().top, elementBottom = elementTop + elem.outerHeight(), viewportTop = $(window).scrollTop(), viewportBottom = viewportTop + $(window).height();
345					return elementBottom > viewportTop && elementTop < viewportBottom;
346				};
347				function mobileParallax() {
348					$(".dtb-mobile-parallax .et_parallax_bg").each(function() {
349						var $dtb_parent = $(this).parent();
350						var $dtb_visible = in_viewport($dtb_parent);
351						if ($dtb_visible) {
352							element_top = $dtb_parent.offset().top,
353							parallaxHeight = $(this).parent(".et_pb_fullscreen").length && $(window).height() > $dtb_parent.innerHeight() ? $(window).height() : $dtb_parent.innerHeight(),
354							bg_height = .2 * $(window).height() + parallaxHeight,
355							main_position = "translate(0, " + .2 * ($(window).scrollTop() + $(window).height() - element_top) + "px)";
356							$(this).css({height: bg_height,"-webkit-transform": main_position,"-moz-transform": main_position,"-ms-transform": main_position,transform: main_position});
357							
358						}
359					});
360				}
361				
362				$(document).ready(function () {
363					mobileParallax();
364					$(window).scroll(mobileParallax);
365				});
366			}
367		}
368		
369		
370
371
372		
373
374		if (toolbox_values.dtb_social_target === '1') {
375			$('.et-social-icon a').attr('target', '_blank');
376		}
377
378
379		if ((toolbox_values.dtb_social_move === '1') && (toolbox_values.dtb_social_enable === '1')) {
380			$('#top-header .et-social-icons').detach();
381		}
382		
383		
384
385
386		if (toolbox_values.dtb_social_enable === '1') {
387			$('#top-header .et-social-icons a, #main-header .et-social-icons a').addClass(toolbox_values.social_head_hover);
388			$('#footer-bottom .et-social-icons a').addClass(toolbox_values.social_foot_hover);
389		}
390
391
392
393		$('#footer-bottom .et-social-icons a').width($('#footer-bottom .et-social-icons a').height());
394		$(window).on('resize', function () {
395			$('#footer-bottom .et-social-icons a').width($('#footer-bottom .et-social-icons a').height());
396		});
397
398
399		
400
401		if ((toolbox_values.dtb_fixed_logo === '1') && (toolbox_values.dtb_fixed_logo_url !== '')) {
402			var oldURL = $('#logo').attr('src');
403			function checkScroll() {
404				var scrollPosition = $(window).scrollTop();
405				if ( ($('#main-header').hasClass('et-fixed-header')) || (scrollPosition > 5)) {
406					$('#logo').attr('src', toolbox_values.dtb_fixed_logo_url);
407				}
408				else {
409					$('#logo').attr('src', oldURL);
410				}
411				$(window).on('scroll', function () {
412					var scrollPosition = $(window).scrollTop();
413					if ( ($('#main-header').hasClass('et-fixed-header')) && (scrollPosition > 5)) {
414						$('#logo').attr('src', toolbox_values.dtb_fixed_logo_url);
415					}
416					else {
417						$('#logo').attr('src', oldURL);
418					}
419				});
420			}
421			checkScroll();
422			$(window).resize(checkScroll);
423			
424		}
425
426		if ((toolbox_values.dtb_mobile_logo === '1') && (toolbox_values.dtb_mobile_logo_url !== '')) {
427			var desktopURL = $('#logo').attr('src');
428			function checkWidth() {
429				var windowsize = $(window).width();
430
431				if (windowsize < toolbox_values.dtb_mobile_breakpoint) {
432					$('#logo').attr('src', toolbox_values.dtb_mobile_logo_url);
433				}
434				
435				else {
436					if (toolbox_values.dtb_fixed_logo !== '1') {
437						$('#logo').attr('src', desktopURL);
438					}
439				}
440				$(window).on('scroll', function () {
441					var windowsize = $(window).width();
442					if (windowsize < toolbox_values.dtb_mobile_breakpoint) {
443						$('#logo').attr('src', toolbox_values.dtb_mobile_logo_url);
444					}
445				});
446			}
447			checkWidth();
448			$(window).resize(checkWidth);
449		}
450
451		
452
453		if (toolbox_values.dtb_comments_styles === '1') {
454			$('#respond #submit, .comment-reply-link, #respond #et_pb_submit').addClass(toolbox_values.dtb_comments_btn_hover);
455		}
456
457		$('.et_pb_button').addClass(toolbox_values.dtb_buttons_hover);
458		$('.' + toolbox_values.dtb_sec_btn_class).removeClass(toolbox_values.dtb_buttons_hover).addClass(toolbox_values.dtb_sec_btn_hover);
459
460
461		
462
463		function dtb_header_menu_split() {
464			var $logo_container = $('#main-header > .container > .logo_container'),
465
466				$et_top_navigation = $('#et-top-navigation'),
467				$logo_container_splitted = $('.centered-inline-logo-wrap > .logo_container'),
468				et_top_navigation_li_size = $et_top_navigation.children('nav').children('ul').children('li').length,
469				et_top_navigation_li_break_index = Math.round(et_top_navigation_li_size / 2) - 1,
470				window_width = window.innerWidth;
471
472			if (window_width > toolbox_values.dtb_mobile_breakpoint && $logo_container.length && $('body').hasClass('et_header_style_split')) {
473				$('<li class="centered-inline-logo-wrap"></li>').insertAfter($et_top_navigation.find('nav > ul >li:nth(' + et_top_navigation_li_break_index + ')'));
474				$logo_container.appendTo($et_top_navigation.find('.centered-inline-logo-wrap'));
475			}
476
477			if (window_width <= toolbox_values.dtb_mobile_breakpoint && $logo_container_splitted.length) {
478				$logo_container_splitted.prependTo('#main-header > .container');
479				$('#main-header .centered-inline-logo-wrap').remove();
480			}
481		}
482
483		dtb_header_menu_split();
484		$(window).resize(function () {
485			dtb_header_menu_split();
486		});
487
488		var $slide_menu_container = $('.et_header_style_slide .et_slide_in_menu_container');
489		if ($slide_menu_container.length && !$('body').hasClass('et_pb_slide_menu_active')) {
490			$slide_menu_container.css({ right: '-' + parseInt($slide_menu_container.innerWidth()) + 'px', 'display': 'none' });
491		}
492
493		
494
495		if (toolbox_values.dtb_post_related !== '') {
496			$('.dtb-related-posts').detach().insertAfter('.et_pb_post>.entry-content, .et_pb_module.et_pb_post_content');
497		}
498		if (toolbox_values.dtb_post_prev_next !== '') {
499			$('.dtb-single-post-nav').detach().insertAfter('.et_pb_post>.entry-content, .et_pb_module.et_pb_post_content');
500		}
501		if (toolbox_values.dtb_post_author !== '') {
502			$('.dtb-author-box').detach().insertAfter('.et_pb_post>.entry-content, .et_pb_module.et_pb_post_content');
503		}
504
505		if (toolbox_values.dtb_single_after_content_layout !== '') {
506			$('.dtb-after-single-post').detach().insertAfter('.et_pb_post>.entry-content, .et_pb_module.et_pb_post_content');
507		}
508
509		if (toolbox_values.dtb_hide_post_title !== '') {
510			$('.single-post .et_post_meta_wrapper h1.entry-title').detach();
511		}
512
513		if (toolbox_values.dtb_footer_reveal !== '') {
514			function dtb_footer_height() {
515				if ( $( "#main-footer" ).length ) {
516					var footer_height = $('#main-footer').height();
517				}
518				else {
519					var footer_height = $('.et-l--footer').height();
520				}
521				$('#page-container').css('margin-bottom', footer_height);
522			}
523			function dtb_remove_footer_height() {
524				$('#page-container').css('margin-bottom', '0');
525			}
526			function dtb_footer_reveal_mobile_conditional() {
527				if ($(window).width() > 980) {
528					dtb_footer_height();
529				} else {
530					dtb_remove_footer_height();
531				}
532			}
533			if (toolbox_values.dtb_footer_reveal_mobile_off !== '') {
534				dtb_footer_reveal_mobile_conditional()
535				$(window).resize(function () {
536					dtb_footer_reveal_mobile_conditional()
537				});
538			}
539			else {
540				dtb_footer_height();
541				$(window).resize(function () {
542					dtb_footer_height();
543				});
544			}
545		}
546
547		if (toolbox_values.dtb_testimonial_photo !== '') {
548			$('.et_pb_testimonial').each(function () {
549				$('.et_pb_testimonial_portrait', this).detach().insertBefore($(this).find('.et_pb_testimonial_author'));
550				$('.et_pb_testimonial_portrait, .et_pb_testimonial_author, .et_pb_testimonial_meta', this).wrapAll('<div class="clearfix"></div>');
551			});
552		}
553
554	});
555
556	jQuery(window).on("load", function($){
557		var mbwidth = parseInt(toolbox_values.dtb_mobile_breakpoint);
558		if ((jQuery(window).width() <= mbwidth) && jQuery('body').hasClass('dtb_mobile_slide')) {
559			jQuery('#main-header .mobile_menu_bar, .dtb-fixed-always .mobile_menu_bar').click(function () {
560				jQuery('body').toggleClass('noscroll');
561			});
562			jQuery('.mobile_menu_bar').click(function () {
563				jQuery('#mobile_menu, .dtb-fixed-always .et_mobile_menu').css('min-height', (jQuery(window).height()) + 'px');
564				jQuery('#mobile_menu, .dtb-fixed-always .et_mobile_menu').css('max-height', '100vh');
565			});
566		}
567	});
568
569
570	if (toolbox_values.dtb_follow_the_mouse === '1') {
571
572		/*jQuery directional hover */
573		!function (t) { t.fn.directionalHover = function (e) { var n = t.extend({}, t.fn.directionalHover.defaults, e), o = function (t, e, n, o, f, a, r, s) { var u = 0; o - s <= a / 2 && (u ^= 1), n - r >= f / 2 && (u ^= 2), o - s > a / 2 && (u ^= 4), n - r < f / 2 && (u ^= 8), i(u, t, e, n - r, o - s, f / 2, a / 2) }, i = function (t, e, n, o, i, u, l) { f(t, 9) ? a(o, i, u, l) ? s(e, n, 0, 2 * -u) : s(e, n, 2 * -l, 0) : f(t, 3) ? r(o, i, u, l) ? s(e, n, 2 * -l, 0) : s(e, n, 0, 2 * u) : f(t, 12) ? r(o, i, u, l) ? s(e, n, 0, 2 * -u) : s(e, n, 2 * l, 0) : f(t, 6) && (a(o, i, u, l) ? s(e, n, 2 * l, 0) : s(e, n, 0, 2 * u)) }, f = function (t, e) { return (t & e) === e }, a = function (t, e, n, o) { return o * t - n * e < 0 }, r = function (t, e, n, o) { return n * (e - o) + o * t - n * o < 0 }, s = function (t, e, o, i) { "in" === e ? t.animate({ top: o, left: i }, 0, function () { t.stop().animate({ top: 0, left: 0 }, n.speed, n.easing) }) : "out" === e && t.animate({ top: 0, left: 0 }, 0, function () { t.stop().animate({ top: o, left: i }, n.speed, n.easing) }) }; return this.css({ position: "relative", overflow: "hidden" }), this.find(n.overlay).css({ position: "absolute", top: "-100%" }), this.each(function () { var e = t(this);
573 e.hover(function (t) { o(e.find(n.overlay), "in", t.pageX, t.pageY, e.width(), e.height(), Math.floor(e.offset().left), e.offset().top) }, function (t) { o(e.find(n.overlay), "out", t.pageX, t.pageY, e.width(), e.height(), Math.floor(e.offset().left), e.offset().top) }) }) }, t.fn.directionalHover.defaults = { overlay: ".et_overlay", easing: "swing", speed: 400 } }(jQuery);
574
575
576		(function ($) {
577			var triggerClassChange = $.fn.addClass;
578			$.fn.addClass = function () {
579				$(this).trigger('classChanged');
580				return triggerClassChange.apply(this, arguments);
581			}
582		})(jQuery);
583		jQuery(document).ready(function ($) {
584
585			$('.et_pb_portfolio .et_pb_portfolio_item, .et_pb_fullwidth_portfolio .et_pb_portfolio_item, .et_pb_gallery .et_pb_gallery_item').directionalHover();
586			$('div.et_pb_portfolio').find('li.et_pb_portfolio_filter a').on('classChanged', function () {
587				setTimeout(function () {
588					$('.et_pb_portfolio .et_pb_portfolio_item').directionalHover();
589				});
590			});
591
592			$('div.et_pb_portfolio').on('classChanged', 'li.page a', function () {
593				setTimeout(function () {
594					$('.et_pb_portfolio .et_pb_portfolio_item').directionalHover();
595				});
596			});
597		});
598	}
599
600
601	if (toolbox_values.dtb_mobile_nested === '1') {
602		(function ($) {
603			function dtb_setup_submenus() {
604				$("<a class='sub-menu-toggle' href='#'></a>").insertBefore(".et_mobile_menu .menu-item-has-children > a, #dtb-m-menu .menu-item-has-children > a");
605				
606				$(".sub-menu-toggle").click(function (e) {
607					e.preventDefault();
608					$(this).toggleClass("popped");
609				});
610			}
611			$(document).ready(function() {
612				dtb_setup_submenus();
613				var parent_links = $(".et_mobile_menu .menu-item-has-children > a:not(.sub-menu-toggle), #dtb-m-menu .menu-item-has-children > a:not(.sub-menu-toggle)");
614				var toggles = $(".sub-menu-toggle");
615				parent_links.off();
616				parent_links.each(function (i) {
617					if ($(this).attr("href") === '#') {
618						$(this).click(function () {
619							toggles[i].click(function () {
620								$(this).toggleClass('popped');
621							});
622						});
623					}
624				});
625			});
626		})(jQuery);
627	}
628}
629
630jQuery(document).ready(function($) {
631	function dtb_Ajax_Fn2() {
632		if ((toolbox_values.dtb_blog_layout !== 'blog_default') && (toolbox_values.dtb_blog_layout !== '')) {
633			$('.dtb-blog.et_pb_module .et_pb_post').each(function () {
634				if ($('.dtb-post-wrap', this).length < 1) {
635					$('>:not(.entry-featured-image-url)', this).not('.et_pb_gallery_post_type,.et_main_video_container,.et_audio_content').wrapAll('<div class="dtb-post-wrap"></div>');
636				}
637				$('.more-link', this).addClass(toolbox_values.dtb_archive_btn_hover);
638			});
639		}
640		
641		if (toolbox_values.dtb_post_meta === '1') {
642			$(".dtb-blog.et_pb_module .post-meta, .archive #left-area .et_pb_post .post-meta, .blog #left-area .et_pb_post .post-meta, .search #left-area .et_pb_post .post-meta, .single-post #left-area .et_pb_post .post-meta, .dtb-blog.et_pb_module .et_pb_title_meta_container").html(function () {
643				return $(this).html().replace(/\|/g, '').replace('by', '').replace('por', '').replace('...', '').replace(/,/g, '');
644			});
645			$('.dtb-blog.et_pb_module .post-meta').contents().each(function() {
646				if (this.nodeType == 3 && $.trim(this.nodeValue) != '') {
647				   $(this).wrap('<span class="comments-wrapper"></span>');
648				}
649			});
650		}
651	
652		if (toolbox_values.dtb_sidebar_search !== '') {
653			$('.et_pb_widget_area #searchsubmit, #sidebar #searchsubmit, .dtb-sidebar #searchsubmit').before('<span class="icon"></span>');
654		}
655		
656		$('#top-menu-nav #top-menu li a, .dtb-menu ul.et-menu li a, #et-secondary-nav li.cta-link a').each(function () {
657			if ($('>span', this).length < 1) {
658				$(this).wrapInner('<span></span>');
659			}
660		});
661		
662		if (toolbox_values.dtb_cta_link === '1') {
663			if (toolbox_values.dtb_cta_link_type === 'first_item') {
664				$('#top-menu>li:first-child, #mobile_menu>li:first-child, .dtb-menu .et-menu>li:first-child, .dtb-menu .et_mobile_menu>li:first-child').addClass('cta-item');
665			}
666			if (toolbox_values.dtb_cta_link_type === 'last_item') {
667				$('#top-menu>li:last-child, #mobile_menu>li:last-child, .dtb-menu .et-menu>li:last-child, .dtb-menu .et_mobile_menu>li:last-child').addClass('cta-item');
668			}
669			if (toolbox_values.dtb_cta_link_type === 'custom_class') {
670				$('#top-menu>li.cta-link, #mobile_menu>li.cta-link, .dtb-menu .et-menu>li.cta-link, .dtb-menu .et_mobile_menu>li.cta-link, #et-secondary-nav>li.cta-link').addClass('cta-item');
671			}
672			$('#top-menu>li.cta-item>a,.dtb-menu .et-menu>li.cta-item>a, #et-secondary-nav>li.cta-item>a').addClass(toolbox_values.cta_hover_style);
673		}
674		
675		
676		if ((toolbox_values.dtb_social_mobile_add === '1') && (toolbox_values.dtb_social_enable === '1')) {
677			$('body>.et-social-icons').detach().appendTo('[id^="mobile_menu"], .dtb-menu .et_mobile_menu');
678		}
679	}
680
681   $(document).ajaxComplete(function() {
682	   dtb_Ajax_Fn2();
683   });
684   dtb_Ajax_Fn2();
685   
686   
687	if ($('.custom_hamburger_icon').length > 0) {
688		var iconName = 'hamburger_menu_icon',
689			toggledName = iconName + '-toggled';
690		$('.mobile_menu_bar').addClass(iconName).html('<div class="dtb-hamburger"><div class="dtb-hamburger-box"><div class="dtb-hamburger-inner"></div></div></div>');
691		  
692		$('.' + iconName).on('click', function (e) {
693			e.preventDefault();
694			$(this).toggleClass(toggledName);
695			$('.et_slide_in_menu_container .mobile_menu_bar').toggleClass(toggledName);
696		});	
697		
698		$('.et_slide_in_menu_container .mobile_menu_bar').click(function(){
699			$('.hamburger_menu_icon-toggled').removeClass('hamburger_menu_icon-toggled');
700		});
701	}
702		
703});
704
705
706
707
708jQuery(document).ready(function($) {
709	
710	
711	function CustomMobileMenu() {
712
713
714		if ((toolbox_values.dtb_enable_custom_m_menu !== '') && (toolbox_values.dtb_mobile_enable !== '')) {
715			$('#dtb-m-menu').detach().insertAfter('#page-container');
716			//if (toolbox_values.dtb_m_m_hamburger_show !== '') {
717				$('#main-header .mobile_menu_bar_toggle, .et_slide_in_menu_container .mobile_menu_bar, .et_toggle_slide_menu').clone().prependTo('#dtb-m-menu .nav-wrapper');
718			//}
719				
720			if ((toolbox_values.dtb_custom_m_menu === '') && ($('.et_pb_module.dtb-menu').length > 0) ){
721				$('#dtb-m-menu ul.dtb-mobile-menu:first-of-type').detach();
722				//if (toolbox_values.dtb_m_m_hamburger_show !== '') {
723					$('.et_pb_module.dtb-menu .mobile_menu_bar').clone().prependTo('#dtb-m-menu .nav-wrapper');
724				//}
725
726				// Function to move the mobile menu
727				function moveDtbMobileMenu() {
728					$('.et_pb_module.dtb-menu .et_mobile_menu').detach().appendTo('#dtb-m-menu .nav-wrapper').removeClass('et_mobile_menu').addClass('dtb-mobile-menu');
729
730					// Setup nested submenus if enabled (for Divi 5 dynamic menu)
731					if (toolbox_values.dtb_mobile_nested === '1') {
732						$('#dtb-m-menu .menu-item-has-children > a').each(function() {
733							if (!$(this).prev('.sub-menu-toggle').length) {
734								$("<a class='sub-menu-toggle' href='#'></a>").insertBefore($(this));
735							}
736						});
737						$('#dtb-m-menu .sub-menu-toggle').off('click').on('click', function(e) {
738							e.preventDefault();
739							$(this).toggleClass('popped');
740						});
741					}
742				}
743
744			
745
746				// Check if .et_mobile_menu exists
747				if ($('.et_pb_module.dtb-menu .et_mobile_menu').length > 0) {
748					moveDtbMobileMenu();
749				} else {
750					var dtbMenuModule = document.querySelector('.et_pb_module.dtb-menu');
751					if (dtbMenuModule) {
752						var dtbMenuObserver = new MutationObserver(function(mutations, observer) {
753							if ($('.et_pb_module.dtb-menu .et_mobile_menu').length > 0) {
754								moveDtbMobileMenu();
755								observer.disconnect();
756							}
757						});
758						dtbMenuObserver.observe(dtbMenuModule, { childList: true, subtree: true });
759					}
760				}
761
762			}
763			if ((toolbox_values.dtb_custom_m_menu !== '') && ($('.et_pb_module.dtb-menu').length > 0) /*&& (toolbox_values.dtb_m_m_hamburger_show !== '') */){
764				$('.et_pb_module.dtb-menu .mobile_menu_bar').clone().prependTo('#dtb-m-menu .nav-wrapper');
765				
766				
767			}
768			if ((toolbox_values.dtb_m_m_animation_page !== '') && (toolbox_values.dtb_vb_enabled !== '1')) {
769				setTimeout(function() {
770					$('#page-container, #dtb-m-menu').wrapAll('<div class="dtb-body-wrapper"/>');
771					$('#page-container').wrap('<div class="dtb-page-container noanimation"/>');
772				}, 2000);
773				var dtbMenuHeight = $('#dtb-m-menu').height();
774				var dtbAdminBar = $('#wpadminbar').height();
775				var dtbMenuOffset = -1*(dtbMenuHeight-dtbAdminBar);
776				var dtbMenucontainer = $('#dtb-m-menu');
777				var dtbMenuAnimation	= toolbox_values.dtb_m_m_animation_type;
778				if (dtbMenuAnimation === 'move_bottom')  {
779					dtbMenucontainer.css('top', dtbMenuOffset);
780				}
781				if (dtbMenuAnimation === 'move_top')  {
782					dtbMenucontainer.css('bottom', -dtbMenuHeight);
783				}
784				dtbMenucontainer.addClass('dtb-mobile-opacity');
785			}
786			
787			if (toolbox_values.dtb_m_mobile_elements_widgets !== '') {
788				$('#dtb-m-menu .menu-wrapper').attr('id', 'page-container');
789			}
790	
791					
792			$('.mobile_menu_bar_toggle, .et_pb_module.dtb-menu .mobile_menu_bar, #dtb-m-menu .mobile_menu_bar, #dtb-m-menu li.menu-item a[href*="#"]:not([href$="#"]), .et_header_style_fullscreen .mobile_menu_bar, .et_toggle_slide_menu').click(function(){
793				$('#dtb-m-menu .mobile_menu_bar').toggleClass('hamburger_menu_icon-toggled');
794				$('#dtb-m-menu').addClass('dtb-in');
795				$('#dtb-m-menu').toggleClass('dtb-out');
796				$('body').toggleClass('dtb-m-mobile-open stopscroll');
797				$('.dtb-page-container').removeClass('noanimation');
798				if (toolbox_values.dtb_m_m_animation_page !== '') {
799					
800					var dtbMenuAnimation	= toolbox_values.dtb_m_m_animation_type;
801					var dtbMenuOpened = $('body').hasClass('dtb-m-mobile-open');
802					var dtbPagecontainer = $('.dtb-page-container');
803					var dtbMenucontainer = $('#dtb-m-menu');
804					var dtbMenuHeight = $('#dtb-m-menu').height();
805					if ( $('#wpadminbar').length ) {
806						var dtbAdminBar = $('#wpadminbar').height();
807						} else {
808						var dtbAdminBar = 0 };
809					var dtbMenuOffset = dtbMenuHeight-dtbAdminBar;
810					
811					if (toolbox_values.dtb_m_m_width === '') {
812						var dtbMenuWidth = '100%';
813					} else { 
814						var dtbMenuWidth = toolbox_values.dtb_m_m_width_max + 'px';
815					}
816					if (dtbMenuAnimation === 'move_left')  {
817						
818						if (dtbMenuOpened) {
819							dtbPagecontainer.animate({right: dtbMenuWidth}, 500 );
820							dtbMenucontainer.animate({right: "0"}, 500 );
821						}
822						if (!dtbMenuOpened) {
823							dtbPagecontainer.animate({right: "0"}, 500 );
824							dtbMenucontainer.animate({right: '-'+dtbMenuWidth}, 500 );
825						}
826					}
827					if (dtbMenuAnimation === 'move_right')  {
828						
829						if (dtbMenuOpened) {
830							dtbPagecontainer.animate({left: dtbMenuWidth}, 500 );
831							dtbMenucontainer.animate({left: "0"}, 500 );
832						}
833						if (!dtbMenuOpened) {
834							dtbPagecontainer.animate({left: "0"}, 500 );
835							dtbMenucontainer.animate({left: '-'+dtbMenuWidth}, 500 );
836						}
837					}
838					if (dtbMenuAnimation === 'move_bottom')  {
839						
840						if (dtbMenuOpened) {
841							dtbPagecontainer.animate({top: dtbMenuHeight}, 500 );
842							dtbMenucontainer.animate({top: dtbAdminBar}, 500 );
843						}
844						if (!dtbMenuOpened) {
845							dtbPagecontainer.animate({top: "0"}, 500 );
846							dtbMenucontainer.animate({top: '-'+dtbMenuOffset}, 500 );
847						}
848					}
849					if (dtbMenuAnimation === 'move_top')  {
850						
851						if (dtbMenuOpened) {
852							dtbPagecontainer.animate({bottom: dtbMenuHeight}, 500 );
853							dtbMenucontainer.animate({bottom: 0}, 500 );
854						}
855						if (!dtbMenuOpened) {
856							dtbPagecontainer.animate({bottom: "0"}, 500 );
857							dtbMenucontainer.animate({bottom: '-'+dtbMenuHeight}, 500 );
858						}
859					}
860				}
861				
862			});
863			
864			
865			if (toolbox_values.dtb_m_mobile_trigger !== '') {
866				$('#main-header .mobile_menu_bar, .et_pb_module.dtb-menu .mobile_menu_bar, #dtb-m-menu .mobile_menu_bar').not('.dtb-m-menu-trigger .mobile_menu_bar').not('.et_header_style_fullscreen .mobile_menu_bar').not('.et_header_style_slide .mobile_menu_bar').detach();
867			}	
868			
869			
870			$('#dtb-m-menu .mobile_menu_bar, #dtb-m-menu li.menu-item a[href*="#"]:not([href$="#"])').click(function(){
871			$('.hamburger_menu_icon-toggled').removeClass('hamburger_menu_icon-toggled');
872			$('.dtb-menu .mobile_nav').removeClass('opened').addClass('closed');
873		 });
874			
875			
876		}
877		
878	}
879
880	CustomMobileMenu();
881	
882	if (toolbox_values.dtb_m_m_animation_page !== '') {
883		$(window).on('resize', function(event){
884			var dtbMenuOpened = $('body').hasClass('dtb-m-mobile-open');
885			var dtbMenuHeight = $('#dtb-m-menu').height();
886			if ( $('#wpadminbar').length ) {
887				var dtbAdminBar = $('#wpadminbar').height();
888				} else {
889				var dtbAdminBar = 0 };
890			var dtbMenuOffset = -1*(dtbMenuHeight-dtbAdminBar);
891			var dtbMenucontainer = $('#dtb-m-menu');
892			var dtbMenuAnimation	= toolbox_values.dtb_m_m_animation_type;
893			if (!dtbMenuOpened) {
894				
895				
896				if (dtbMenuAnimation === 'move_bottom')  {
897					dtbMenucontainer.css('top', dtbMenuOffset);
898				}
899				if (dtbMenuAnimation === 'move_top')  {
900					dtbMenucontainer.css('bottom', -dtbMenuHeight);
901				}
902			}
903		});
904	}
905	
906	if ($('.page-template-page-template-blank .dtb-menu').length == 0) {
907		$('.page-template-page-template-blank #dtb-m-menu, .page-template-page-template-blank .dtb-m-menu-trigger').detach()
908	}
909}
909);
910
911
912function dtbHideCachedMenu() {
913	jQuery('body').removeClass('dtb-m-mobile-open stopscroll');
914	jQuery('#dtb-m-menu').removeClass('dtb-in').addClass('dtb-out').attr('style', '');
915	jQuery('.dtb-page-container').attr('style', '');
916	jQuery('.hamburger_menu_icon-toggled').removeClass('hamburger_menu_icon-toggled');
917}
918window.addEventListener("pageshow", function() {
919	dtbHideCachedMenu();
920});	

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.