PageSourceSearch

https://upperlinemedia.com/js/main.js

js upperlinemedia.com collected 2026-10-06 22:35:39 UTC 4,266 bytes, 157 lines download raw bytes

1// Hello.
2//
3// This is The Scripts used for ___________ Theme
4//
5//
6
7function main() {
8
9(function () {
10   'use strict';
11
12    
13 	// Smooth Scrolling
14    //==========================================
15    $(function() {
16      $('a.scroll').click(function() {
17        if (location.pathname.replace(/^\//,'') == this.pathname.replace(/^\//,'') && location.hostname == this.hostname) {
18          var target = $(this.hash);
19          target = target.length ? target : $('[name=' + this.hash.slice(1) +']');
20          if (target.length) {
21            $('html,body').animate({
22              scrollTop: target.offset().top -50
23            }, 1000);
24            return false;
25          }
26        }
27      });
28    });
29
30    /*====================================
31    Script for the Counters for Facts Section
32    ======================================*/
33    $('.count').each(function() {
34        var $this = $(this);
35        $this.data('target', parseInt($this.html()));
36        $this.data('counted', false);
37        $this.html('0');
38    });
39    $(window).bind('scroll', function() {
40        var speed = 3000;
41        $('.count').each(function() {
42            var $this = $(this);
43            if (!$this.data('counted') && $(window).scrollTop() +
44                $(window).height() >= $this.offset().top) {
45                $this.data('counted', true);
46                $this.animate({
47                    dummy: 1
48                }, {
49                    duration: speed,
50                    step: function(now) {
51                        var $this = $(this);
52                        var val = Math.round(
53                            $this.data(
54                                'target') *
55                            now);
56                        $this.html(val);
57                        if (0 < $this.parent(
58                            '.value').length) {
59                            $this.parent(
60                                '.value').css(
61                                'width',
62                                val + '%');
63                        }
64                    }
65                });
66            }
67        });
68    }).triggerHandler('scroll');
69
70    /*====================================
71    Portfolio Carousel 
72    ======================================*/
73  	$(document).ready(function() {
74  	  var owl = $("#team");
75  	  owl.owlCarousel({
76  	     
77  	      itemsCustom : [
78  	        [0, 1],
79  	        [450, 1],
80  	        [660, 2],
81  	        [700, 2],
82  	        [1200, 3],
83  	        [1600, 3]
84  	      ],
85  	      navigation : false,
86  	      pagination: true,
87  	  });
88  	 
89  	});
90
91    /*====================================
92    Portfolio Isotope Filter
93    ======================================*/
94    $(window).load(function() {
95        var $container = $('#itemsWork , #itemsWorkTwo, #itemsWorkThree');
96        $container.isotope({
97            filter: '* , all',
98            animationOptions: {
99                duration: 750,
100                easing: 'linear',
101                queue: false
102            }
103        });
104        $('.cat a').click(function() {
105            $('.cat .active').removeClass('active');
106            $(this).addClass('active');
107            var selector = $(this).attr('data-filter');
108            $container.isotope({
109                filter: selector,
110                animationOptions: {
111                    duration: 750,
112                    easing: 'linear',
113                    queue: false
114                }
115            });
116            return false;
117        });
118
119    });
120
121    /*====================================
122    Nivo Lightbox 
123    ======================================*/
124    // Agency Portfolio Popup
125    $('#itemsWork a , #itemsWorkTwo a , #itemsWorkThree a , #popup a').nivoLightbox({
126            effect: 'slideDown',  
127            keyboardNav: true,                            
128        });
129
130    $(document).ready(function() {
131 
132  $("#owl-demo").owlCarousel({
133 
134      navigation : false, // Show next and prev buttons
135      slideSpeed : 300,
136      paginationSpeed : 400,
137      singleItem:true
138 
139      // "singleItem:true" is a shortcut for:
140      // items : 1, 
141      // itemsDesktop : false,
142      // itemsDesktopSmall : false,
143      // itemsTablet: false,
144      // itemsMobile : false
145 
146  });
147 
148});
149
150 
151
152
153}());
154
155
156}
157main();

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.