PageSourceSearch

https://omni.com.sg/wp-content/themes/subsidiary/js/scripts.js?2

js omni.com.sg collected 2026-10-09 03:07:35 UTC 5,291 bytes, 208 lines download raw bytes

1jQuery(document).ready(function () {
2	jQuery('.slider-banner').slick({
3	  autoplay: true,
4	  speed: 600,
5	  cssEase: 'ease-in-out',
6	  autoplaySpeed: 10000,
7	  dots: false,
8	  arrows: false,
9	  asNavFor: '.slider-text'
10	});
11	
12	jQuery('.slider-text').slick({
13	  autoplay: true,
14	  speed: 600,
15	  fade: true,
16	  autoplaySpeed: 10000,
17	  dots: true,
18	  arrows: false,
19	  asNavFor: '.slider-banner'
20	});
21
22
23	jQuery( ".industry" ).hover(
24	  function() {
25	    jQuery( this ).find('.read-more').fadeIn( 300 );
26	  }, function() {
27	    jQuery( this ).find('.read-more').fadeOut( 300 );
28	  }
29	);
30	
31	jQuery( ".capabilities" ).hover(
32	  function() {
33	    jQuery( this ).find('.capabilities-more').fadeIn( 300 );
34	  }, function() {
35	    jQuery( this ).find('.capabilities-more').fadeOut( 300 );
36	  }
37	);
38	
39	jQuery( ".business" ).hover(
40	  function() {
41	    jQuery( this ).find('.capabilities-more').fadeIn( 300 );
42	  }, function() {
43	    jQuery( this ).find('.capabilities-more').fadeOut( 300 );
44	  }
45	);
46	
47	jQuery( ".overlay-hover" ).hover(
48	  function() {
49	    jQuery( this ).find('.overlay-more').fadeIn( 300 );
50	  }, function() {
51	    jQuery( this ).find('.overlay-more').fadeOut( 300 );
52	  }
53	);
54	
55	jQuery( ".directors" ).hover(
56	  function() {
57	    jQuery( this ).find('.title').css( 'font-size', '24px' );
58	    jQuery( this ).find('.scroll-pane').jScrollPane();
59	  }, function() {
60	    jQuery( this ).find('.title').css( 'font-size', '34px' );
61	  }
62	);
63	
64	var wiDth = jQuery('.cal-left-top').css('width'); // get width
65	jQuery('.cal-left-top').css('height', wiDth); // apply that value to the height
66	jQuery('.cal-right-top').css('height', wiDth); // apply that value to the height
67	
68	//jQuery('body').tooltip({ selector: '[title]', container: 'body' });
69	
70}); 
71
72//datepicker
73
74jQuery(window).load(function(){
75var capwidth = jQuery('.capability-slide img').css('height');
76jQuery('.capability-slider .slick-dots').css('top', capwidth);
77jQuery(function() {
78	if(jQuery(window).width()>768){
79	    jQuery('.equal').matchHeight();
80	    jQuery('.equal-en').matchHeight();
81	    jQuery(window).trigger('resize');
82	    
83    }
84    
85    $(function()
86    	{
87    		$('.scrollable').each(
88    			function()
89    			{
90    				$(this).jScrollPane(
91    				);
92    				var api = $(this).data('jsp');
93    				var throttleTimeout;
94    				$(window).bind(
95    					'resize',
96    					function()
97    					{
98    						if (!throttleTimeout) {
99    							throttleTimeout = setTimeout(
100    								function()
101    								{
102    									api.reinitialise();
103    									throttleTimeout = null;
104    								},
105    								50
106    							);
107    						}
108    					}
109    				);
110    			}
111    		)
112    	
113    	});
114});
115jQuery(window).on('resize', function(){
116var capwidth = jQuery('.capability-slide img').css('height');
117jQuery('.capability-slider .slick-dots').css('top', capwidth);
118});
119
120      });
121      
122      jQuery('.marker').click(
123        function () {
124        jQuery('.address').hide();
125        jQuery('.marker').removeClass('active');
126        jQuery(this).addClass('active');
127        var divId = jQuery(this).data('id');
128        jQuery('#' + divId).show();
129        }
130//        function () {
131//          jQuery(this).hide();
132//        }
133      );
134      
135//jQuery(window).resize(function() {
136//   if (jQuery(this).width() > 1200) {
137//      jQuery('.scrollable').jScrollPane();
138//   }
139//});
140//jQuery(document).ready(function() {
141//   jQuery(window).resize();
142//});
143
144// Select all links with hashes
145$('a[href*="#"]')
146  // Remove links that don't actually link to anything
147  .not('[href="#"]')
148  .not('[href="#0"]')
149  .click(function(event) {
150    // On-page links
151    if (
152      location.pathname.replace(/^\//, '') == this.pathname.replace(/^\//, '') 
153      && 
154      location.hostname == this.hostname
155    ) {
156      // Figure out element to scroll to
157      var target = $(this.hash);
158      target = target.length ? target : $('[name=' + this.hash.slice(1) + ']');
159      // Does a scroll target exist?
160      if (target.length) {
161        // Only prevent default if animation is actually gonna happen
162        event.preventDefault();
163        $('html, body').animate({
164          scrollTop: target.offset().top -40
165        }, 1000, function() {
166          // Callback after animation
167          // Must change focus!
168          var $target = $(target);
169          $target.focus();
170          if ($target.is(":focus")) { // Checking if the target was focused
171            return false;
172          } else {
173            $target.attr('tabindex','-1'); // Adding tabindex for elements not focusable
174            $target.focus(); // Set focus again
175          };
176        });
177      }
178    }
179  });
180  jQuery(document).ready(function($) {
181  	var width = window.innerWidth || document.body.clientWidth;
182  	var $slick = $('.multiple-items');
183    	
184    	// destroy slick if you are using smart resize
185    	// smartresize url: https://gist.github.com/Pushplaybang/3341936
186    	// $slick.slick('unslick');
187    	
188    	if (width < 768) {
189  		$slick.slick({
190  			infinite: true,
191  			slidesToShow: 1,
192  			slidesToScroll: 1,
193  			rows: 1,
194  			dots: true,
195  			arrows: false
196  		});
197  	} else {
198  		$slick.slick({
199  			infinite: true,
200  			//slidesToShow: 4,
201	            //slidesToScroll: 4,
202				slidesPerRow: 3,
203  			rows: 2,
204  			dots: true,
205  			
206  		});
207  	}
208  });

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.