PageSourceSearch

https://www.messe-offenbach.de/wp-content/cache/autoptimize/js/aut…_single_7f76b2f7a1c70fa19c65c9878760bd22.js

js messe-offenbach.de collected 2026-10-05 00:42:05 UTC 3,111 bytes, 60 lines download raw bytes

1(function($)
2{"use strict";$(function()
3{avia_header_size();});function av_change_class($element,change_method,class_name)
4{if($element[0].classList)
5{if(change_method=="add")
6{$element[0].classList.add(class_name);}
7else
8{$element[0].classList.remove(class_name);}}
9else
10{if(change_method=="add")
11{$element.addClass(class_name);}
12else
13{$element.removeClass(class_name);}}}
14function avia_header_size()
15{var win=$(window),header=$('.html_header_top.html_header_sticky #header'),unsticktop=$('.av_header_unstick_top');if(!header.length&&!unsticktop.length)
16{return;}
17var logo=$('#header_main .container .logo img, #header_main .container .logo svg, #header_main .container .logo a'),elements=$('#header_main .container:not(#header_main_alternate>.container), #header_main .main_menu ul:first-child > li > a:not(.avia_mega_div a, #header_main_alternate a), #header_main #menu-item-shop .cart_dropdown_link'),el_height=$(elements).first().height(),isMobile=$.avia_utilities.isMobile,scroll_top=$('#scroll-top-link'),transparent=header.is('.av_header_transparency'),shrinking=header.is('.av_header_shrinking'),shrink_factor=header.data('av_shrink_factor'),shrink_val=el_height/2.0,el_shrinked=el_height/2.0,header_meta=header.find('#header_meta'),topbar_height=header_meta.length?header_meta.outerHeight():0,header_alternate=header.find('#header_main_alternate'),alternate_header_height=header_alternate.length?header_alternate.outerHeight():0,set_height=function()
18{var st=win.scrollTop(),newH=0,st_real=st;if(unsticktop)
19{st-=topbar_height;}
20if(st<0)
21{st=0;}
22if(shrinking&&!isMobile)
23{if(st<shrink_val)
24{newH=el_height-st;if(st<=0)
25{newH=el_height;}
26av_change_class(header,'remove','header-scrolled');}
27else
28{newH=el_shrinked;av_change_class(header,'add','header-scrolled');}
29if(st-30<el_height)
30{av_change_class(header,'remove','header-scrolled-full');}
31else
32{av_change_class(header,'add','header-scrolled-full');}
33elements.css({'height':newH+'px','lineHeight':newH+'px'});logo.css({'maxHeight':newH+'px'});let propHeight=newH+alternate_header_height;if(header.length)
34{if(!unsticktop.length)
35{propHeight+=topbar_height;}
36else
37{if(st<=topbar_height)
38{propHeight=propHeight+topbar_height-st_real;}}}
39$(':root')[0].style.setProperty('--enfold-header-height',Math.round(propHeight)+'px');}
40if(unsticktop.length)
41{if(st<=0)
42{if(st_real<=0)
43{st_real=0;}
44unsticktop.css({"margin-top":"-"+st_real+"px"});}
45else
46{unsticktop.css({"margin-top":"-"+topbar_height+"px"});}}
47if(transparent)
48{if(st>50)
49{av_change_class(header,'remove','av_header_transparency');}
50else
51{av_change_class(header,'add','av_header_transparency');}}};if(typeof shrink_factor!='undefined')
52{const value=parseInt(shrink_factor);if(!isNaN(value))
53{shrink_val=el_height*(value/100.0);el_shrinked=el_height-shrink_val;}}
54if($('body').is('.avia_deactivate_menu_resize'))
55{shrinking=false;}
56if(!transparent&&!shrinking&&!unsticktop.length)
57{return;}
58win.on('debouncedresize',function()
59{el_height=$(elements).attr('style',"").first().height();set_height();});win.on('scroll',function()
60{window.requestAnimationFrame(set_height);});set_height();}})(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.