PageSourceSearch

https://get2gether.org.uk/wp-content/plugins/one-page-express-comp…/sections/scripts.js?ver=1.6.50

js get2gether.org.uk collected 2026-09-24 13:32:42 UTC 5,413 bytes, 177 lines download raw bytes

1window.scrollEffects = {
2    "RevealFX111": {
3        "effect": "slide",
4        "parameters": {
5            "from": "left",
6            "distance": "50px",
7            "opacity": "0",
8            "start": "2"
9        },
10        "over": "800ms",
11        "defaultDelay": "500ms",
12        "easing": "ease-out",
13        "viewportFactor": "0",
14        "preset": "custom",
15        "init": "false",
16        "play-easing": "ease-out"
17    }
18};
19window.contentSwap = {
20    "ContentSwap104": {
21        "effectType": "",
22        "contentType": "overlay",
23        "overflowEnabled": "false",
24        "effectDelay": "800",
25        "effectEasing": "Ease",
26        "overlayColor": "490A3D",
27        "innerColor": "ffffff",
28        "openPage": "same",
29        "name": "",
30        "captionType": "490A3D",
31        "operationType": "edit",
32        "hasls": "true",
33        "additionalWrapperClasses": "",
34        "direction": "bottom",
35        "useSameTemplate": "true"
36    },
37    "ContentSwap103": {
38        "effectType": "",
39        "contentType": "overlay",
40        "overflowEnabled": "false",
41        "effectDelay": "800",
42        "effectEasing": "Ease",
43        "overlayColor": "490A3D",
44        "innerColor": "ffffff",
45        "openPage": "same",
46        "name": "",
47        "captionType": "490A3D",
48        "operationType": "edit",
49        "hasls": "true",
50        "additionalWrapperClasses": "",
51        "direction": "bottom",
52        "useSameTemplate": "true"
53    },
54    "ContentSwap102": {
55        "effectType": "",
56        "contentType": "overlay",
57        "overflowEnabled": "false",
58        "effectDelay": "800",
59        "effectEasing": "Ease",
60        "overlayColor": "490A3D",
61        "innerColor": "ffffff",
62        "openPage": "same",
63        "name": "",
64        "captionType": "490A3D",
65        "operationType": "edit",
66        "hasls": "true",
67        "additionalWrapperClasses": "",
68        "direction": "bottom",
69        "useSameTemplate": "true"
70    }
71};
72
73
74
75
76jQuery(document).ready(function($) {
77
78    // scrollEffects
79    jQuery('[reveal-fx]').each(function() {
80        var element = jQuery(this);
81        element.removeAttr('data-scrollreveal-initialized');
82        element.removeAttr('data-scrollreveal-complete');
83        if (!window.scrollEffects.hasOwnProperty(element.attr("reveal-fx"))) {
84            element.show();
85            return;
86        }
87        for (var prop in scrollEffects) {
88            if (element.attr("reveal-fx") == prop) {
89                element.attr("data-scrollReveal", prop);
90                element.hide();
91            }
92        }
93    });
94    if (window.extendScrollReveal) {
95        window.extendScrollReveal.init();
96    }
97
98    // hoverfx
99
100    var contentSwapTimeout = setTimeout(function() {
101        if (window.initHoverFX) {
102            initHoverFX(window.contentSwap);
103        }
104    }, 10);
105    jQuery(window).resize(function(e) {
106        clearTimeout(contentSwapTimeout);
107        contentSwapTimeout = setTimeout(function() {
108            if (window.initHoverFX) {
109                initHoverFX(window.contentSwap, null, e);
110            }
111        }, 150);
112
113    });
114
115
116
117    // background image
118
119    var isMobile = function() {
120        var viewportWidth = window.innerWidth,
121            maxWidth = 767;
122
123        var deviceMatch = (/iphone|ipod|android|blackberry|mini|windows\sce|windows\sphone|iemobile|palm|webos|series60|symbianos|meego/i.test(navigator.userAgent));
124        var sizeMatch;
125        var isLTIE9 = (window.flexiCssMenus.browser.name == "msie" && window.flexiCssMenus.browser.version < 9);
126        if (window.matchMedia && !isLTIE9) {
127            sizeMatch = window.matchMedia("(max-width:" + (maxWidth) + "px)").matches;
128        } else {
129            sizeMatch = viewportWidth <= maxWidth;
130        }
131        return deviceMatch || sizeMatch;
132    };
133
134
135    var isTablet = function() {
136
137        var viewportWidth = window.innerWidth,
138            minWidth = 768,
139            maxWidth = 1024;
140        var is_touch_device = 'ontouchstart' in document.documentElement;
141
142        var deviceMatch = (/ipad|Win64|tablet/i.test(navigator.userAgent));
143        var sizeMatch;
144        var isLTIE9 = (window.flexiCssMenus.browser.name == "msie" && window.flexiCssMenus.browser.version < 9);
145        if (!isLTIE9 && window.matchMedia) {
146            sizeMatch = window.matchMedia("(max-width:" + (maxWidth) + "px) and (min-width:" + (minWidth + 1) + "px)").matches;
147        } else {
148            sizeMatch = viewportWidth <= maxWidth && viewportWidth >= minWidth;
149        }
150        return is_touch_device && (deviceMatch || sizeMatch);
151    };
152
153    if (isMobile() || isTablet()) {
154
155        function setBackgrounds() {
156            $('[data-bg="transparent"]').each(function(index, el) {
157                var topPosition = ($(this).offset().top + (window.innerHeight - $(this).height()) / 2) / $('body').height() * 100;
158                var bgHeight = Math.max(window.innerHeight,$(this).outerHeight());
159
160                $(this).css({
161                    'background-image': $('body').css('background-image'),
162                    'background-size': 'auto ' + bgHeight + 'px',
163                    'background-repeat': 'no-repeat',
164                    'background-position': 'center top ' + topPosition + '%'
165                });
166            });
167        }
168
169        $([window, document]).on('resize', function() {
170            setBackgrounds();
171        });
172
173        setBackgrounds();
174
175    }
176
177});

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.