PageSourceSearch

https://www.houstonfirst.com/static/js/editorial.js

js houstonfirst.com collected 2026-10-03 20:48:50 UTC 1,997 bytes, 69 lines download raw bytes

1$(document).ready(function () {
2
3    $('#editorial-slider').each(function () {
4        var $this = $(this),
5            $thisDots = $this.find('.owl-dots'),
6            $owl = $this.find('.owl-carousel'),
7            slidespeed = 4;
8
9        if (slidespeed) {
10            $owl.owlCarousel({
11                nav: false,
12                dots: true,
13                loop: true,
14                items: 1,
15                margin: 0,
16                smartSpeed: 600,
17                autoHeight: false,
18                dotsContainer: $thisDots,
19                autoplay: true,
20                autoplayTimeout: slidespeed * 1000,
21                animateOut: 'fadeOut'
22            });
23        } else {
24            $owl.owlCarousel({
25                nav: false,
26                dots: true,
27                loop: true,
28                items: 1,
29                margin: 0,
30                smartSpeed: 600,
31                autoHeight: false,
32                dotsContainer: $thisDots,
33                autoplay: false,
34                animateOut: 'fadeOut'
35            });
36        }
37
38        function getcaptionHeight() {
39            captionH = $this.find('.owl-carousel .owl-item.active .caption').outerHeight();
40            $this.find('.controls').height(captionH);
41        }
42
43        getcaptionHeight();
44
45        $owl.on('resized.owl.carousel dragged.owl.carousel', function () {
46            getcaptionHeight();
47        });
48
49        $thisDots.on('click', '.owl-dot:not(.disabled)', function () {
50            $owl.trigger('to.owl.carousel', [$(this).index(), 600, true]);
51            getcaptionHeight();
52        });
53
54        // Disable nav controls while animating
55        $owl.on('translate.owl.carousel', function () {
56            $thisDots.find('.owl-dot').addClass('disabled');
57        });
58        $owl.on('translated.owl.carousel', function () {
59            $thisDots.find('.owl-dot').removeClass('disabled');
60        });
61    });
62
63
64    $('.videolink').magnificPopup({
65        type: 'iframe'
66    });
67
68});
69

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.