PageSourceSearch

https://www.modulazionitemporali.it/wp-content/themes/gloria/js/menu.js?ver=7a22247de8db3271f3bf8573be10e986

js modulazionitemporali.it collected 2026-09-24 10:02:52 UTC 2,641 bytes, 100 lines download raw bytes

1/*!
2 *
3 *  Copyright (c) David Bushell | http://dbushell.com/
4 *
5 */
6(function(window, document, undefined)
7{
8    "use strict";   
9    // helper functions
10
11    var trim = function(str)
12    {
13        return str.trim ? str.trim() : str.replace(/^\s+|\s+$/g,'');
14    };
15
16    var hasClass = function(el, cn)
17    {
18        return (' ' + el.className + ' ').indexOf(' ' + cn + ' ') !== -1;
19    };
20
21    var addClass = function(el, cn)
22    {
23        if (!hasClass(el, cn)) {
24            el.className = (el.className === '') ? cn : el.className + ' ' + cn;
25        }
26    };
27
28    var removeClass = function(el, cn)
29    {
30        el.className = trim((' ' + el.className + ' ').replace(' ' + cn + ' ', ' '));
31    };
32
33    var hasParent = function(el, id)
34    {
35        if (el) {
36            do {
37                if (el.id === id) {
38                    return true;
39                }
40                if (el.nodeType === 9) {
41                    break;
42                }
43            }
44            while((el = el.parentNode));
45        }
46        return false;
47    };
48
49    // normalize vendor prefixes
50
51    var doc = document.documentElement;
52
53    var transform_prop = window.Modernizr.prefixed('transform'),
54        transition_prop = window.Modernizr.prefixed('transition'),
55        transition_end = (function() {
56            var props = {
57                'WebkitTransition' : 'webkitTransitionEnd',
58                'MozTransition'    : 'transitionend',
59                'OTransition'      : 'oTransitionEnd otransitionend',
60                'msTransition'     : 'MSTransitionEnd',
61                'transition'       : 'transitionend'
62            };
63            return props.hasOwnProperty(transition_prop) ? props[transition_prop] : false;
64        })();
65
66    window.App = (function()
67    {
68
69        var _init = false, app = { };
70
71        app.init = function()
72        {
73            if (_init) {
74                return;
75            }
76            _init = true;
77
78            addClass(doc, 'js-ready');
79
80        };
81
82        return app;
83
84    })();
85    var pagecontainer = document.getElementById( 'page-inner-wrap' );
86    if (window.addEventListener) {
87        window.addEventListener('DOMContentLoaded', window.App.init, false);
88    }
89    jQuery('#nav-open-btn').on('click', function() {
90        jQuery(pagecontainer).find('.page-cover').css({"opacity":"0.5", "display":"block"});
91        addClass(doc, 'js-nav');
92    });
93    
94    jQuery('.mobile-menu-close').on('click', function() {
95        jQuery(pagecontainer).find('.page-cover').css({"opacity":"0.5", "display":"none"});    
96        removeClass(doc, 'js-nav');   
97    });
98    
99
100})(window, window.document);

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.