PageSourceSearch

https://www.philpenman.com/lib/g/2.0/scripts/artlogic_modules/gall…=a084b1f&g=aac226233bd4ebc9fc075ea7f1bcd440

js philpenman.com collected 2026-09-28 12:32:35 UTC 1,002 bytes, 29 lines download raw bytes

1import parallaxPlugin from '../plugins/parallax.js'
2import device from './device.js';
3
4var parallax = {
5
6    init: function() {
7        if (!window.galleries.device.handheld()) {
8            $('.parallax-element').each(function() {
9                $('body').addClass('page-parallax-animate');
10                $(this).parallax({imageSrc: $(this).attr('data-image-src')});
11                setTimeout(function() {
12                    $('body').removeClass('page-parallax-animate')
13                }, 50);
14            });
15        }
16        $(window).resize(function(){
17            if (($(window).width() <= 767 || window.galleries.device.handheld()) && $('#hero_header').length) {
18                $('#hero_header').addClass('parallax-disabled');
19            } else if ($('#hero_header').length) {
20                $('#hero_header').removeClass('parallax-disabled');
21            }
22        });
23    }
24
25}
26
27window.galleries = window.galleries || {};
28window.galleries.parallax = parallax;
29export default parallax;

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.