PageSourceSearch

https://www.muellercompany.com/sites/muellercompany.com/files/js/j…srBXTZ_wbhI1uvMk8MQ-8aNhAWliPJ3X8VS5tKC4.js

js muellercompany.com collected 2026-10-02 14:45:31 UTC 7,259 bytes, 183 lines download raw bytes

1(function($){
2	
3	var slideWrapper,
4		slideController,
5		slideCount,
6		slideDelay,
7		slideDuration,
8		firstSlide,
9		currentSlide;
10
11	
12	$(document).ready(function(){
13		
14		slideWrapper = $('.home-slide-wrapper');
15		slideController = $('.home-slider-controller a');
16		slideCount = slideWrapper.length;
17		slideDelay = 10000;
18		slideDuration = 500;
19		firstSlide = slideWrapper.first();
20		currentSlide = firstSlide;
21	
22		firstSlide.addClass('active');
23		slideController.first().addClass('active');
24	
25		if( slideCount > 1 ) {
26			var slideshowInterval = setInterval(slideshow, slideDelay);
27			$('#block-views-home-slider-block').hover(function(){
28				clearInterval(slideshowInterval);
29			}, function(){
30				slideshowInterval = setInterval(slideshow, slideDelay);
31			});
32			$('.home-slider-controller a').click(function(){
33				slideshow( slideWrapper.eq($(this).index()) );
34			});
35		}
36    
37	});
38	
39	function slideshow(next) {
40		if( typeof next != 'undefined' ) {
41			if( currentSlide.index() == next.index() ) {
42				return;
43			}
44			nextSlide = next;
45		} else {
46			nextSlide = currentSlide.next();
47		}
48		if( nextSlide.length == 0 ) {
49			nextSlide = firstSlide;
50		}
51		slideController.removeClass('active');
52		currentSlide.removeClass('active');
53		nextSlide.addClass('active');
54		slideController.eq(nextSlide.index()).addClass('active');
55		currentSlide = nextSlide;
56	} 
57})(jQuery);;
58/**
59 * @file
60 * Cookiebot functionality.
61 */
62
63(function ($, Drupal) {
64  'use strict';
65
66  var $window = $(window);
67  var renewConsentTriggerEventName = 'cookiebotConsentRenew';
68
69  /**
70   * Capitalize the first character of a given string.
71   *
72   * @param {string} string
73   *   The string to capitalize the first character of.
74   *
75   * @return {string}
76   *   The string with the first letter capitalized.
77   */
78  var capitalizeFirstCharacter = function (string) {
79    return string[0].toUpperCase() + string.substr(1);
80  };
81
82  /**
83   * Listens to event of a user accepting the use of cookies.
84   *
85   * This is also called on every page load when cookies are already accepted.
86   */
87  $window.on('CookiebotOnAccept', function () {
88    Drupal.cookiebot.updateCookies();
89  });
90
91  /**
92   * Listens to the event of a user declining the use of cookies.
93   *
94   * This is also called on every page load when cookies are already declined.
95   */
96  $window.on('CookiebotOnDecline', function () {
97    Drupal.cookiebot.updateCookies();
98  });
99
100  /**
101   * Listens to event of a user wanting to change their cookies consent.
102   */
103  $window.on(renewConsentTriggerEventName, function () {
104    if (typeof Cookiebot === 'undefined') {
105      return;
106    }
107
108    Cookiebot.renew();
109  });
110
111  /**
112   * Attach Cookiebot renew click event listener.
113   *
114   * @type {Drupal~behavior}
115   */
116  Drupal.behaviors.cookiebot = {
117    attach: function attach(context, settings) {
118      Drupal.cookiebot.updateCookies();
119
120      $('.cookiebot-renew', context).once().on('click', function (event) {
121        event.preventDefault();
122
123        $window.trigger(renewConsentTriggerEventName);
124      });
125
126      if (settings.cookiebot.message_placeholder_cookieconsent_optout_marketing_show && settings.cookiebot.message_placeholder_cookieconsent_optout_marketing.length > 0) {
127        var message_placeholder_cookieconsent_optout_marketing = settings.cookiebot.message_placeholder_cookieconsent_optout_marketing.replace('!cookiebot_renew', 'javascript:Cookiebot.renew()');
128        $('[data-cookieconsent="marketing"][data-src]').each(function () {
129          var cookiebot_from_src_url = '';
130          if ($(this).attr('data-src').length) {
131            cookiebot_from_src_url = $(this).attr('data-src');
132          }
133          $(this).once('cb-message-placeholder-cookieconsent-optout-marketing').after(message_placeholder_cookieconsent_optout_marketing.replace(new RegExp('!cookiebot_from_src_url', 'g'), cookiebot_from_src_url));
134        });
135      }
136    }
137  };
138
139  /**
140   * Updates cookies for Cookiebot.
141   *
142   * We set our own cookies to be able to provide integration with other Drupal
143   * modules, without relying on the cookies of Cookiebot, since those are not
144   * part of the public API.
145   */
146  Drupal.cookiebot = {
147    updateCookies: function updateCookies() {
148      var cookieNames = [
149        'necessary',
150        'preferences',
151        'statistics',
152        'marketing'
153      ];
154
155      if (typeof Cookiebot === 'undefined' || Cookiebot.consent === void (0)) {
156        return;
157      }
158
159      $.each(cookieNames, function (index, cookieName) {
160        if (Cookiebot.consent[cookieName] === true && $.cookie('cookiebot-consent--' + cookieName) !== '1') {
161          $.cookie('cookiebot-consent--' + cookieName, '1', {
162            path: '/'
163          });
164          $window.trigger('cookiebotConsentAccept' + capitalizeFirstCharacter(cookieName));
165          return;
166        }
167
168        if (Cookiebot.consent[cookieName] === false && $.cookie('cookiebot-consent--' + cookieName) !== '0') {
169          $.cookie('cookiebot-consent--' + cookieName, '0', {
170            path: '/'
171          });
172          $window.trigger('cookiebotConsentDecline' + capitalizeFirstCharacter(cookieName));
173        }
174      });
175    }
176  };
177
178})(jQuery, Drupal, window);
179;
180(function($){Drupal.behaviors.lang_dropdown={attach:function(context,settings){var settings=settings||Drupal.settings;if(settings.lang_dropdown){var flags,msddSettings;for(key in settings.lang_dropdown){msddSettings=settings.lang_dropdown[key].jsWidget;flags=msddSettings.languageicons;if(flags)$.each(flags,function(index,value){if(msddSettings.widget=="msdropdown")$("select#lang-dropdown-select-"+key+' option[value="'+index+'"]',context).attr("data-image",value);else if(msddSettings.widget=="ddslick"&&
181Boolean(msddSettings.showSelectedHTML))$("select#lang-dropdown-select-"+key+' option[value="'+index+'"]',context).attr("data-imagesrc",value)});if(msddSettings.widget=="msdropdown")try{$("select#lang-dropdown-select-"+key,context).msDropDown({visibleRows:msddSettings.visibleRows,roundedCorner:Boolean(msddSettings.roundedCorner),animStyle:msddSettings.animStyle,event:msddSettings.event,mainCSS:msddSettings.mainCSS})}catch(e){if(console)console.log(e)}else if(msddSettings.widget=="chosen")$("select#lang-dropdown-select-"+
182key,context).chosen({disable_search:msddSettings.disable_search,no_results_text:msddSettings.no_results_text});else if(msddSettings.widget=="ddslick")$("select#lang-dropdown-select-"+key,c
182ontext).ddslick({width:msddSettings.width==0?null:msddSettings.width,height:msddSettings.height==0?null:msddSettings.height,showSelectedHTML:Boolean(msddSettings.showSelectedHTML),imagePosition:msddSettings.imagePosition,onSelected:function(data){if(!data.selectedItem.parent().data("ddslick-has-been-initialized")){data.selectedItem.parent().data("ddslick-has-been-initialized",
183true);return}var lang=data.selectedData.value;var href=$("#lang-dropdown-select-"+key,context).parents("form").find('input[name="'+lang+'"]').val();window.location.href=href}})}}$("select.lang-dropdown-select-element",context).change(function(){var lang=this.options[this.selectedIndex].value;var href=$(this).closest("form").find('input[name="'+lang+'"]').val();window.location.href=href});$("form.lang-dropdown-form",context).after('<div style="clear:both;"></div>')}}})(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.