PageSourceSearch

https://www.generalinstruments.net/wp-content/themes/general-instruments/js/custom.js

js generalinstruments.net collected 2026-10-08 13:36:13 UTC 2,934 bytes, 103 lines download raw bytes

1$('li.menu-item-has-children').append('<svg aria-hidden="true" focusable="false" class="icon icon-caret" viewBox="0 0 10 6"> <path fill-rule="evenodd" clip-rule="evenodd" d="M9.354.646a.5.5 0 00-.708 0L5 4.293 1.354.646a.5.5 0 00-.708.708l4 4a.5.5 0 00.708 0l4-4a.5.5 0 000-.708z" fill="currentColor"> </path></svg>');
2// $('li.menu-item-has-children a').click(function(){ $('li.menu-item-has-children svg.icon.icon-caret').click(); })
3$('li.menu-item-has-children svg.icon.icon-caret').click(function(){
4    $(this).prev().toggleClass('active');
5	$(this).parent().addClass('menu-active');
6	$(this).parent().siblings().removeClass('menu-active');
7	$('li.menu-item-has-children').removeClass('menu-active');
8	$(this).parent().siblings().find('.sub-menu').removeClass('active');
9	$(this).parent('.menu-item-has-children').toggleClass('menu-active');
10})
11
12$('.slider-wr').slick({
13    arrows: false,
14    dots: true,
15	autoplay: true,
16	autoplaySpeed: 2000
17});
18
19$('.product-box-slider').slick({
20    infinite: true,
21	slidesToShow: 3,
22	slidesToScroll: 1,
23	responsive: [
24    {
25      breakpoint: 980,
26      settings: {
27        slidesToShow: 2,
28        slidesToScroll: 1
29      }
30    },
31    {
32      breakpoint: 480,
33      settings: {
34        slidesToShow: 1,
35        slidesToScroll: 1
36      }
37    }
38    // You can unslick at a given breakpoint now by adding:
39    // settings: "unslick"
40    // instead of a settings object
41  ]
42});
43
44$('.image-with-text-slide .content-wrapp').slick({
45	autoplay: true,
46  	autoplaySpeed: 2000,
47});
48
49jQuery(document).ready(function($) {
50  // $('.certification-logos').slick({
51  //   speed: 8000,
52  //   autoplay: true,
53  //   autoplaySpeed: 0,
54  //   centerMode: false,
55  //   cssEase: 'linear',
56  //   slidesToShow: 1,
57  //   draggable:false,
58  //   focusOnSelect:false,
59  //   pauseOnFocus:false,
60  //   pauseOnHover:false,
61  //   slidesToScroll: 1,
62  //   variableWidth: true,
63  //   infinite: true,
64  //   initialSlide: 1,
65  //   arrows: false,
66  //   buttons: false
67  // });
68  $('.certification-logos').slick({
69    autoplay: true,
70    autoplaySpeed: 500,     // Faster autoplay (0.5s between slides)
71    speed: 200,             // Fast transition (0.2s)
72    cssEase: 'ease-in-out', // Smoother easing (better than 'linear')
73    centerMode: false,
74    slidesToShow: 1,
75    draggable: false,
76    focusOnSelect: false,
77    pauseOnFocus: false,
78    pauseOnHover: false,
79    slidesToScroll: 1,
80    variableWidth: true,
81    infinite: true,
82    initialSlide: 0,        // Usually better to start at 0
83    arrows: false,
84    buttons: false
85  });
86
87	$('.mobile-menu svg').click(function(){
88		$(this).hide();
89		$(this).siblings().fadeIn();
90		$('div#cssmenu').toggleClass('drawer-open')
91	})
92	
93// 	$(window).scroll(function() {
94// 	  var sticky = $('.header'),
95// 		scroll = $(window).scrollTop();
96
97// 	  if (scroll >= 150) { 
98// 		sticky.addClass('fixed'); }
99// 	  else { 
100// 		  sticky.removeClass('fixed');
101// 		}
102// 	});
103});

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.