PageSourceSearch

https://listindustries.com/modules/contrib/md_slider/assets/js/frontend/init-md-slider.js?tmj6l4

js listindustries.com collected 2026-10-07 19:29:02 UTC 1,606 bytes, 39 lines download raw bytes

1(function ($, Drupal, drupalSettings) {
2    "use strict";
3    /**
4     * Attaches the JS test behavior to weight div.
5     */
6    Drupal.behaviors.iniMDSlider = {
7        attach: function(context, settings) {
8            var effectsIn = drupalSettings.inEffects,
9                effectsOut = drupalSettings.outEffects;
10            $(window).on('load', function(){
11                window.listMegaSlide = [];
12                var i = 0,
13                    cssInline = '';
14                $.each(drupalSettings.md_slider, function(slid, slider) {
15                    listMegaSlide[i] = $('#md-slider-' + slid  + '-block').mdSlider(slider);
16                    if(slider.device_enable){
17                        cssInline += '@media (max-width: ' + slider.device_width + 'px) {\
18                            #md-slider-' + slid + '-block .md-objects {\
19                              display: none;\
20                            }\
21                          } ';
22                    }
23                    
24                    if(slider.device_width){
25                        cssInline += '@media (max-width: ' + slider.device_width + 'px) {\
26                                .hideonmobile {\
27                                  display: none !important;\
28                                }\
29                              }';
30                    }
31                    
32                    i++;
33                });
34                //$('head').append(`<style>${cssInline}</style>`);
35                $('head').append('<style>' +cssInline + '</style>');
36            });
37        }
38    };
39})(jQuery, Drupal, drupalSettings);

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.