PageSourceSearch

https://theserverhost.com/js/main.js

js theserverhost.com collected 2026-09-28 06:52:04 UTC 2,968 bytes, 113 lines download raw bytes

1$(function() {
2  "use strict";
3
4  var nav_offset_top = $('header').height() + 50; 
5    /*-------------------------------------------------------------------------------
6	  Navbar 
7	-------------------------------------------------------------------------------*/
8
9	//* Navbar Fixed  
10    function navbarFixed(){
11        if ( $('.header_area').length ){ 
12            $(window).scroll(function() {
13                var scroll = $(window).scrollTop();   
14                if (scroll >= nav_offset_top ) {
15                    $(".header_area").addClass("navbar_fixed");
16                } else {
17                    $(".header_area").removeClass("navbar_fixed");
18                }
19            });
20        };
21    };
22    navbarFixed();
23
24
25
26
27
28  //------- mailchimp --------//  
29	function mailChimp() {
30		$('#mc_embed_signup').find('form').ajaxChimp();
31	}
32  mailChimp();
33
34
35  /*-------------------------------------------------------------------------------
36	  testimonial slider
37	-------------------------------------------------------------------------------*/
38    if ($('.testimonial').length) {
39        $('.testimonial').owlCarousel({
40            loop: true,
41            margin: 30,
42            // items: 5,
43            nav: false,
44            dots: true,
45            responsiveClass: true,
46            slideSpeed: 300,
47            paginationSpeed: 500,
48            responsive: {
49                0: {
50                    items: 1
51                },
52                800: {
53                    items: 2
54                },
55                1200: {
56                    items: 3
57                }
58            }
59        })
60    }
61
62
63
64    /*-------------------------------------------------------------------------------
65	  featured slider
66	-------------------------------------------------------------------------------*/
67    if ($('.logo-carousel').length) {
68        $('.logo-carousel').owlCarousel({
69            loop: false,
70            margin: 30,
71            items: 2,
72            nav: false,
73            dots: false,
74            responsiveClass: true,
75            slideSpeed: 300,
76            responsive: {
77                590: {
78                    items: 3
79                },
80                1000: {
81                    items: 4
82                },
83                1200: {
84                    items: 5
85                }
86            }
87        })
88    }
89
90
91
92    /*-------------------------------------------------------------------------------
93	  featured slider
94	-------------------------------------------------------------------------------*/
95    if ($('.hero-carousel').length) {
96        $('.hero-carousel').owlCarousel({
97            loop: false,
98            margin: 30,
99            items: 1,
100            nav: false,
101            dots: true,
102            responsiveClass: true,
103            slideSpeed: 300,
104            paginationSpeed: 500
105        })
106    }
107
108
109
110  
111});
112
113

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.