PageSourceSearch

https://jordan.gov.jo/Scripts/customAr.js

js jordan.gov.jo collected 2026-10-01 10:36:06 UTC 12,945 bytes, 439 lines download raw bytes

1
2//jQuery(document).ready(function () {
3//    jQuery('.responsive-menu nav').meanmenu();
4//});
5
6//$('.stories').slick({
7//    slidesToShow: 4,
8//    slidesToScroll: 1,
9//    infinite: true,
10//    autoplay: false,
11//    autoplaySpeed: 2000,
12//    arrows: true,
13//    dots: false,
14//    vertical: true,
15//    verticalSwiping: true,
16//    arrows: false
17//});
18//$('.left').click(function () {
19//    $('.stories').slick('slickPrev');
20//})
21
22//$('.right').click(function () {
23//    $('.stories').slick('slickNext');
24//})
25//$('.benifit').slick({
26//    slidesToShow: 4,
27//    slidesToScroll: 1,
28//    infinite: true,
29//    autoplay: false,
30//    autoplaySpeed: 2000,
31//    arrows: true,
32//    dots: false,
33//    responsive: [{
34//        breakpoint: 768,
35//        settings: {
36//            slidesToShow: 2,
37//        }
38//    },
39//    {
40//        breakpoint: 576,
41//        settings: {
42//            slidesToShow: 1,
43//        }
44//    },
45//    {
46//        breakpoint: 480,
47//        settings: {
48//            slidesToShow: 1,
49//        }
50//    },
51//    ]
52//});
53
54//// Add smooth scrolling to all links
55
56//$("a").on('click', function (event) {
57
58
59
60//    // Make sure this.hash has a value before overriding default behavior
61
62//    if (this.hash !== "") {
63
64//        // Prevent default anchor click behavior
65
66//        event.preventDefault();
67
68
69
70//        // Store hash
71
72//        var hash = this.hash;
73
74
75
76//        // Using jQuery's animate() method to add smooth page scroll
77
78//        // The optional number (800) specifies the number of milliseconds it takes to scroll to the specified area
79
80//        $('html, body').animate({
81
82//            scrollTop: $(hash).offset().top
83
84//        }, 1200, function () {
85
86
87
88//            // Add hash (#) to URL when done scrolling (default click behavior)
89
90//            window.location.hash = hash;
91
92//        });
93
94//    } // End if
95
96//});
97
98//jQuery(function () {
99//    jQuery('#ticker').tickerme();
100//});
101
102
103
104//// js code for news ticker
105
106//(function (e) { e.fn.tickerme = function (t) { var n = e.extend({}, e.fn.tickerme.defaults, t); return this.each(function () { function a() { e(t).hide(); e("body").prepend(r).prepend(i); var n = '<div id="ticker_container">'; n += '<div id="newscontent"><div id="news"></div></div>'; n += '<div id="controls">'; n += '<a href="#" id="pause_trigger"><svg class="icon icon-pause" viewBox="0 0 32 32"><use xlink:href="#icon-pause"></use></svg></a>'; n += '<a href="#" id="play_trigger" style="display:none"><svg class="icon icon-play" viewBox="0 0 32 32"><use xlink:href="#icon-play"></use></svg></a>'; n += '<a href="#" id="prev_trigger"><svg class="icon icon-prev" viewBox="0 0 32 32"><use xlink:href="#icon-prev"></use></svg></a>'; n += '<a href="#" id="next_trigger"><svg class="icon icon-next" viewBox="0 0 32 32"><use xlink:href="#icon-next"></use></svg></a>'; n += "</div>"; n += "</div>"; e(n).insertAfter(t); e(t).children().each(function (t) { s[t] = e(this).html() }); f() } function f() { if (o == s.length - 1) { o = 0 } else { o++ } if (n.type == "fade") { e("#news").fadeOut(n.fade_speed, function () { e("#newscontent").html('<div id="news">' + s[o] + "</div>"); e("#news").fadeIn(n.fade_speed) }) } u = setTimeout(f, n.duration) } var t = e(this); var r = '<svg display="none" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="224" height="32" viewBox="0 0 224 32"><defs><g id="icon-play"><path class="path1" d="M6 4l20 12-20 12z"></path></g><g id="icon-pause"><path class="path1" d="M4 4h10v24h-10zM18 4h10v24h-10z"></path></g><g id="icon-prev"><path class="path1" d="M18 5v10l10-10v22l-10-10v10l-11-11z"></path></g><g id="icon-next"><path class="path1" d="M16 27v-10l-10 10v-22l10 10v-10l11 11z"></path></g></defs></svg>'; var i = '<style type="text/css">#ticker_container{width:100%}#newscontent{float:right}#news{display:none}#controls{float:right;height:16px;display:none;}.icon{display:inline-block;width:16px;height:16px;fill:' + n.control_colour + "}.icon:hover{fill:" + n.control_rollover + "}</style>"; var s = []; var o = -1; var u; a(); e("a#pause_trigger").click(function () { clearTimeout(u); e(this).hide(); e("#play_trigger").show(); return false }); e("a#play_trigger").click(function () { f(); e(this).hide(); e("#pause_trigger").show(); return false }); e("a#prev_trigger").click(function () { if (o == 0) { o = s.length - 1 } else { o-- } e("#newscontent").html('<div id="news" style="display:block">' + s[o] + "</div>"); if (n.auto_stop) e("a#pause_trigger").trigger("click"); return false }); e("a#next_trigger").click(function () { if (o == s.length - 1) { o = 0 } else { o++ } e("#newscontent").html('<div id="news" style="display:block">' + s[o] + "</div>"); if (n.auto_stop) e("a#pause_trigger").trigger("click"); return false }) }) }; e.fn.tickerme.defaults = { fade_speed: 500, duration: 3e3, auto_stop: true, type: "fade", control_colour: "#333333", control_rollover: "#666666" } })(jQuery)
107//$('#owl-carousel7').owlCarousel({
108//    loop: true,
109//    margin: 10,
110//    nav: true,
111//    rtl: true,
112//    navText: true,
113//    dots: false,
114//    autoplay: false,
115//    autoplayTimeout: 5000,
116//    autoplayHoverPause: true,
117//    responsive: {
118//        0: {
119//            items: 1
120//        },
121//        600: {
122//            items: 1
123//        },
124//        1000: {
125//            items: 2
126//        },
127
128
129
130//    }
131//})
132
133//$('#owl-carousel6').owlCarousel({
134//    loop: true,
135//    margin: 10,
136//    nav: true,
137//    rtl: true,
138//    navText: true,
139//    dots: false,
140//    autoplay: false,
141//    autoplayTimeout: 5000,
142//    autoplayHoverPause: true,
143//    responsive: {
144//        0: {
145//            items: 1
146//        },
147//        600: {
148//            items: 2
149//        },
150//        1000: {
151//            items: 2
152//        },
153
154
155
156//    }
157//})
158
159
160//$('#owl-carousel5').owlCarousel({
161//    loop: true,
162//    margin: 10,
163//    nav: true,
164//    rtl: true,
165//    navText: true,
166//    dots: false,
167//    autoplay: false,
168//    autoplayTimeout: 5000,
169//    autoplayHoverPause: true,
170//    responsive: {
171//        0: {
172//            items: 1
173//        },
174//        600: {
175//            items: 1
176//        },
177//        1000: {
178//            items: 1
179//        },
180
181
182
183//    }
184//})
185
186
187
188//$('#owl-carousel2').owlCarousel({
189//    loop: true,
190//    margin: 10,
191//    nav: true,
192//    rtl: true,
193//    navText: true,
194//    dots: false,
195//    autoplay: false,
196//    autoplayTimeout: 5000,
197//    autoplayHoverPause: true,
198//    responsive: {
199//        0: {
200//            items: 1
201//        },
202//        600: {
203//            items: 1
204//        },
205//        1000: {
206//            items: 5
207//        },
208
209
210
211//    }
212//})
213
214
215//$('.owl-carousel3').owlCarousel({
216//    loop: true,
217//    margin: 10,
218//    nav: true,
219//    rtl: true,
220//    navText: [
221//        '<span > <img src="/App_Themes/ThemeAr/Images/goright.png"> </span>',
222//        ' <span> <img src="/App_Themes/ThemeAr/Images/Group\ 77.png"> </span>'
223//    ],
224//    // navText: false,
225//    dots: false,
226//    autoplay: false,
227//    autoplayTimeout: 5000,
228//    autoplayHoverPause: true,
229//    responsive: {
230//        0: {
231//            items: 1
232//        },
233//        600: {
234//            items: 2
235//        },
236//        1000: {
237//            items: 4
238//        },
239
240
241
242//    }
243//})
244
245
246//$(document).ready(function () {
247//    $("#btn-search").click(function () {
248//        $(".search ").addClass("search--open");
249//    });
250//    $("#search-cls").click(function () {
251//        $(".search ").removeClass("search--open");
252//    });
253//});
254//function getFocus() {
255//    document.getElementById("search-ip").focus();
256//}
257
258
259//$('.control').click(function () {
260//    $('body').addClass('search-active');
261//    $('.input-search').focus();
262//});
263
264//$('.fa-times').click(function () {
265//    $('body').removeClass('search-active');
266//});
267
268
269//new WOW().init();
270
271
272//$(document).ready(function () {
273//    $('.triggermenu ul.toggle').click(function () {
274//        $(this).toggleClass('active');
275//        $('.triggermenu .fullscreen-menu').toggleClass('active');
276//    })
277//})
278
279
280//$('.owl-carousel2 .item .e-card').on("mouseover", function () {
281//    $('.owl-carousel2 .item .e-card').removeClass('e-active-card');
282
283//    $('.owl-carousel2 .item .e-card').css("margin-top", "15px");
284//    $(this).addClass("e-active-card");
285//    $(this).css("margin-top", "9px");
286
287
288//});
289
290
291//window.onscroll = function myFunction() {
292//    if (window.pageYOffset >= 138) {
293//        $(".main-nav").addClass("sticky")
294//        $("#scroll-top").addClass("d-block")
295//        $("#accessibility").addClass("d-block")
296//    } else {
297//        $(".main-nav").removeClass("sticky")
298//        $("#scroll-top").removeClass("d-block")
299//        $("#accessibility").removeClass("d-block")
300//    }
301//    $("#scroll-top").click(function () {
302//        $(window).scrollTop(0);
303//    });
304
305//    $("#accessibility").click(function () {
306//        $(window).scrollTop(0);
307//    });
308//};
309
310
311////function clickRatingValue(e) {
312////    var link = document.getElementById('btnRate11');
313////    link.click();
314
315////    var rect = e.target.getBoundingClientRect();
316////    var x = e.clientX - rect.left; //x position within the element.
317////    var width = rect.right - rect.left; // element width
318////    var rate = Math.round(((x * 10) / width)) / 2;
319////    $(this).attr('data-rated', rate);
320////    $("#hf1").attr("Value", rate.toString());
321
322////    $(".hb-ratingbar").css("pointer-events", "none");
323////}
324    
325
326////function setRatingValue(e) {
327////    var rect = e.target.getBoundingClientRect();
328////    var x = e.clientX - rect.left; //x position within the element.
329////    var width = rect.right - rect.left; // element width
330////    var rate = Math.round(((x * 10) / width)) / 2;
331////    $(this).attr('data-rated', rate);
332////    $("#hf1").attr("Value", rate.toString());
333
334
335    
336////}
337////$(document).on('click', '.btnRate1', setRatingValue);
338////$(document).on('click', '.hb-ratingbar', clickRatingValue);
339
340//function setRatingValue(e) {
341//    var rect = e.target.getBoundingClientRect();
342//    var x = e.clientX - rect.right; //x position within the element.
343//    var width = rect.left - rect.right; // element width
344//    var rate = Math.round(((x * 10) / width)) / 2
345//    $(this).attr('data-rated', rate);
346//}
347
348//$(document).on('click', '.hb-ratingbar', setRatingValue)
349
350
351
352
353
354//function showPoll() {
355//    setTimeout(function () {
356//        $('.poll-container').fadeIn(2000);
357//    }, 2000);
358//}
359
360//function hidePoll() {
361//    $('.poll-container').fadeOut();
362//}
363//function setPollAnswerRadioName() {
364//    //$('.poll-answer-radio input').attr('name', 'pollAnswerGroup');
365//}
366
367//$(document).ready(function () {
368//    setPollAnswerRadioName();
369
370//    $('.js-close-poll').click(function () {
371//        hidePoll();
372//    });
373//});
374
375
376
377
378    
379
380
381//$('.owl-carousel3').on('initialized.owl.carousel changed.owl.carousel', function (e) {
382
383
384   
385//    if (!e.namespace) {
386//        return;
387//    }
388//    var carousel = e.relatedTarget;
389    
390//    $('.slider-counter').text(carousel.relative(carousel.current()) + 1 + '/' + carousel.items().length);
391//    $('#MainContent_lvServices_divCarousel3Counter_0').addClass("d-none");
392//}).owlCarousel({
393//    items: 1,
394//    loop: true,
395//    margin: 0,
396//    nav: true
397//});
398
399
400
401//var $status = $('.pagingInfo');
402//var $slickElement = $('.stories');
403//var $NoOne = 1;
404
405//$slickElement.on('init reInit afterChange', function (event, slick, currentSlide, nextSlide) {
406//    //currentSlide is undefined on init -- set it to 0 in this case (currentSlide is 0 based)
407//    var i = (currentSlide ? currentSlide : 0) + 1;
408//    $status.text(i + '/' + slick.slideCount);
409
410
411//});
412
413//$slickElement.on('afterChange', function (event, slick, currentSlide, nextSlide) {
414//    $('.divBrowseSiteCounter').addClass("d-none");
415//    $('.pagingInfo').removeClass("d-none");
416
417//});
418
419//$slickElement.slick({
420//    autoplay: true,
421//    dots: true
422//});
423
424//$(document).ready(function() {
425//  $('img').each(function(){
426//    var $img = $(this);
427//    var filename = $img.attr('src')
428//   $img.attr('alt', filename.substring((filename.lastIndexOf('/'))+1, filename.lastIndexOf('.')));
429//  });
430//});
431function setRatingValue(e) {
432    var rect = e.target.getBoundingClientRect();
433    var x = e.clientX - rect.right; //x position within the element.
434    var width = rect.left - rect.right; // element width
435    var rate = Math.round(((x * 10) / width)) / 2
436    $(this).attr('data-rated', rate);
437}
438
439$(document).on('click', '.hb-ratingbar', setRatingValue)

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.