PageSourceSearch

https://madaba.gov.jo/wp-content/themes/sorbroix/js/theme.js?ver=7.1.1

js madaba.gov.jo collected 2026-09-25 09:24:13 UTC 26,309 bytes, 805 lines download raw bytes

1;(function($) {
2    "use strict";
3    var navbar=$('.menu_inner_area,.main_menu_bg,.menu_inner_area_two');
4    var nav_offset_top = $('.main_menu_area,.main_menu_area_three,.main_menu_area_four,.main_menu_area_five,.error_area,.coming_soon_area').offset().top + 200;
5    /*-------------------------------------------------------------------------------
6	  Navbar 
7	-------------------------------------------------------------------------------*/
8
9	navbar.affix({
10	  offset: {
11	    top: nav_offset_top,
12	  }
13	});
14
15
16	navbar.on('affix.bs.affix', function() {
17		if (!navbar.hasClass('affix')){
18			navbar.addClass('animated slideInDown');
19		}
20	});
21    
22    navbar.on('affixed-top.bs.affix', function() {
23	  	navbar.removeClass('animated slideInDown');
24	});
25    
26    /*----------------------------------------------------*/
27    /* Offcanvas Menu js
28    /*----------------------------------------------------*/
29    $('.bar_menu,#nav-icon1').on('click',function(){
30        if( $(".right_sidebar_menu").hasClass('open') ){
31            $(".right_sidebar_menu").removeClass('open')
32        }
33        else{
34            $(".right_sidebar_menu").addClass('open')
35        }
36        return false
37    });
38    
39    $(window).on("load",function(){
40        $(".right_widget_inner").niceScroll({
41            scrollspeed: 50,
42            mousescrollstep: 30,
43            cursorcolor: "transparent",
44            cursorwidth: "0px",
45            cursorminheight: 32,
46            cursorborderradius: "0px", 
47            smoothscroll: true,
48        });
49    });
50    
51    /*========serch popup js==========*/
52    $(document).ready(function() {
53        $('.popup-with-zoom-anim').magnificPopup({
54            type: 'inline',
55
56            fixedContentPos: false,
57            fixedBgPos: true,
58
59            overflowY: 'auto',
60
61            closeBtnInside: true,
62            preloader: false,
63
64            midClick: true,
65            removalDelay: 300,
66            mainClass: 'my-mfp-zoom-in'
67        });
68
69        $('.popup-with-move-anim').magnificPopup({
70            type: 'inline',
71
72            fixedContentPos: false,
73            fixedBgPos: true,
74
75            overflowY: 'auto',
76
77            closeBtnInside: true,
78            preloader: false,
79
80            midClick: true,
81            removalDelay: 300,
82            mainClass: 'my-mfp-slide-bottom'
83        });
84    });
85    
86    /*----------------------------------------------------*/
87    /*  Main Slider js
88    /*----------------------------------------------------*/
89    function main_slider(){
90        if ( $('#main_slider').length ){
91            $("#main_slider").revolution({
92                sliderType:"standard",
93                sliderLayout:"auto",
94                delay:4000,
95                disableProgressBar:"on",
96                navigation: {
97                    onHoverStop: 'off',
98                    touch:{
99                        touchenabled:"on"
100                    },
101                    arrows: {
102                        style:"zeus",
103                        enable:true,
104                        hide_onmobile:true,
105                        hide_under:767,
106                        hide_onleave:true,
107                        hide_delay:200,
108                        hide_delay_mobile:1200,
109                        tmp:'<div class="tp-title-wrap">  	<div class="tp-arr-imgholder"></div> </div>',
110                        left: {
111                            h_align: "left",
112                            v_align: "center",
113                            h_offset: 5,
114                            v_offset: 0
115                        },
116                        right: {
117                            h_align: "right",
118                            v_align: "center",
119                            h_offset: 5,
120                            v_offset: 0
121                        }
122                    },
123                },
124                responsiveLevels:[4096,1199,992,767,480],
125                gridwidth:[1170,960,720,700,300],
126                gridheight:[800,800,800,600,500],
127                lazyType:"smart",
128                fallbacks: {
129                    simplifyAll:"off",
130                    nextSlideOnWindowFocus:"off",
131                    disableFocusListener:false,
132                }
133            })
134        }
135    }
136    main_slider();
137    
138     /*----------------------------------------------------*/
139    /*  Main Slider Two js
140    /*----------------------------------------------------*/
141    function main_slider_two(){
142        if ( $('#main_slider_two').length ){
143            $("#main_slider_two").revolution({
144                sliderType:"standard",
145                sliderLayout:"auto",
146                delay:4000,
147                dottedOverlay:"false",
148                disableProgressBar:"on",
149                navigation: {
150                    onHoverStop: 'off',
151                    touch:{
152                        touchenabled:"on"
153                    },
154                    arrows: {
155                        style:"zeus",
156                        enable:true,
157                        hide_onmobile:true,
158                        hide_under:767,
159                        hide_onleave:true,
160                        hide_delay:200,
161                        hide_delay_mobile:1200,
162                        tmp:'<div class="tp-title-wrap">  	<div class="tp-arr-imgholder"></div> </div>',
163                        left: {
164                            h_align: "left",
165                            v_align: "center",
166                            h_offset: 5,
167                            v_offset: 0
168                        },
169                        right: {
170                            h_align: "right",
171                            v_align: "center",
172                            h_offset: 5,
173                            v_offset: 0
174                        }
175                    },
176                },
177                responsiveLevels:[4096,1199,992,767,480],
178                gridwidth:[1170,1000,750,700,320],
179                gridheight:[715,715,715,600,500],
180                lazyType:"none",
181                parallax: {
182                    type:"mouse",
183                    origo:"slidercenter",
184                    speed:2000,
185                    levels:[2,3,4,5,6,7,12,16,10,50,46,47,48,49,50,55],
186                    type:"mouse",
187                    disable_onmobile:"on"
188                },
189                shadow:0,
190                spinner:"off",
191                stopLoop:"on",
192                stopAfterLoops:0,
193                stopAtSlide:1,
194                shuffle:"off",
195                autoHeight:"off",
196                fullScreenAutoWidth:"off",
197                fullScreenAlignForce:"off",
198                fullScreenOffsetContainer: "",
199                fullScreenOffset: "60px",
200                disableProgressBar:"on",
201                hideThumbsOnMobile:"off",
202                hideSliderAtLimit:0,
203                hideCaptionAtLimit:0,
204                hideAllCaptionAtLilmit:0,
205                debugMode:false,
206                fallbacks: {
207                    simplifyAll:"off",
208                    nextSlideOnWindowFocus:"off",
209                    disableFocusListener:false,
210                }
211            })
212        }
213    }
214    main_slider_two();
215    
216    /*----------------------------------------------------*/
217    /*  Main Slider js
218    /*----------------------------------------------------*/
219    function main_slider_four(){
220        if ( $('#main_slider_four').length ){
221            $("#main_slider_four").revolution({
222                sliderType:"standard",
223                sliderLayout:"auto",
224                delay:5000,
225                disableProgressBar:"on",
226                navigation: {
227                    onHoverStop: 'off',
228                    touch:{
229                        touchenabled:"on"
230                    },
231                    arrows: {
232                        style:"zeus",
233                        enable:true,
234                        hide_onmobile:true,
235                        hide_under:767,
236                        hide_onleave:true,
237                        hide_delay:200,
238                        hide_delay_mobile:1200,
239                        tmp:'<div class="tp-title-wrap">  	<div class="tp-arr-imgholder"></div> </div>',
240                        left: {
241                            h_align: "left",
242                            v_align: "center",
243                            h_offset: 5,
244                            v_offset: 0
245                        },
246                        right: {
247                            h_align: "right",
248                            v_align: "center",
249                            h_offset: 5,
250                            v_offset: 0
251                        }
252                    },
253                },
254                responsiveLevels:[4096,1199,992,767,480],
255                gridwidth:[1170,1000,750,550,300],
256                gridheight:[678,678,678,678,500],
257                lazyType:"smart",
258                fallbacks: {
259                    simplifyAll:"off",
260                    nextSlideOnWindowFocus:"off",
261                    disableFocusListener:false,
262                }
263            })
264        }
265    }
266    main_slider_four();
267    
268    /*----------------------------------------------------*/
269    /*  Main Slider js
270    /*----------------------------------------------------*/
271    function main_slider_five(){
272        if ( $('#main_slider_five').length ){
273            $("#main_slider_five").revolution({
274                sliderType:"standard",
275                sliderLayout:"auto",
276                delay:5000,
277                disableProgressBar:"on",
278                navigation: {
279                    onHoverStop: 'off',
280                    touch:{
281                        touchenabled:"on"
282                    },
283                    arrows: {
284                        style:"zeus",
285                        enable:true,
286                        hide_onmobile:true,
287                        hide_under:767,
288                        hide_onleave:true,
289                        hide_delay:200,
290                        hide_delay_mobile:1200,
291                        tmp:'<div class="tp-title-wrap">  	<div class="tp-arr-imgholder"></div> </div>',
292                        left: {
293                            h_align: "left",
294                            v_align: "center",
295                            h_offset: 5,
296                            v_offset: 0
297                        },
298                        right: {
299                            h_align: "right",
300                            v_align: "center",
301                            h_offset: 5,
302                            v_offset: 0
303                        }
304                    },
305                },
306                responsiveLevels:[4096,1199,992,767,480],
307                gridwidth:[1170,1000,750,550,300],
308                gridheight:[625,625,625,625,500],
309                lazyType:"smart",
310                fallbacks: {
311                    simplifyAll:"off",
312                    nextSlideOnWindowFocus:"off",
313                    disableFocusListener:false,
314                }
315            })
316        }
317    }
318    main_slider_five();
319    
320    /*----------------------------------------------------*/
321    /*  Gallery Slider
322    /*----------------------------------------------------*/
323    function practice_slider(){
324        if ( $('.practice_slider').length ){
325            $('.practice_slider').owlCarousel({
326                loop:true,
327                margin: 30,
328                items: 4,
329                nav:true,
330                autoplay: true,
331                smartSpeed: 1500,
332                dots:true,
333                navContainerClass: 'practice_arrow',
334                navText: ['<img src="https://shtheme.com/demosd/sorbroix/wp-content/uploads/2022/05/arrow.png" alt="">','<img src="https://shtheme.com/demosd/sorbroix/wp-content/uploads/2022/05/arrow-left.png" alt="">'],
335                responsiveClass: true,
336                responsive: {
337                    0: {
338                        items: 1,
339                    },
340                    600: {
341                        items: 2,
342                    },
343                    800: {
344                        items: 3,
345                    },
346                    1060: {
347                        items: 4,
348                    }
349                }
350            })
351        }
352    }
353    practice_slider();
354    
355    /*----------------------------------------------------*/
356    /*  testimonial Slider
357    /*----------------------------------------------------*/
358    function testimonial_slider(){
359        if ( $('#testimonial_slider').length ){
360            $('#testimonial_slider').owlCarousel({
361                loop:true,
362                margin:230,
363                items: 2,
364                nav:false,
365                autoplay: true,
366                smartSpeed: 1500,
367                dots:true,
368                responsiveClass: true,
369                responsive: {
370                    0: {
371                        items: 1,
372                        margin:20
373                    },
374                    650: {
375                        items: 2,
376                        margin:100
377                    },
378                    800: {
379                        items: 2,
380                        margin:100
381                    },
382                    1199: {
383                        items: 2,
384                    }
385                }
386            })
387        }
388    }
389    testimonial_slider();
390    
391    
392    /*----------------------------------------------------*/
393    /*  testimonial Slider Two
394    /*----------------------------------------------------*/
395    function testimonial_two(){
396        if ( $('.testimonial_slider_two').length ){
397            $('.testimonial_slider_two').owlCarousel({
398                loop:true,
399                margin:30,
400                items: 3,
401                nav:false,
402                autoplay: true,
403                smartSpeed: 1500,
404                dots:true,
405                responsiveClass: true,
406                responsive: {
407                    0: {
408                        items: 1,
409                    },
410                    600: {
411                        items: 2,
412                    },
413                    800: {
414                        items: 2,
415                    },
416                    1060: {
417                        items: 3,
418                    }
419                }
420            })
421        }
422    }
423    testimonial_two();
424    
425    /*----------------------------------------------------*/
426    /*  Gallery Slider
427    /*----------------------------------------------------*/
428    function client_slider(){
429        if ( $('.client_slider').length ){
430            $('.client_slider').owlCarousel({
431                loop:true,
432                margin: 30,
433                items: 6,
434                nav:false,
435                autoplay: true,
436                smartSpeed: 1500,
437                dots:true,
438                responsiveClass: true,
439                responsive: {
440                    0: {
441                        items: 1,
442                    },
443                    480: {
444                        items: 2,
445                    },
446                    600: {
447                        items: 4,
448                    },
449                    992: {
450                        items: 6,
451                    }
452                }
453            })
454        }
455    }
456    client_slider();
457    
458    
459    $('.counter').counterUp({
460        delay: 10,
461        time: 1000
462    });
463    
464    
465    /*----------------------------------------------------*/
466    /*  Magnificpopup js 
467    /*----------------------------------------------------*/
468    $(document).ready(function() {
469        $('.popup-youtube').magnificPopup({
470            disableOn: 700,
471            type: 'iframe',
472            mainClass: 'mfp-fade',
473            removalDelay: 160,
474            preloader: false,
475
476            fixedContentPos: false
477        });
478    });
479    
480    /*----------------------------------------------------*/
481    /*  Cases Isotop
482    /*----------------------------------------------------*/
483    function our_cases(){
484        if ( $('.our_cases_area,.projects_area,.projects_full_area').length ){
485            // Activate isotope in container
486            $(".our_case_inner,.project_full_inner").imagesLoaded( function() {
487                $(".our_case_inner,.project_full_inner").isotope({
488                    layoutMode: 'fitRows',
489                }); 
490            }); 
491            // Add isotope click function
492            $(".project_fillter li").on('click',function(){
493                $(".project_fillter li").removeClass("active");
494                $(this).addClass("active");
495
496                var selector = $(this).attr("data-filter");
497                $(".our_case_inner,.project_full_inner").isotope({
498                    filter: selector,
499                    animationOptions: {
500                        duration: 450,
501                        easing: "linear",
502                        queue: false,
503                    }
504                });
505                return false;
506            });
507        }
508    }
509    our_cases();
510    
511    
512    /*=============================================== 
513      Skrollr Init
514    ================================================*/
515    var mySkrollr = skrollr.init({
516        forceHeight: false,
517        easings: {
518            easeOutBack: function (p, s) {
519                s = 1.70158;
520                p = p - 1;
521                return (p * p * ((s + 1) * p + s) + 1);
522            }
523        },
524        mobileCheck: function() {
525            //hack - forces mobile version to be off
526            return false;
527        }
528    });
529    
530    /*----------------------------------------------------*/
531    /*  Google map js
532    /*----------------------------------------------------*/
533    
534    if ( $('#mapBox1').length ){
535        var $lat = $('#mapBox1').data('lat');
536        var $lon = $('#mapBox1').data('lon');
537        var $zoom = $('#mapBox1').data('zoom');
538        var $marker = $('#mapBox1').data('marker');
539        var $info = $('#mapBox1').data('info');
540        var $markerLat = $('#mapBox1').data('mlat');
541        var $markerLon = $('#mapBox1').data('mlon');
542        var map = new GMaps({
543        el: '#mapBox1',
544        lat: $lat,
545        lng: $lon,
546        scrollwheel: false,
547        scaleControl: true,
548        streetViewControl: false,
549        panControl: true,
550        disableDoubleClickZoom: true,
551        mapTypeControl: false,
552        zoom: $zoom,
553            styles: [
554                {
555                    "featureType": "water",
556                    "elementType": "geometry.fill",
557                    "stylers": [
558                        {
559                            "color": "#e2a062"
560                        }
561                    ]
562                },
563                {
564                    "featureType": "transit",
565                    "stylers": [
566                        {
567                            "color": "#e2a062"
568                        },
569                        {
570                            "visibility": "off"
571                        }
572                    ]
573                },
574                {
575                    "featureType": "road.highway",
576                    "elementType": "geometry.stroke",
577                    "stylers": [
578                        {
579                            "visibility": "on"
580                        },
581                        {
582                            "color": "#e2a062"
583                        }
584                    ]
585                },
586                {
587                    "featureType": "road.highway",
588                    "elementType": "geometry.fill",
589                    "stylers": [
590                        {
591                            "color": "#ffffff"
592                        }
593                    ]
594                },
595                {
596                    "featureType": "road.local",
597                    "elementType": "geometry.fill",
598                    "stylers": [
599                        {
600                            "visibility": "on"
601                        },
602                        {
603                            "color": "#ffffff"
604                        },
605                        {
606                            "weight": 1.8
607                        }
608                    ]
609                },
610                {
611                    "featureType": "road.local",
612                    "elementType": "geometry.stroke",
613                    "stylers": [
614                        {
615                            "color": "#b53c00"
616                        }
617                    ]
618                },
619                {
620                    "featureType": "poi",
621                    "elementType": "geometry.fill",
622                    "stylers": [
623                        {
624                            "visibility": "on"
625                        },
626                        {
627                            "color": "#b53c00"
628                        }
629                    ]
630                },
631                {
632                    "featureType": "administrative",
633                    "elementType": "geometry",
634                    "stylers": [
635                        {
636                            "color": "#e2a062"
637                        }
638                    ]
639                },
640                {
641                    "featureType": "road.arterial",
642                    "elementType": "geometry.fill",
643                    "stylers": [
644                        {
645                            "color": "#ffffff"
646                        }
647                    ]
648                },
649                {
650                    "featureType": "road.arterial",
651                    "elementType": "geometry.fill",
652                    "stylers": [
653                        {
654                            "color": "#ffffff"
655                        }
656                    ]
657                },
658                {
659                    "featureType": "landscape",
660                    "elementType": "geometry.fill",
661                    "stylers": [
662                        {
663                            "visibility": "on"
664                        },
665                        {
666                            "color": "#e0d3c9"
667                        }
668                    ]
669                },
670                {
671                    "featureType": "road",
672                    "elementType": "labels.text.fill",
673                    "stylers": [
674                        {
675                            "color": "#b53c00"
676                        }
677                    ]
678                },
679                {
680                    "featureType": "administrative",
681                    "elementType": "labels.text.fill",
682                    "stylers": [
683                        {
684                            "visibility": "on"
685                        },
686                        {
687                            "color": "#737373"
688                        }
689                    ]
690                },
691                {
692                    "featureType": "poi",
693                    "elementType": "labels.icon",
694                    "stylers": [
695                        {
696                            "visibility": "off"
697                        }
698                    ]
699                },
700                {
701                    "featureType": "poi",
702                    "elementType": "labels",
703                    "stylers": [
704                        {
705                            "visibility": "off"
706                        }
707                    ]
708                },
709                {
710                    "featureType": "road.arterial",
711                    "elementType": "geometry.stroke",
712                    "stylers": [
713                        {
714                            "color": "#d6d6d6"
715                        }
716                    ]
717                },
718                {
719                    "featureType": "road",
720                    "elementType": "labels.icon",
721                    "stylers": [
722                        {
723                            "visibility": "off"
724                        }
725                    ]
726                },
727                {},
728                {
729                    "featureType": "poi",
730                    "elementType": "geometry.fill",
731                    "stylers": [
732                        {
733                            "color": "#e2a062"
734                        }
735                    ]
736                }
737            ]
738        });
739
740        map.addMarker({
741            lat: $markerLat,
742            lng: $markerLon,
743            icon: $marker,    
744            infoWindow: {
745              content: $info
746            }
747        })
748    }
749    
750    
751    /*----------------------------------------------------*/
752    /*  Google map Two js
753    /*----------------------------------------------------*/
754    
755    if ( $('#mapBox').length ){
756        var $lat = $('#mapBox').data('lat');
757        var $lon = $('#mapBox').data('lon');
758        var $zoom = $('#mapBox').data('zoom');
759        var $marker = $('#mapBox').data('marker');
760        var $info = $('#mapBox').data('info');
761        var $markerLat = $('#mapBox').data('mlat');
762        var $markerLon = $('#mapBox').data('mlon');
763        var map = new GMaps({
764            el: '#mapBox',
765            lat: $lat,
766            lng: $lon,
767            scrollwheel: false,
768            scaleControl: true,
769            streetViewControl: false,
770            panControl: true,
771            disableDoubleClickZoom: true,
772            mapTypeControl: false,
773            zoom: $zoom,
774                styles: [
775                    {
776                        "featureType": "administrative.country",
777                        "elementType": "geometry",
778                        "stylers": [
779                            {
780                                "visibility": "simplified"
781                            },
782                            {
783                                "hue": "#ff0000"
784                            }
785                        ]
786                    }
787                ]
788            });
789        
790            map.addMarker({
791                lat: $markerLat,
792                lng: $markerLon,
793                icon: $marker,    
794                infoWindow: {
795                  content: $info
796                }
797            })
798        }
799    
800    
801    /*----------------------------------------------------*/
802    /*  Google map js
803    /*----------------------------------------------------*/
804    
805})(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.