PageSourceSearch

https://teammateworld.com/static/js/products.js?v2.0.0

js teammateworld.com collected 2026-10-07 23:22:43 UTC 2,590 bytes, 132 lines download raw bytes

1
2
3$(window).scroll(function (event) {
4
5    // has a sticky menu
6    if ($('.sticky-menu').length)
7    {
8      var scroll = $(window).scrollTop();
9
10      var sticky = $('.sticky-menu').offset().top;
11      var productSolution = $('.product-solution').offset().top;
12
13      var stickyHeight = $('.sticky-menu').outerHeight();
14      var headerHeight = $('header.header').outerHeight();
15
16
17      //
18      if(sticky >= productSolution)
19      {
20        $('.sticky-menu').addClass('follow');
21      }
22      else if(scroll <= productSolution-$(window).outerHeight())
23      {
24        $('.sticky-menu').removeClass('follow');
25      }
26
27
28      if (sticky <= productSolution-stickyHeight && $('.sticky-menu').hasClass('stuck')) {
29        $('.sticky-menu').removeClass('stuck');
30      }
31      else if (scroll >= sticky-headerHeight)
32      {
33        $('.sticky-menu').addClass('stuck');
34      }
35
36
37
38      // allow for header and sticky
39      var offset = 180;
40
41      if ($('.header').hasClass('active'))
42      {
43        offset = 121;
44      }
45
46
47      $('.sticky-menu .level-item a').each(function(){
48
49        var id = $(this).attr('href');
50
51        if ($(id)[0] === undefined )
52        {
53          return;
54        }
55
56
57        if ($('.sticky-menu').hasClass('follow') && id !== '#interactive')
58        {
59          offset += $('.sticky-menu').outerHeight();
60        }
61
62
63        var start = $(id).offset().top - offset;
64        var end   = start + $(id).outerHeight();
65
66
67        if (scroll >= start && scroll < end)
68        {
69          $(this).addClass('is-active');
70        }
71        else
72        {
73          $(this).removeClass('is-active');
74        }
75
76
77      });
78
79
80    }
81
82});
83
84
85$(".technical-drawings-carousel").owlCarousel({
86  items: 1,
87   loop: true,
88   dots: true,
89   nav: false,
90      mouseDrag: true,
91      autoplay: false,
92      autoplayTimeout: 6000
93});
94
95$(".product-gallery-carousel").owlCarousel({
96  items: 1,
97   loop: true,
98   dots: true,
99   nav: true,
100      mouseDrag: true,
101      autoplay: true,
102      autoplayTimeout: 6000
103});
104
105
106
107$('.link.scroll').click(function(e) {
108
109e.preventDefault();
110
111// allow for header and sticky
112var offset = 121;
113
114
115//
116if ($('.sticky-menu').hasClass('follow'))
117{
118  offset += $('.sticky-menu').outerHeight();
119}
120
121
122if (location.pathname.replace(/^\//,'') == this.pathname.replace(/^\//,'') && location.hostname == this.hostname) {
123  var target = $(this.hash);
124  target = target.length ? target : $('[name=' + this.hash.slice(1) +']');
125  if (target.length) {
126    $('html, body').animate({
127      scrollTop: target.offset().top - offset
128    }, 1000);
129    return false;
130  }
131}
132});

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.