PageSourceSearch

https://www.multimedia-united.de/js/_require.js

js multimedia-united.de collected 2026-10-07 05:37:53 UTC 3,543 bytes, 69 lines download raw bytes

1rIt({
2    "*": {
3        "assets": ["/js/_essentials/notifications.js", "/js/_essentials/basics.js", "/js/_essentials/ruffnav.js"],
4        "function": "always"
5    },
6    "body.isOldBrowser": {
7        "assets": ["/js/_essentials/note.oldBrowser.js"]
8    },
9    "body.devMode": {
10        "assets": ["/js/_essentials/devMode.js"]
11    },
12    ".cms-image.lightbox-zoom-image, .cms-gallery.modalGallery":  {
13        "assets": ["/js/vendor/baguetteBox.js"],
14        "function":function() {
15            baguetteBox.run(arguments[0], {noScrollbars:true, async: true, preload: 0});
16        }
17    },
18    "picture, :not(picture) > img[data-src], .lazyBg": {
19        "assets": ["/js/_essentials/basics.js", "/js/_essentials/lazyLoad.js"],
20        "function":function() {
21            new LazyLoad({selector: arguments[0]});
22        }
23    },
24    "form[action*='formixapp.com']": {
25        "assets": ["/js/_essentials/formix.js"],
26        "function": function() {
27            new Formix({selector:arguments[0]});
28        }
29    }
30});
31
32
33function always()
34{
35    new Ruffnav();
36    new ScrollDir(document.body);
37    new Prefetcher();
38
39
40         // When the user scrolls the page, execute myFunction 
41         window.onscroll = function() {myFunction()};
42
43         // Get the navbar
44         var navbar = document.getElementById("navigation");
45     
46         // // Get the offset position of the navbar
47         // var sticky = navbar.offsetTop();
48     
49         // Add the sticky class to the navbar when you reach its scroll position. Remove "sticky" when you leave the scroll position
50         function myFunction() {
51           if (window.pageYOffset >= 180) {
52             navbar.classList.add("sticky")
53           } else if (window.pageYOffset < 180 && window.pageYOffset > 70) {
54             navbar.classList.add("in")
55           } else {
56             navbar.classList.remove("sticky");
57             navbar.classList.remove("in");
58           }
59         }
60}
61
62
63/**
64 * require it! (dependencies)
65 * @author Dominik Kressler
66 * @version 0.4.1
67 * @date 2020-04-02
68 */
69function rIt(opts,debug){var assets=[];var functions=[];var selectors=[];debug=(typeof debug==undefined||!debug)?false:true;var loadJS=function(assets,i,callbacks,ignoreErrors,selector){if(debug){console.log('require: '+assets[i])}if(assets[i].indexOf('.css',assets[i].length-4)!==-1||assets[i].indexOf('rforce=css')>-1){var js=document.createElement('link');js.setAttribute('href',assets[i]);js.setAttribute('rel','stylesheet')}else{var js=document.createElement('script');js.src=assets[i];js.setAttribute('defer','defer')}js.onload=function(){if(debug){console.info('require: loaded: '+assets[i])}if(i<assets.length-1){loadJS(assets,i+1,callbacks,ignoreErrors)}else{for(var c in callbacks){if(typeof callbacks[c]=='string'){window[callbacks[c]](selectors[c])}else{callbacks[c](selectors[c])}}}};js.onerror=function(){if(ignoreErrors){loadJS(assets,i+1,callbacks,ignoreErrors)}else{console.error('require: dependecies failed / stopped because at least one script could not be loaded: '+assets[i])}};document.querySelector('body').appendChild(js)};for(var i in opts){if(i=="always"||document.querySelectorAll(i).length>0){selectors.push(i);if(typeof opts[i].function!='undefined'&&functions.indexOf(opts[i].function)==-1){functions.push(opts[i].function)}for(var s in opts[i].assets){if(assets.indexOf(opts[i].assets[s])==-1){assets.push(opts[i].assets[s])}}}}if(debug){console.log("require: Using functions: "+functions.join())}if(assets instanceof Array){loadJS(assets,0,functions,false)}}

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.