PageSourceSearch

https://badminton.org.rs/js/custom.js

js badminton.org.rs collected 2026-10-02 22:43:47 UTC 5,925 bytes, 301 lines download raw bytes

1/*
2	Template Name: News247 - News Magazine Newspaper HTML5 Template
3	Author: Tripples
4	Author URI: https://themeforest.net/user/tripples
5	Description: News247 - News Magazine Newspaper HTML5 Template
6	Version: 1.0
7
8	1. Fixed header
9	2. Main slideshow
10	3. Site search
11	4. Owl Carousel
12	5. Video popup
13	6. Counter
14	7. Contact form
15	8. Back to top
16  
17*/
18
19
20jQuery(function($) {
21  "use strict";
22
23
24	/* ----------------------------------------------------------- */
25	/*  Fixed header
26	/* ----------------------------------------------------------- 
27
28
29	/* ----------------------------------------------------------- */
30	/*  Mobile Menu
31	/* ----------------------------------------------------------- */
32
33	jQuery(".nav.navbar-nav li a").on("click", function() { 
34		jQuery(this).parent("li").find(".dropdown-menu").slideToggle();
35		jQuery(this).find("li i").toggleClass("fa-angle-down fa-angle-up");
36	});
37
38
39	$('.nav-tabs[data-toggle="tab-hover"] > li > a').hover( function(){
40    	$(this).tab('show');
41	});
42
43
44	/* ----------------------------------------------------------- */
45	/*  Main slideshow
46	/* ----------------------------------------------------------- */
47
48		$('#main-slide').carousel({
49			pause: true,
50			interval: 100000,
51		});
52
53
54	/* ----------------------------------------------------------- */
55  	/*  Site search
56  	/* ----------------------------------------------------------- */
57
58
59
60	 $('.nav-search').on('click', function () {
61		 $('.search-block').fadeIn(350);
62	});
63
64	 $('.search-close').on('click', function(){
65			  $('.search-block').fadeOut(350);
66	 });
67
68
69
70  	/* ----------------------------------------------------------- */
71  	/*  Owl Carousel
72  	/* ----------------------------------------------------------- */
73
74  	//Trending slide
75
76  	$(".trending-slide").owlCarousel({
77
78			loop:true,
79			animateIn: 'fadeIn',
80			autoplay:true,
81			autoplayTimeout:3000,
82			autoplayHoverPause:true,
83			nav:true,
84			margin:30,
85			dots:false,
86			mouseDrag:false,
87			slideSpeed:500,
88			navText: ["<i class='fa fa-angle-left'></i>", "<i class='fa fa-angle-right'></i>"],
89			items : 1,
90			responsive:{
91			  0:{
92					items:1
93			  },
94			  600:{
95					items:1
96			  }
97			}
98
99		});
100
101
102  	//Featured slide
103
104		$(".featured-slider").owlCarousel({
105
106			loop:true,
107			animateOut: 'fadeOut',
108			autoplay:false,
109			autoplayHoverPause:true,
110			nav:true,
111			margin:0,
112			dots:false,
113			mouseDrag:true,
114			touchDrag:true,
115			slideSpeed:500,
116			navText: ["<i class='fa fa-angle-left'></i>", "<i class='fa fa-angle-right'></i>"],
117			items : 1,
118			responsive:{
119			  0:{
120					items:1
121			  },
122			  600:{
123					items:1
124			  }
125			}
126
127		});
128
129		//Latest news slide
130
131		$(".latest-news-slide").owlCarousel({
132
133			loop:false,
134			animateIn: 'fadeInLeft',
135			autoplay:false,
136			autoplayHoverPause:true,
137			nav:true,
138			margin:30,
139			dots:false,
140			mouseDrag:false,
141			slideSpeed:500,
142			navText: ["<i class='fa fa-angle-left'></i>", "<i class='fa fa-angle-right'></i>"],
143			items : 2,
144			responsive:{
145			  0:{
146					items:1
147			  },
148			  600:{
149					items:2
150			  }
151			}
152
153		});
154
155		//Latest news slide
156
157
158		//Latest news slide
159
160		$(".more-news-slide").owlCarousel({
161
162			loop:false,
163			autoplay:false,
164			autoplayHoverPause:true,
165			nav:false,
166			margin:30,
167			dots:true,
168			mouseDrag:false,
169			slideSpeed:500,
170			navText: ["<i class='fa fa-angle-left'></i>", "<i class='fa fa-angle-right'></i>"],
171			items : 1,
172			responsive:{
173			  0:{
174					items:1
175			  },
176			  600:{
177					items:1
178			  }
179			}
180
181		});
182
183		$(".post-slide").owlCarousel({
184
185			loop:true,
186			animateOut: 'fadeOut',
187			autoplay:true,
188			autoplayHoverPause:true,
189			nav:true,
190			margin:30,
191			dots:false,
192			mouseDrag:false,
193			slideSpeed:500,
194			navText: ["<i class='fa fa-angle-left'></i>", "<i class='fa fa-angle-right'></i>"],
195			items : 1,
196			responsive:{
197			  0:{
198					items:1
199			  },
200			  600:{
201					items:1
202			  }
203			}
204
205		});
206
207		
208
209	/* ----------------------------------------------------------- */
210	/*  Popup
211	/* ----------------------------------------------------------- */
212	  $(document).ready(function(){
213
214			$(".gallery-popup").colorbox({rel:'gallery-popup', transition:"fade", innerHeight:"500"});
215
216			$(".popup").colorbox({iframe:true, innerWidth:600, innerHeight:400});
217
218	  });
219
220
221
222	/* ----------------------------------------------------------- */
223	/*  Counter
224	/* ----------------------------------------------------------- */
225
226		$('.counterUp').counterUp({
227		 delay: 10,
228		 time: 1000
229		});
230
231
232	
233	/* ----------------------------------------------------------- */
234	/*  Contact form
235	/* ----------------------------------------------------------- */
236
237	$('#contact-form').submit(function(){
238
239		var $form = $(this),
240			$error = $form.find('.error-container'),
241			action  = $form.attr('action');
242
243		$error.slideUp(750, function() {
244			$error.hide();
245
246			var $name = $form.find('.form-control-name'),
247				$email = $form.find('.form-control-email'),
248				$subject = $form.find('.form-control-subject'),
249				$message = $form.find('.form-control-message');
250
251			$.post(action, {
252					name: $name.val(),
253					email: $email.val(),
254					subject: $subject.val(),
255					message: $message.val()
256				},
257				function(data){
258					$error.html(data);
259					$error.slideDown('slow');
260
261					if (data.match('success') != null) {
262						$name.val('');
263						$email.val('');
264						$subject.val('');
265						$message.val('');
266					}
267				}
268			);
269
270		});
271
272		return false;
273
274	});
275
276
277	/* ----------------------------------------------------------- */
278	/*  Back to top
279	/* ----------------------------------------------------------- */
280
281		$(window).scroll(function () {
282			if ($(this).scrollTop() > 50) {
283				 $('#back-to-top').fadeIn();
284			} else {
285				 $('#back-to-top').fadeOut();
286			}
287		});
288
289		// scroll body to 0px on click
290		$('#back-to-top').on('click', function () {
291			 $('#back-to-top').tooltip('hide');
292			 $('body,html').animate({
293				  scrollTop: 0
294			 }, 800);
295			 return false;
296		});
297		
298		$('#back-to-top').tooltip('hide');
299
300
301});

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.