PageSourceSearch

https://www.oregonlottery.org/wp-content/themes/oregonlottery20xx/…/ol-story-gallery.js?ver=6.8.10

js oregonlottery.org collected 2026-10-02 02:30:04 UTC 1,706 bytes, 56 lines download raw bytes

1(function($){
2
3    var initializeBlock = function( $block ) {
4      // Fix frontend/backend inconsistcy (editor includes wrapper div)
5      if(!$block.hasClass('ol-story-gallery')){ $block = $block.find('.ol-story-gallery');}
6
7      // Get Nested Element
8      $carousel = $block.find('.ol-story-gallery__content .ol-story-gallery__right');
9     
10      $carousel.flickity({
11          cellAlign: 'left',
12          pageDots: false,
13          wrapAround: false,
14          groupCells: true,
15          imagesLoaded: false,
16          prevNextButtons: false,
17          watchCSS: true
18      });     
19      if(window.outerWidth < 480){
20        matchHeight('.ol-story-gallery__smallstorybar');
21      }
22      $(window).resize(function(){
23        if(window.outerWidth < 480){
24            matchHeight('.ol-story-gallery__smallstorybar');
25        } else {
26            $('.ol-story-gallery__smallstorybar').css('min-height', 'unset');
27        }
28      });
29    }
30    function matchHeight(sel){
31        //console.log('normalizing height: ' + sel );
32        let minHeight = 0;
33
34        $(sel).css('min-height', 'unset');
35        $(sel).each(function(){
36            console.log($(this).height());
37            if( $(this).height() > minHeight){
38                minHeight = $(this).height();
39            }
40            console.log(minHeight);
41        })
42        $(sel).css('min-height', String(minHeight) + 'px');
43    }
44   // Window Initialized
45   $(document).ready(function(){
46        $('.ol-story-gallery').each(function(){ initializeBlock( $(this) ); });
47    });
48
49    // ACF Initialized
50    if( window.acf ) {
51        window.acf.addAction( 'render_block_preview/type=ol-story-gallery', initializeBlock );
52    }
53
54})(jQuery);
55
56

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.