PageSourceSearch

https://bulturk.net/wp-content/themes/docile/assets/js/custom.js?ver=20200412

js bulturk.net collected 2026-09-24 10:03:59 UTC 6,877 bytes, 246 lines download raw bytes

1/* Custom JS File */
2(function($) {
3
4	"use strict";
5
6	jQuery(document).ready(function() {
7
8    	// Slider JS
9    	$('.modern-slider').slick({
10            slidesToShow: 1,
11    		slidesToScroll: 1,
12    		autoplay: false,
13			autoplaySpeed: 5000,
14			dots: false,
15			fade: true,
16			prevArrow:
17			'<button type="button" class="slick-prev"><span class="fa fa-angle-left"></span></button>',
18			nextArrow:
19			'<button type="button" class="slick-next"><span class="fa fa-angle-right"></span></button>',
20			arrows: true,
21			dots: false,
22	      	responsive: [
23				{
24				  breakpoint: 767,
25				  settings: {
26				    arrows: false,
27				  }
28				},
29				{
30				  breakpoint: 992,
31				  settings: {
32				    arrows: false,
33				  }
34				}
35			]
36    	});
37
38    	// Treding Slider JS
39    	$('.trending-news-slider').slick({
40            slidesToShow: 1,
41    		slidesToScroll: 1,
42    		autoplay: true,
43			autoplaySpeed: 5000,
44			dots: false,
45			prevArrow:
46			'<button type="button" class="slick-prev"><span class="fa fa-angle-left"></span></button>',
47			nextArrow:
48			'<button type="button" class="slick-next"><span class="fa fa-angle-right"></span></button>',
49			arrows: true,
50    	});
51
52    	// grid Post Slider JS
53    	$('.grid__slider__carousel').slick({
54            slidesToShow: 4,
55    		slidesToScroll: 1,
56    		autoplay: false,
57			autoplaySpeed: 1000,
58			dots: false,
59			prevArrow:
60			'<button type="button" class="slick-prev"><span class="fa fa-angle-left"></span></button>',
61			nextArrow:
62			'<button type="button" class="slick-next"><span class="fa fa-angle-right"></span></button>',
63			arrows:true,
64			responsive: [
65				{
66			      breakpoint: 991,
67			      settings: {
68			        slidesToShow: 2,
69			        slidesToScroll: 1,
70			      }
71			    },
72				{
73			      breakpoint: 767,
74			      settings: {
75			        slidesToShow: 2,
76			        slidesToScroll: 1,
77			      }
78			    },
79			    {
80			      breakpoint: 480,
81			      settings: {
82			        slidesToShow: 1,
83			        slidesToScroll: 1,
84			      }
85			    }
86			]
87    	});
88
89    	// Card Post Slider JS
90		  $('.marquee-slide').marquee({
91		    //duration in milliseconds of the marquee
92            speed: 50000,
93            //gap in pixels between the tickers
94            gap: 0,
95            //time in milliseconds before the marquee will start animating
96            delayBeforeStart: 0,
97            //'left' or 'right'
98            //direction: 'left',
99            //true or false - should the marquee be duplicated to show an effect of continues flow
100            duplicated: true,
101            pauseOnHover: true,
102            startVisible: true
103		});
104
105    	// Treding Slider JS
106    	$('#primary .fetured__post__carousel').slick({
107            slidesToShow: 3,
108    		slidesToScroll: 3,
109    		autoplay: true,
110    		infinite: true,
111			autoplaySpeed: 1000,
112			dots: false,
113			prevArrow:
114			'<button type="button" class="slick-prev"><span class="fa fa-angle-left"></span></button>',
115			nextArrow:
116			'<button type="button" class="slick-next"><span class="fa fa-angle-right"></span></button>',
117			arrows: true,
118			responsive: [
119				{
120			      breakpoint: 991,
121			      settings: {
122			        slidesToShow: 1,
123			        slidesToScroll: 1,
124			      }
125			    },
126			    {
127			      breakpoint: 480,
128			      settings: {
129			        slidesToShow: 1,
130			        slidesToScroll: 1,
131			      }
132			    }
133			]
134    	});
135    	$('#secondary .fetured__post__carousel, .footer-wrap .fetured__post__carousel, .slider-below-widget-wrapper .fetured__post__carousel').slick({
136            slidesToShow: 1,
137    		slidesToScroll: 1,
138    		prevArrow:
139			'<button type="button" class="slick-prev"><span class="fa fa-angle-left"></span></button>',
140			nextArrow:
141			'<button type="button" class="slick-next"><span class="fa fa-angle-right"></span></button>',
142			arrows: true,
143    	});
144
145        // Boxes Section
146	    $('.news__highlight').slick({
147	        dots: false,
148	        autoplay:true,
149	        infinite: true,
150	        speed: 500,
151	        slidesToShow: 2,
152	        slidesToScroll: 1,
153	        arrows: true,
154	        prevArrow:
155			'<button type="button" class="slick-prev"><span class="fa fa-angle-left"></span></button>',
156			nextArrow:
157			'<button type="button" class="slick-next"><span class="fa fa-angle-right"></span></button>',
158			arrows: true,
159	        responsive: [
160				{
161				  breakpoint: 767,
162				  settings: {
163				    slidesToShow: 1,
164	        		slidesToScroll: 1,
165				  }
166				},
167				{
168				  breakpoint: 480,
169				  settings: {
170				    slidesToShow: 1,
171	        		slidesToScroll: 1,
172	        		arrows:false,
173	        		dots:true
174				  }
175				}
176			]
177	    });
178		// Initialize gototop for carousel
179		if ( $('#toTop').length > 0 ) {
180		    // Hide the toTop button when the page loads.
181		    $("#toTop").css("display", "none");
182
183		      // This function runs every time the user scrolls the page.
184		      $(window).scroll(function(){
185		        // Check weather the user has scrolled down (if "scrollTop()"" is more than 0)
186		        if($(window).scrollTop() > 0){
187		          // If it's more than or equal to 0, show the toTop button.
188		          $("#toTop").fadeIn("slow");
189		      }
190		      else {
191		          // If it's less than 0 (at the top), hide the toTop button.
192		          $("#toTop").fadeOut("slow");
193		      }
194		  	});
195
196			// When the user clicks the toTop button, we want the page to scroll to the top.
197			jQuery("#toTop").click(function(event){
198
199				// Disable the default behaviour when a user clicks an empty anchor link.
200				// (The page jumps to the top instead of // animating)
201				event.preventDefault();
202				// Animate the scrolling motion.
203				jQuery("html, body").animate({
204					scrollTop:0
205				},"slow");
206			});
207	  	}		
208
209        //slider widget
210	     $('.post-slider-section').slick({
211	         dots: false,
212	         prevArrow:
213			'<button type="button" class="slick-prev"><span class="fa fa-angle-left"></span></button>',
214			nextArrow:
215			'<button type="button" class="slick-next"><span class="fa fa-angle-right"></span></button>',
216	    });
217
218	
219		$('#tab_first li').click(function(){
220			var tab_id = $(this).attr('data-tab');
221
222			$('#tab_first li').removeClass('current');
223			$('.tab-block').removeClass('current');
224
225			$(this).addClass('current');
226			$("#"+tab_id).addClass('current');
227		})
228
229		$('#tab_second li').click(function(){
230			var tab_id = $(this).attr('data-tab');
231
232			$('#tab_second li').removeClass('current');
233			$('.tab-block').removeClass('current');
234
235			$(this).addClass('current');
236			$("#"+tab_id).addClass('current');
237		})
238
239 	}); 
240	//Loading
241 	$(window).on('load', function(){
242        setTimeout(()=>{
243            $('.preloader').fadeOut()
244        }, 250)
245    })	
246})(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.