PageSourceSearch

https://cook-19.co.uk/wp-content/themes/business-way/assets/js/custom.js?ver=4.5.2

js cook-19.co.uk collected 2026-10-06 20:04:26 UTC 8,279 bytes, 689 lines download raw bytes

1jQuery(document).ready(function($){     
2    //LightCase
3		
4		$('a[data-rel^=lightcase]').lightcase();
5
6
7	/*----------------------------- Scroll To Top -----------------------*/
8
9	jQuery(window).on('scroll',function () {
10
11		if (jQuery(this).scrollTop() > 600) {
12
13			jQuery('#scrollup').fadeIn();
14
15		} else {
16
17			jQuery('#scrollup').fadeOut();
18
19		}
20
21	});
22
23
24	jQuery('#scrollup').on('click',function(){
25
26		jQuery('html, body').animate({
27
28		scrollTop: 0
29
30	}, 1500);
31
32	return false;
33
34	});
35
36    /*owl carousel slider------------------------*/
37
38	jQuery("#owl-demo").owlCarousel({
39
40		items:1,
41
42		autoplay: true,
43
44		loop: true,
45
46		dots:false,
47
48		mouseDrag:false,
49
50		nav: true,
51
52		navText : ["<i class='fa fa-angle-left'></i>","<i class='fa fa-angle-right'></i>"],
53
54        transitionStyle:"fade",
55
56		animateIn: 'fadeIn',
57
58		animateOut: 'fadeOutLeft'
59
60    });
61
62
63
64    /*owl carousel slider------------------------*/
65
66	jQuery("#test-slide").owlCarousel({
67
68		items: 1,
69
70		autoplay: true,
71
72		loop: true,
73
74		dots:false,
75
76		mouseDrag:false,
77
78		nav: true,
79
80		navText : ["<i class='fa fa-angle-left'></i>","<i class='fa fa-angle-right'></i>"],
81
82        transitionStyle:"fade",
83
84		animateIn: 'fadeIn',
85
86		animateOut: 'fadeOutLeft'
87
88    });
89
90	
91
92    /*owl carousel slider------------------------*/
93
94	jQuery("#home-two-test").owlCarousel({
95
96		items: 1,
97
98		autoplay: true,
99
100		loop: true,
101
102		dots:false,
103
104		mouseDrag:false,
105
106		nav: false,
107
108		transitionStyle:"fade",
109
110		animateIn: 'fadeInRight',
111
112		animateOut: 'fadeOutLeft'
113
114    });	
115
116	/*-------------- Gmaps ------------------*/	
117
118	var map;
119
120	jQuery('.ev-map-display').each(function() {
121
122		var element = jQuery(this).attr('id');		
123
124		var lan=jQuery('#lan').val();
125
126        var lng=jQuery('#lng').val();
127
128		map = new GMaps({
129
130		el: '#' + element,
131
132		center: new google.maps.LatLng(lng,lan),
133
134		zoom:5,
135
136		scrollwheel: false,
137
138		styles: [
139
140				{
141
142					"featureType": "water",
143
144					"elementType": "geometry",
145
146					"stylers": [
147
148						{
149
150							"color": "#222"
151
152						}
153
154					]
155
156				},
157
158				{
159
160					"featureType": "landscape",
161
162					"elementType": "geometry",
163
164					"stylers": [
165
166						{
167
168							"color": "#555"
169
170						}
171
172					]
173
174				},
175
176				{
177
178					"featureType": "road.highway",
179
180					"elementType": "geometry.fill",
181
182					"stylers": [
183
184						{
185
186							"color": "#333333"
187
188						},
189
190						{
191
192							"lightness": 17
193
194						}
195
196					]
197
198				},
199
200				{
201
202					"featureType": "road.highway",
203
204					"elementType": "geometry.stroke",
205
206					"stylers": [
207
208						{
209
210							"color": "#fefefe"
211
212						},
213
214						{
215
216							"lightness": 30
217
218						},
219
220						{
221
222							"weight": 0.3
223
224						}
225
226					]
227
228				},
229
230				{
231
232					"featureType": "road.arterial",
233
234					"elementType": "geometry",
235
236					"stylers": [
237
238						{
239
240							"color": "#333333"
241
242						},
243
244						{
245
246							"lightness":20
247
248						}
249
250					]
251
252				},
253
254				{
255
256					"featureType": "road.local",
257
258					"elementType": "geometry",
259
260					"stylers": [
261
262						{
263
264							"color": "#333333"
265
266						},
267
268						{
269
270							"lightness": 17
271
272						}
273
274					]
275
276				},
277
278				{
279
280					"featureType": "poi",
281
282					"elementType": "geometry",
283
284					"stylers": [
285
286						{
287
288							"color": "#ccc"
289
290						},
291
292						{
293
294							"lightness": 22
295
296						}
297
298					]
299
300				},
301
302				{
303
304					"featureType": "poi.park",
305
306					"elementType": "geometry",
307
308					"stylers": [
309
310						{
311
312							"color": "#dedede"
313
314						},
315
316						{
317
318							"lightness": 22
319
320						}
321
322					]
323
324				},
325
326				{
327
328					"elementType": "labels.text.stroke",
329
330					"stylers": [
331
332						{
333
334							"visibility": "on"
335
336						},
337
338						{
339
340							"color": "#333"
341
342						},
343
344						{
345
346							"lightness": 7
347
348						}
349
350					]
351
352				},
353
354				{
355
356					"elementType": "labels.text.fill",
357
358					"stylers": [
359
360						{
361
362							"saturation": 37
363
364						},
365
366						{
367
368							"color": "#333333"
369
370						},
371
372						{
373
374							"lightness": 41
375
376						}
377
378					]
379
380				},
381
382				{
383
384					"elementType": "labels.icon",
385
386					"stylers": [
387
388						{
389
390							"visibility": "off"
391
392						}
393
394					]
395
396				},
397
398				{
399
400					"featureType": "transit",
401
402					"elementType": "geometry",
403
404					"stylers": [
405
406						{
407
408							"color": "#f2f2f2"
409
410						},
411
412						{
413
414							"lightness": 20
415
416						}
417
418					]
419
420				},
421
422				{
423
424					"featureType": "administrative",
425
426					"elementType": "geometry.fill",
427
428					"stylers": [
429
430						{
431
432							"color": "#000"
433
434						},
435
436						{
437
438							"lightness": 1
439
440						}
441
442					]
443
444				},
445
446				{
447
448					"featureType": "administrative",
449
450					"elementType": "geometry.stroke",
451
452					"stylers": [
453
454						{
455
456							"color": "#000"
457
458						},
459
460						{
461
462							"lightness": 1
463
464						},
465
466						{
467
468							"weight": 1.3
469
470						}
471
472					]
473
474				}
475
476			]
477
478		});
479
480		map.addMarker({
481
482		lat: lng,
483
484		lng: lan,
485
486			title: '',
487
488			icon:'',
489
490		   
491
492		});
493
494	});
495	
496	 jQuery(window).load(function(){
497
498	    //Portfolio container     
499
500	    var $container = jQuery('.portfolioContainer');
501
502	    $container.isotope({
503
504	      filter: '*',
505
506	      animationOptions: {
507
508	        duration: 750,
509
510	        easing: 'linear',
511
512	        queue: false
513
514	      }
515
516	    });
517
518	 
519
520	    jQuery('.portfolioFilter a').on('click', function(){
521
522	      jQuery('.portfolioFilter a').removeClass('current');
523
524	      jQuery(this).addClass('current');
525
526	   
527
528	      var selector = jQuery(this).attr('data-filter');
529
530	         $container.isotope({
531
532	        filter: selector,
533
534	        animationOptions: {
535
536	          duration: 750,
537
538	          easing: 'linear',
539
540	          queue: false
541
542	        }
543
544	       });
545
546	       return false;
547
548	    });
549
550  	});
551
552	/*----------- fixed-nav ------------*/
553
554	jQuery('#nav').onePageNav();
555
556	
557
558	
559
560	/*----------- wow ------------*/
561
562	new WOW().init();
563
564	
565
566	
567
568	/*-------------- Pre-loader ------------------*/
569
570	jQuery(window).on('load',function() {
571
572		jQuery("#preloader").delay(1000).fadeOut(500);
573
574		jQuery(".inTurnBlurringTextG").on('click',function() {
575
576			jQuery("#loader").fadeOut(500);
577
578		});
579
580	});
581
582	 jQuery(window).load(function(){
583
584    //Portfolio container     
585    var $container = jQuery('.portfolioContainer');
586    $container.isotope({
587      filter: '*',
588      animationOptions: {
589        duration: 750,
590        easing: 'linear',
591        queue: false
592      }
593    });
594 
595    jQuery('.portfolioFilter a').on('click', function(){
596      jQuery('.portfolioFilter a').removeClass('current');
597      jQuery(this).addClass('current');
598   
599      var selector = jQuery(this).attr('data-filter');
600         $container.isotope({
601        filter: selector,
602        animationOptions: {
603          duration: 750,
604          easing: 'linear',
605          queue: false
606        }
607       });
608       return false;
609    });
610
611  });
612  
613
614});
615
616
617
618(function($) {
619	
620	"use strict";
621	
622	$(window).scroll(function () {
623        if ($(window).scrollTop() >= 1) {
624            $(".navbar").addClass("affix");
625        }else {
626            $(".navbar").removeClass("affix");
627        }
628    });
629
630    //LightCase
631		
632	$('a[data-rel^=lightcase]').lightcase();
633
634    //Submenu Dropdown Toggle
635    if($('.main-menu  li.menu-item-has-children ul').length){
636        $('.main-menu  li.menu-item-has-children').append('<div class="dropdown-btn"><Span class="fa fa-angle-down"></span></div>');
637
638        //Dropdown Button
639        $('.main-menu li.menu-item-has-children .dropdown-btn').on('click', function() {
640            $(this).prev('ul').slideToggle(500);
641        });
642
643
644        //Disable dropdown parent link
645        $('.navbar-nav li.menu-item-has-children > a').on('click', function(e) {
646            e.preventDefault();
647        });
648    }
649
650})(window.jQuery);
651
652
653(function($){
654    'use strict';
655    jQuery(window).load(function() {	
656	
657	
658	// init Isotope
659	var $grid = $('.portfolioContainer').isotope({
660		itemSelector: '.item',
661		layoutMode: 'fitRows'
662		
663	});
664
665
666
667	// filter functions
668	var filterFns = {
669	  // show if number is greater than 50
670	  numberGreaterThan50: function() {
671		var number = $(this).find('.number').text();
672		return parseInt( number, 10 ) > 50;
673	  },
674	  // show if name ends with -ium
675	  ium: function() {
676		var name = $(this).find('.name').text();
677		return name.match( /ium$/ );
678	  }
679	};
680
681	$('.portfolioFilter').on( 'click', 'a', function() {
682  var filterValue = $(this).attr('data-filter');
683  // use filter function if value matches
684  filterValue = filterFns[ filterValue ] || filterValue;
685  $grid.isotope({ filter: filterValue });
686});
687	  
688    });
689}(jQuery));

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.