PageSourceSearch

https://europeanmotorcarworks.com/application/views/themes/theme-1/assets/js/script.js

js europeanmotorcarworks.com collected 2026-10-04 08:21:52 UTC 3,398 bytes, 134 lines download raw bytes

1$(function(){
2	'use strict';
3	//Slider
4	var $owl = $('.owl');
5	$owl.each( function() {
6		var $a = $(this);
7		$a.owlCarousel({
8			transitionStyle: $a.attr('data-transitionstyle'),
9			autoPlay:JSON.parse($a.attr('data-autoplay')),
10			singleItem: JSON.parse($a.attr('data-singleItem')),
11			items : $a.attr('data-items'),
12			itemsDesktop : [1199,$a.attr('data-itemsDesktop')],
13			itemsDesktopSmall : [992,$a.attr('data-itemsDesktopSmall')],
14			itemsTablet:  [797,$a.attr('data-itemsTablet')],
15			itemsMobile :  [479,$a.attr('data-itemsMobile')],
16			navigation : JSON.parse($a.attr('data-buttons')),
17			pagination: JSON.parse($a.attr('data-pag')),
18			navigationText: ["",""]
19		});
20	});
21	//Menu
22	$('.menu-btn').on('click',function(e){
23		//e.stopPropagation();		
24		if($(this).hasClass('active'))
25		{
26			$('.menu-rs').animate({right: '-250px'},500);
27		}
28		else
29		{
30			$('.menu-rs').animate({right: '0px'},500);
31		}
32	});
33	$( "#datepicker" ).datepicker();
34	$('.r-mv').on('click',function(){
35		$('.menu-rs').animate({right: '-250px'},500);
36	});
37	$(window).load(function()
38	{
39		$('.preloader i').fadeOut();
40		$('.preloader').delay(500).fadeOut('slow');
41		$('body').delay(600).css({'overflow':'visible'});
42	});
43	window.onresize = function()
44	{
45		ft();
46	}
47	function bg_image(){
48		$('.bg-offset').each(function(){
49			var $img_source=$(this).attr('data-image-src');
50			if($img_source){
51				$(this).css('background-image','url("' + $img_source + '")');
52			}
53		});
54	}
55	bg_image();
56	//cart dropdown 
57	$('.cart .dropdown-menu').on('click',function(e) {
58		e.stopPropagation();  
59	});
60	
61	$('.search-box').removeClass('active');
62	$('.icon-search').on('click',function(e) 
63	{
64		e.preventDefault();
65		var $searchb = $('.search-box');
66		if(!$searchb.hasClass('active'))
67		{
68			$searchb.addClass('active');
69			$('.search-box input').val('');
70			$searchb.fadeIn();
71			$('.search-box input').focus();
72			$(this).addClass('fa-remove');
73			$(this).removeClass('fa-search');
74		}
75		else
76		{
77			$searchb.fadeOut();
78			$searchb.removeClass('active');
79			$(this).removeClass('fa-remove');
80			$(this).addClass('fa-search');
81			
82		}
83	});
84	$('.search-box input').keypress(function(event){
85	  if(event.keyCode == 13){
86		$('.icon-search').click();
87	  }
88	});
89	//Header resize
90	function ft(){
91		$('.header-absolute,.header-fixed').next().css('marginTop',($('header').height())+'px');
92	}
93	ft();
94	$('[data-toggle=popover]').popover({
95    content: $('.list-icon').html(),
96    html: true
97}).click(function() {
98    $(this).popover();
99});
100	$('header').removeClass('smaller');
101	$('.main-header').removeClass('animated').removeClass('slideInUp').removeClass('slideInDown');
102	window.addEventListener('scroll', function(e){
103		var $header=$('.header-absolute .main-header');
104		var $tr=0;
105		if($('header').height())
106		{
107			if($('.top-header').height())
108			{
109				$tr=$('header').height();
110			}
111			else
112			{
113				$tr=0;
114			}
115		}
116		else
117		{
118			$tr=0;
119		}
120		var distanceY = window.pageYOffset || document.documentElement.scrollTop,
121			shrinkOn = $tr;
122			var header = document.querySelector("header");
123		/*if (distanceY > shrinkOn) {
124			classie.add(header,"smaller");
125			$header.removeClass('animated').removeClass('bounceInUp');
126			$header.addClass('animated').addClass('slideInDown');
127		} else {
128			if (classie.has(header,"smaller")) {
129				$header.removeClass('animated').removeClass('slideInDown');
130				classie.remove(header,"smaller");
131			}
132		}*/
133	});
134});

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.