PageSourceSearch

https://www.alqarn.dj/assets-web/js/main.js

js alqarn.dj collected 2026-10-02 21:22:04 UTC 9,790 bytes, 397 lines download raw bytes

1(function($) {
2    "use strict";
3    /*--------------------------
4
5    /*-------------------------------------
6     jQuery Main Menu activation code
7     --------------------------------------*/
8    jQuery('nav#dropdown').meanmenu();
9
10    $('.dropdown-toggle').on('click', function() {
11        var location = $(this).attr('href');
12        window.location.href = location;
13        return false;
14    });
15
16
17    /*----------------------------
18    wow js active
19    ------------------------------ */
20    new WOW().init();
21
22    /*-------------------------------------
23       Author Slider jQuery activation code
24       -------------------------------------*/
25    $("#author-slider-section").owlCarousel({
26        // Most important owl features
27        items : 5,
28        loop:true,
29        rtl: true,
30        center:true,
31        autoplay:true,
32        autoplayTimeout:5000,
33        autoplayHoverPause:true,
34        margin: 10,
35        nav: true,
36        navText: ["<i class='fa fa-angle-right'></i>","<i class='fa fa-angle-left'></i>"],
37        dots: false,
38        responsive: true,
39        responsive:{
40            0:{
41                items:1, // In this configuration 1 is enabled from 0px up to 479px screen size
42                margin: 0
43            },
44
45            480:{
46
47                items:1, // from 480 to 677
48                nav:true, // from 480 to max
49                margin: 0
50            },
51
52            678:{
53
54                items:1, // from this breakpoint 678 to 959
55                margin: 0
56            },
57
58            960:{
59
60                items:5, // from this breakpoint 960 to 1199
61                margin:10
62
63            },
64
65            1200:{
66
67                items:5,
68                margin: 10
69
70            }
71        }
72    });
73
74    $("#maqaal").owlCarousel({
75        // Most important owl features
76        items : 5,
77        loop:true,
78        rtl: true,
79        center:true,
80        autoplay:true,
81        autoplayTimeout:5000,
82        autoplayHoverPause:true,
83        margin: 10,
84        nav: true,
85        navText: ["<i class='fa fa-angle-right'></i>","<i class='fa fa-angle-left'></i>"],
86        dots: false,
87        responsive: true,
88        responsive:{
89            0:{
90                items:1, // In this configuration 1 is enabled from 0px up to 479px screen size
91                margin: 0
92            },
93
94            480:{
95
96                items:1, // from 480 to 677
97                nav:true, // from 480 to max
98                margin: 0
99            },
100
101            678:{
102
103                items:1, // from this breakpoint 678 to 959
104                margin: 0
105            },
106
107            960:{
108
109                items:5, // from this breakpoint 960 to 1199
110                margin:10
111
112            },
113
114            1200:{
115
116                items:5,
117                margin: 10
118
119            }
120        }
121    });
122
123    $("#hiwaar").owlCarousel({
124        // Most important owl features
125        items : 5,
126        loop:true,
127        rtl: true,
128        center:true,
129        autoplay:true,
130        autoplayTimeout:5000,
131        autoplayHoverPause:true,
132        margin: 10,
133        nav: true,
134        navText: ["<i class='fa fa-angle-right'></i>","<i class='fa fa-angle-left'></i>"],
135        dots: false,
136        responsive: true,
137        responsive:{
138            0:{
139                items:1, // In this configuration 1 is enabled from 0px up to 479px screen size
140                margin: 0
141            },
142
143            480:{
144
145                items:1, // from 480 to 677
146                nav:true, // from 480 to max
147                margin: 0
148            },
149
150            678:{
151
152                items:1, // from this breakpoint 678 to 959
153                margin: 0
154            },
155
156            960:{
157
158                items:5, // from this breakpoint 960 to 1199
159                margin:10
160
161            },
162
163            1200:{
164
165                items:5,
166                margin: 10
167
168            }
169        }
170    });
171
172    $("#ads").owlCarousel({
173        // Most important owl features
174        items : 1,
175        loop:true,
176        rtl: true,
177        center:true,
178        autoplay:true,
179        autoplayTimeout:5000,
180        autoplayHoverPause:true,
181        //margin: 10,
182        //nav: true,
183        //navText: ["<i class='fa fa-angle-right'></i>","<i class='fa fa-angle-left'></i>"],
184        dots: false,
185    });
186
187    /*-------------------------------------
188       Header News Slider jQuery activation code
189       -------------------------------------*/
190
191
192    /*-------------------------------------
193       Fetuered Videos jQuery activation code
194       -------------------------------------*/
195    $("#featured-videos-section").owlCarousel({
196        // Most important owl features
197        items : 3,
198        // Navigation
199        nav: true,
200        navText: ["<i class='fa fa-angle-left'></i>", "<i class='fa fa-angle-right'></i>"],
201        dots: false,
202        responsive:{
203		    0:{
204		      items:1 // In this configuration 1 is enabled from 0px up to 479px screen size
205		    },
206
207		    480:{
208
209		      items:1, // from 480 to 677
210		      nav:false // from 480 to max
211
212		    },
213
214		    678:{
215
216		      items:2, // from this breakpoint 678 to 959
217		      center:false // only within 678 and next - 959
218		    },
219
220		    768:{
221
222		      items:2, // from this breakpoint 960 to 1199
223		      margin:20, // and so on...
224		      center:false
225
226		    },
227
228		    1200:{
229
230		      items:3,
231		      loop:false,
232		      margin: 0
233
234		    }
235	    }
236    });
237
238
239    /*-------------------------------------
240       Fetuered Videos popup jQuery activation code
241       -------------------------------------*/
242
243    $('.popup-videos').magnificPopup({
244        disableOn: 10,
245        type: 'iframe',
246        mainClass: 'mfp-fade',
247        removalDelay: 160,
248        preloader: false,
249
250        fixedContentPos: false
251    });
252
253
254    /*About Team Jquery*/
255
256    $("#total-team").owlCarousel({
257        // Most important owl features
258        items : 3,
259        // Navigation
260        nav: false,
261        navText: ["<i class='fa fa-angle-left'></i>", "<i class='fa fa-angle-right'></i>"],
262        dots: false,
263        responsive:{
264            0:{
265              items:1 // In this configuration 1 is enabled from 0px up to 479px screen size
266            },
267
268            480:{
269
270              items:2, // from 480 to 677
271              nav:false // from 480 to max
272
273            },
274
275            767:{
276
277              items:2, // from this breakpoint 678 to 959
278              center:false // only within 678 and next - 959
279            },
280
281            991:{
282
283              items:3, // from this breakpoint 960 to 1199
284              margin:20, // and so on...
285              center:false
286
287            },
288
289            1200:{
290
291              items:3,
292              loop:false,
293              margin: 0
294
295            }
296        }
297
298    });
299
300	/*-------------------------------------
301	Preloder Js here
302	---------------------------------------*/
303	//preloader
304	$(window).load(function() {
305		$(".preloader").delay(2000).fadeOut(500);
306		$(".sk-cube-grid").click(function() {
307		$(".preloader").fadeOut(500);
308		})
309	})
310
311
312    /*-------------------------------------
313    Main Menu jQuery activation code
314    -------------------------------------*/
315   $(".main-menu ul a").on('click', function(e) {
316            var link = $(this);
317
318            var item = link.parent("li");
319
320            if (item.hasClass("active")) {
321                item.removeClass("active").children("a").removeClass("active");
322            } else {
323                item.addClass("active").children("a").addClass("active");
324            }
325
326            if (item.children("ul").length > 0) {
327                var href = link.attr("href");
328                link.attr("href", "#");
329                setTimeout(function () {
330                    link.attr("href", href);
331                }, 300);
332                e.preventDefault();
333            }
334        })
335        .each(function() {
336            var link = $(this);
337            if (link.get(0).href === location.href) {
338                link.addClass("active").parents("li").addClass("active");
339                return false;
340            }
341    });
342
343
344    /*------------------------------------
345    SideSlide menu Activation
346    -------------------------------------*/
347    $('li#slideBotton > a > i').on('click', function() {
348        $('#sideSlide').addClass("highlight");
349    });
350    $('.close').on('click', function() {
351        $('#sideSlide').removeClass("highlight");
352    });
353
354    /*-------------------------------
355    Counter Up
356    ---------------------------------*/
357    $('.about-counter').counterUp({
358        delay: 50,
359        time: 3000
360    });
361
362
363
364 /*-------------------------------
365    Main menu sticky
366    ---------------------------------*/
367
368    var num = $('.header-top-area').innerHeight();
369    var menu_height = $('.header-bottom-area').innerHeight();
370    $(window).bind('scroll', function () {
371     if ($(window).scrollTop() >= num+menu_height) {
372            $('.header-bottom-area').addClass('sticky-header');
373      $('body').css({'padding-top':menu_height});
374        } else {
375            $('.header-bottom-area').removeClass('sticky-header');
376      $('body').css({'padding-top':0});
377        }
378    });
379
380
381    /*--------------------------
382     ScrollTop init Activation Code
383    ---------------------------- */
384    $(window).scroll(function() {
385        if ($(this).scrollTop() >= 50) {        // If page is scrolled more than 50px
386            $('#return-to-top').fadeIn(200);    // Fade in the arrow
387        } else {
388            $('#return-to-top').fadeOut(200);   // Else fade out the arrow
389        }
390    });
391    $('#return-to-top').on('click', function() {      // When arrow is clicked
392        $('body,html').animate({
393            scrollTop : 0                       // Scroll to top of body
394        }, 500);
395    });
396
397})(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.