PageSourceSearch

https://snaprism.com/js/active.js

js snaprism.com collected 2026-10-02 00:33:14 UTC 3,518 bytes, 131 lines download raw bytes

1(function ($) {
2    'use strict';
3
4    if ($.fn.owlCarousel) {
5        // :: 1.0 Welcome Post Slider Active Code
6        $(".welcome-post-sliders").owlCarousel({
7            items: 4,
8            loop: true,
9            autoplay: true,
10            smartSpeed: 1500,
11            margin: 10,
12            nav: true,
13            navText: ['', ''],
14            responsive: {
15                320: {
16                    items: 1
17                },
18                576: {
19                    items: 2
20                },
21                992: {
22                    items: 3
23                },
24                1200: {
25                    items: 4
26                }
27            }
28        })
29    }
30
31    // Masonary Gallery Active Code
32    if ($.fn.imagesLoaded) {
33        $('.fplus-portfolio').imagesLoaded(function () {
34            // filter items on button click
35            $('.portfolio-menu').on('click', 'button', function () {
36                var filterValue = $(this).attr('data-filter');
37                $grid.isotope({
38                    filter: filterValue
39                });
40            });
41            // init Isotope
42            var $grid = $('.fplus-portfolio').isotope({
43                itemSelector: '.single_gallery_item',
44                percentPosition: true,
45                masonry: {
46                    columnWidth: '.single_gallery_item'
47                }
48            });
49        });
50    }
51
52    $('#nav-icon').on('click', function () {
53        $(this).toggleClass('open');
54        $('.fplus-menu-area').toggleClass('menu-open');
55    });
56
57    // :: 5.0 ScrollDown Active Code
58    $("#scrollDown").on('click', function () {
59        $('html, body').animate({
60            scrollTop: $("#projects").offset().top - 70
61        }, 1500);
62    });
63
64    // Gallery Menu Style Active Code
65    $('.portfolio-menu button.btn').on('click', function () {
66        $('.portfolio-menu button.btn').removeClass('active');
67        $(this).addClass('active');
68    })
69
70    // :: 4.0 ScrollUp Active JS
71    if ($.fn.scrollUp) {
72        $.scrollUp({
73            scrollSpeed: 1500,
74            scrollText: '<i class="fa fa-arrow-up" aria-hidden="true"></i>'
75        });
76    }
77
78    // :: 5.0 CounterUp Active JS
79    if ($.fn.counterUp) {
80        $('.counter').counterUp({
81            delay: 10,
82            time: 2000
83        });
84    }
85
86    // :: 6.0 onePageNav Active Code
87    if ($.fn.onePageNav) {
88        $('#fplusNav').onePageNav({
89            currentClass: 'active',
90            scrollSpeed: 2000,
91            easing: 'easeOutQuad'
92        });
93    }
94
95    // :: 7.0 Video Active Code
96    if ($.fn.magnificPopup) {
97        $('.video--play--btn').magnificPopup({
98            disableOn: 0,
99            type: 'iframe',
100            mainClass: 'mfp-fade',
101            removalDelay: 160,
102            preloader: true,
103            fixedContentPos: false
104        });
105    }
106
107    // :: 6.0 PreventDefault a Click
108    $("a[href='#']").on('click', function ($) {
109        $.preventDefault();
110    });
111
112    // :: 9.0 wow Active Code
113    if ($.fn.init) {
114        new WOW().init();
115    }
116
117    // :: 10.0 matchHeight Active JS
118    if ($.fn.matchHeight) {
119        $('.item').matchHeight();
120    }
121
122    var $window = $(window);
123
124    // :: 11.0 Preloader active code
125    $window.on('load', function () {
126        $('#preloader').fadeOut('slow', function () {
127            $(this).remove();
128        });
129    });
130
131})(jQuery);

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.