PageSourceSearch

https://s.mihnati.com/c/js/rozee.js?ver=20260929135133

js mihnati.com collected 2026-10-02 02:33:11 UTC 33,451 bytes, 1,044 lines download raw bytes

1/* Download App */
2
3var dApp = $("#download-dropdown");
4$("#header-apps-link").parents("li").hover(function () {
5    // alert();
6    dApp.show();
7}, function () {
8    dApp.hide();
9});
10/* SEARCH SUGGETSER*/
11var total, act;
12function fblur(e) {
13
14    setTimeout(function () {
15        if ($("#sugDrp_autoComplete div.Sbtn.active").length == 0) {
16            $("#sugDrp_autoComplete").hide();
17        }
18    }, 300);
19
20}
21$("body").click(function (event) {
22    var target = event.target;
23    /*if ($("#sugDrp_autoComplete").is(":visible")) {
24     $("#sugDrp_autoComplete").hide();
25     }*/
26    if ($(".socSug").is(":visible")) {
27        $(".socSug").hide();
28    }
29});
30function fSugg(e) {
31
32    if (e.keyCode == 40) {
33        act = 0;
34        total = $('.Sbtn').length;
35        if ($("#sugDrp_autoComplete").is(":visible")) {
36            $("input").blur();
37            $("#sugDrp_autoComplete div.Sbtn").removeClass("active");
38            $("#sugDrp_autoComplete div.Sbtn:first").focus().addClass("active");
39
40        }
41        return false;
42    } else if (e.keyCode == 38) {
43        total = $('.Sbtn').length;
44        act = total;
45        if ($("#sugDrp_autoComplete").is(":visible")) {
46            $("input").blur();
47            $("#sugDrp_autoComplete div.Sbtn").removeClass("active");
48            $("#sugDrp_autoComplete div.Sbtn:last").focus().addClass("active");
49        }
50    }
51}
52
53$("#sugDrp_autoComplete li").keydown(function (e) {
54    total = $('.Sbtn').length;
55    if (e.keyCode == 40) {
56        $("#sugDrp_autoComplete div.Sbtn").removeClass("active");
57        if (act == total) {
58            act = 0;
59            //console.log(total+'---'+act);
60            $("#sugDrp_autoComplete div.Sbtn").eq(act).focus().addClass("active");
61        } else {
62            $("#sugDrp_autoComplete div.Sbtn").eq(act + 1).focus().addClass("active");
63            act = act + 1;
64        }
65        return false;
66    } else if (e.keyCode == 38) {
67        $("#sugDrp_autoComplete div.Sbtn").removeClass("active");
68        if (act == 0) {
69            act = total;
70            //console.log(total+'---'+act);
71            $("#sugDrp_autoComplete div.Sbtn").eq(act - 1).focus().addClass("active");
72        } else {
73            $("#sugDrp_autoComplete div.Sbtn").eq(act - 1).focus().addClass("active");
74            act = act - 1;
75        }
76        return false;
77    } else if (e.keyCode == 13) {
78
79        $("#sugDrp_autoComplete .Sbtn.active").trigger("click");
80    } else if (e.keyCode == 9) {
81        $("#sugDrp_autoComplete").hide();
82
83    }
84
85});
86$(document).ready(function () {
87    if ($("#flexiselVid01").length) {
88        $("#flexiselVid01").flexisel({
89            visibleItems: 6,
90            animationSpeed: 400,
91            autoPlay: true,
92            autoPlaySpeed: 2000,
93            pauseOnHover: true,
94            enableResponsiveBreakpoints: true,
95            responsiveBreakpoints: {
96                laptop: {
97                    changePoint: 1366,
98                    visibleItems: 6
99                },
100                small: {
101                    changePoint: 1280,
102                    visibleItems: 5
103                },
104                desktop: {
105                    changePoint: 1024,
106                    visibleItems: 4
107                },
108                portrait: {
109                    changePoint: 480,
110                    visibleItems: 2
111                },
112                landscape: {
113                    changePoint: 640,
114                    visibleItems: 2
115                },
116                tablet: {
117                    changePoint: 768,
118                    visibleItems: 3
119                },
120                mobile: {
121                    changePoint: 375,
122                    visibleItems: 1
123                }
124            }
125        });
126    }
127    var bannerCount = $('#matchingJobs li').length;
128    $('a[href="#"]').click(function (event) {
129        event.preventDefault();
130    });
131
132    $(".pProfile .cwrapper .user-info .media .avatar").hover(function () {
133        $(".pProfile .cwrapper .changec").addClass("hide");
134    }, function () {
135        $(".pProfile .cwrapper .changec").removeClass("hide");
136
137    });
138
139
140//top job border	
141
142    /*-------------------------------------------------*/
143    /* =  SearchBar 
144     /*-------------------------------------------------*/
145    var Direction = $('html').attr("dir");
146    var searchOpen = false;
147    var searchTrigger = $(".open-search");
148    var body = $('body');
149    var searchBar = '.searchbar';
150    var searchForm = $('#SearchForm');
151    var searchField = $('.formcl');
152    var dirc = (Direction == "rtl" ? "marginRight" : "marginLeft");
153    body.click(function (event) {
154        var target = event.target;
155        if ($(target).parents(searchBar).length < 1 && searchOpen == true) {
156            searchOpen = false;
157            Slide("500px", $(searchField).find("input"), true);
158            searchTrigger.removeClass("active");
159        }
160    });
161    searchTrigger.click(function (event) {
162        //alert(dirc);
163        if (searchOpen) {
164            searchForm.submit();
165        } else {
166            searchField.show();
167            searchOpen = true;
168            //$(searchField).find("input").focus();
169
170            Slide("0px", $(searchField).find("input"), false);
171            $(this).addClass("active");
172            $('#homeSearch').focus();
173
174        }
175        event.preventDefault();
176    });
177    function Slide(width, selc, close) {
178        if (Direction == "rtl") {
179            selc.animate({
180                marginRight: width
181            }, 500, function () {
182                if (close) {
183                    searchField.hide();
184                } else {
185                    selc.focus();
186                }
187            });
188        } else {
189
190            selc.animate({
191                marginLeft: width
192            }, 500, function () {
193                if (close) {
194                    searchField.hide();
195                } else {
196                    selc.focus();
197                }
198            });
199        }
200
201    }
202
203    /*-------------------------------------------------*/
204    /* = Typeahead
205     /*-------------------------------------------------*/
206
207    var $tinput = $(".typeahead");
208    $tinput.each(function () {
209        $this = $(this);
210        var $data = $.parseJSON($this.attr("data-value"));
211        $this.typeahead({source: $data, autoSelect: true});
212    });
213    /*-------------------------------------------------*/
214    /* =  Company Logo Slider
215     /*-------------------------------------------------*/
216    try {
217        $("#flexiselDemo3").flexisel({
218            visibleItems: 9,
219            animationSpeed: 400,
220            autoPlay: false,
221            autoPlaySpeed: 2000,
222            pauseOnHover: true,
223            enableResponsiveBreakpoints: true,
224            responsiveBreakpoints: {
225                laptop: {
226                    changePoint: 1366,
227                    visibleItems: 8
228                },
229                small: {
230                    changePoint: 1280,
231                    visibleItems: 7
232                },
233                desktop: {
234                    changePoint: 1024,
235                    visibleItems: 4
236                },
237                portrait: {
238                    changePoint: 480,
239                    visibleItems: 2
240                },
241                landscape: {
242                    changePoint: 640,
243                    visibleItems: 3
244                },
245                tablet: {
246                    changePoint: 768,
247                    visibleItems: 4
248                },
249                mobile: {
250                    changePoint: 375,
251                    visibleItems: 1
252                }
253            }
254        });
255        $("#flexiselDemo03").flexisel({
256            visibleItems: 5,
257            animationSpeed: 400,
258            autoPlay: true,
259            autoPlaySpeed: 2000,
260            pauseOnHover: true,
261            enableResponsiveBreakpoints: true,
262            responsiveBreakpoints: {
263                laptop: {
264                    changePoint: 1366,
265                    visibleItems: 5
266                },
267                small: {
268                    changePoint: 1280,
269                    visibleItems: 5
270                },
271                desktop: {
272                    changePoint: 1024,
273                    visibleItems: 4
274                },
275                portrait: {
276                    changePoint: 480,
277                    visibleItems: 2
278                },
279                landscape: {
280                    changePoint: 640,
281                    visibleItems: 2
282                },
283                tablet: {
284                    changePoint: 768,
285                    visibleItems: 3
286                },
287                mobile: {
288                    changePoint: 375,
289                    visibleItems: 1
290                }
291            }
292        });
293
294
295        $(window).on('load', function () {
296            $("#flexiselDemo4").flexisel({
297                visibleItems: 4,
298                animationSpeed: 500,
299                autoPlay: true,
300                autoPlaySpeed: 3000,
301                pauseOnHover: true,
302                enableResponsiveBreakpoints: true,
303                responsiveBreakpoints: {
304                    laptop: {
305                        changePoint: 1366,
306                        visibleItems: 4
307                    },
308                    small: {
309                        changePoint: 1280,
310                        visibleItems: 4
311                    },
312                    desktop: {
313                        changePoint: 1024,
314                        visibleItems: 3
315                    },
316                    portrait: {
317                        changePoint: 481,
318                        visibleItems: 1
319                    },
320                    landscape: {
321                        changePoint: 640,
322                        visibleItems: 2
323                    },
324                    tablet: {
325                        changePoint: 768,
326                        visibleItems: 2
327                    },
328                    mobile: {
329                        changePoint: 375,
330                        visibleItems: 1
331                    }
332                }
333            });
334
335
336
337
338            $('#flexiselDemo4 li').bind("DOMSubtreeModified", function () {
339                $('[data-toggle="tooltip"]').tooltip({
340                    html: true
341                });
342            });
343
344
345
346        });
347
348    } catch (e) {
349
350    }
351
352    /*-------------------------------------------------*/
353    /* =  Home Page Form AutoComlete (Job Title, Location)
354     /*-------------------------------------------------*/
355
356    var jobTitle = [
357        "ActionScript",
358        "AppleScript",
359        "Asp",
360        "BASIC",
361        "C",
362        "C++",
363        "Clojure",
364        "COBOL",
365        "ColdFusion",
366        "Erlang",
367        "Fortran",
368        "Groovy",
369        "Haskell",
370        "Java",
371        "JavaScript",
372        "Lisp",
373        "Perl",
374        "PHP",
375        "Python",
376        "Ruby",
377        "Scala",
378        "Scheme"
379    ];
380//    $("#job_title").autocomplete({
381//        source: jobTitle
382//    });
383    //channels mobile tabls active class removal
384    $(".dropdown-menu a ").click(function () {
385        $(".dropdown-menu li.active").removeClass("active");
386    });
387
388
389    $(".selectpicker").each(function () {
390        $(this).attr('style', 'display:none!important;');
391        $(this).selectpicker({
392            dropupAuto: false
393        });
394    });
395
396    $(".textinput input").change(function () {
397        if ($(this).val() != "") {
398            $(this).addClass('filled');
399        } else {
400            $(this).removeClass('filled');
401        }
402    });
403
404    /*-------------------------------------------------*/
405    // Hiring Dashboard  Start
406    /*-------------------------------------------------*/
407    /*$(".dbnwappimgs img").click(function () {
408     $(this).parent().find(".imgactive").removeClass("imgactive");
409     $(this).addClass("imgactive");
410     $(".dbnwapp_dtl").removeClass("hide");
411     $(".dbnwaplinks").removeClass("hide");
412     });
413     
414     $('[data-toggle="tooltip"]').tooltip();
415     
416     $(".cntshow_more").click(function () {
417     $cntbxhght = $(this).parent().parent().find(".cntrow").length * 70;
418     $(this).parent().parent().find(".cntrow").animate({"max-height": "1000px"}, 300, function () {
419     $(this).parent().find(".cntshow_more").addClass("hide");
420     $(this).parent().find(".cntshow_less").removeClass("hide");
421     });
422     });
423     $(".cntshow_less").click(function () {
424     $(this).parent().parent().find(".cntrow").animate({"max-height": "70"}, 300, function () {
425     $(this).parent().find(".cntshow_less").addClass("hide");
426     $(this).parent().find(".cntshow_more").removeClass("hide");
427     });
428     });
429     
430     $("#sndmsgbtn").submit(function () {
431     $('#sendMessage').modal('hide');
432     $(".dbsndmsgalrt").fadeIn(400).fadeOut(5000);
433     return false;
434     });
435     
436     $("#dbshrtlstlnk").click(function () {
437     $("#dbshrtlstlnk").fadeOut(400);
438     $("#dbshrtlstldr").fadeIn(400);
439     $(".dbshrtlstmsg").fadeIn(400);
440     $(".dbshrtlstmsg").fadeOut(5000);
441     $("#dbshrtlstlnk").fadeIn(10000);
442     });*/
443
444
445    /*-------------------------------------------------*/
446    // Hiring Dashboard  End
447    /*-------------------------------------------------*/
448});
449
450
451
452
453$(document).on('keyup', '#EmailFrndForm #from', function () {
454    if (isEmail($(this).val())) {
455        $(this).css('border-color', 'green');
456    } else {
457        $(this).css('border-color', 'red');
458    }
459});
460
461$(document).on('keyup', '#EmailFrndForm #to', function () {
462    var tos = $(this).val().split(/,\s*|;\s*/);
463    if (tos.length > 0 && tos.length < 4) {
464        for (i = 0; i < tos.length; i++) {
465            if (isEmail(tos[i])) {
466                $(this).css('border-color', 'green');
467            } else {
468                $(this).css('border-color', 'red');
469            }
470        }
471    } else {
472        $(this).css('border-color', 'red');
473    }
474});
475$(document).on('keyup', '#EmailFrndForm #name, #EmailFrndForm #subject, #EmailFrndForm #message', function () {
476    if ($(this).val().length > 1) {
477        $(this).css('border-color', 'green');
478        $('#EmailFrndForm').find('#validationFailed').hide();
479    } else {
480        $(this).css('border-color', 'red');
481    }
482});
483$('#EmailFrndForm').on('submit', function (event) {
484    event.preventDefault();
485    $('#EmailFrndForm').find('#validationFailed').slideUp();
486    var valid = true;
487    var name = $(this).find('#name');
488    var from = $(this).find('#from');
489    var to = $(this).find('#to');
490    var subject = $(this).find('#subject');
491    var message = $(this).find('#message');
492    var recaptcha = $(this).find('#g-recaptcha-response');
493    var sendText = $(this).find('#submit.btn').text();
494
495    if (name.val().length > 1) {
496        name.css('border-color', 'green');
497    } else {
498        name.css('border-color', 'red');
499        valid = false;
500    }
501    if (isEmail(from.val())) {
502        from.css('border-color', 'green');
503    } else {
504        from.css('border-color', 'red');
505        valid = false;
506    }
507    var tos = to.val().split(/,\s*|;\s*/);
508    if (tos.length > 0 && tos.length < 4) {
509        for (i = 0; i < tos.length; i++) {
510            if (isEmail(tos[i])) {
511                to.css('border-color', 'green');
512            } else {
513                to.css('border-color', 'red');
514                valid = false;
515            }
516        }
517    } else {
518        to.css('border-color', 'red');
519        valid = false;
520    }
521
522    if (subject.val().length > 1) {
523        subject.css('border-color', 'green');
524    } else {
525        subject.css('border-color', 'red');
526        valid = false;
527    }
528    if (message.val().length > 1) {
529        message.css('border-color', 'green');
530    } else {
531        message.css('border-color', 'red');
532        valid = false;
533    }
534
535    if (recaptcha.length > 0) {
536        if (recaptcha.val().length > 1) {
537            recaptcha.prev().css('border', '');
538        } else {
539            recaptcha.prev().css('border', '1px solid red');
540            valid = false;
541        }
542    }
543    if (valid) {
544        var data = $(this).serialize();
545        $(this).find('input, textarea, button').attr('disabled', true);
546        $(this).find('#submit.btn').text('Sending...');
547        $('#EmailFrndForm').find('.alert').slideUp();
548        $.post(ajax_url + 'job/emailtofriend', data, 'json').done(function (response) {
549            if (response.success) {
550                $('#EmailFrndForm').find('#submit.btn').text(sent);
551                $('#EmailFrndForm').find('#emailFrndSuccess').slideDown();
552                setTimeout(function () {
553                    $('#EmailFrndForm').find('input, textarea, button').attr('disabled', false);
554                    $('#EmailFrndForm')[0].reset();
555                    if (typeof grecaptcha == 'object') {
556                        grecaptcha.reset();
557                    }
558                    $('#EmailFrnd').modal('hide');
559                    $('#emailFrndSuccess').slideUp();
560                }, 5000);
561            } else {
562                $('#EmailFrndForm').find('#emailFrndFailed').slideDown();
563                $('#EmailFrndForm').find('#submit.btn').text(sendText);
564                $('#EmailFrndForm').find('input, textarea, button').attr('disabled', false);
565            }
566        }).fail(function () {
567            $('#EmailFrndForm').find('#emailFrndFailed').slideDown();
568            $('#EmailFrndForm').find('#submit.btn').text(sendText);
569            $('#EmailFrndForm').find('input, textarea, button').attr('disabled', false);
570        });
571    } else {
572        $('#EmailFrndForm').find('#validationFailed').slideDown();
573    }
574    return false;
575});
576
577function split(val) {
578    return val.split(/,\s*/);
579}
580function extractLast(term) {
581    return split(term).pop();
582}
583/*-------------------------------------------------*/
584/* =  TVC
585 /*-------------------------------------------------*/
586function showTVC(a, s)
587{
588
589    if (a == 's')
590    {
591        jQuery('#tvcoverlay').show();
592        jQuery('#tvcvideoCnt').html(VideoCodeUnique);
593    } else
594    {
595        if (s == '1') {
596            jQuery('#tvcvideoCnt1').html('');
597            jQuery('#tvcoverlay1').hide();
598
599        } else {
600            jQuery('#tvcvideoCnt').html('');
601            jQuery('#tvcoverlay').hide();
602        }
603    }
604}
605
606function showVideo(a, b, c, d, controls)
607{
608//console.log(a);
609//console.log(b);
610//console.log(c);
611    var controls = controls * 1 || 0;
612    if (c !== undefined)
613        var video2show = '<iframe width="580" height="380" frameborder="0" src="' + c + '?autoplay=1&amp;loop=0&amp;rel=0&amp;title=0&amp;byline=0&amp;portrait=0&amp;like-button=0&amp;likeO=0&controls=' + controls + '&showinfo=0" webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe>';
614    else
615        return false;
616
617    //console.log(video2show);
618
619    jQuery('#tvcoverlay').show();
620    jQuery('#tvcvideoCnt').html(video2show);
621
622    var params = {};
623
624    params.site = a;
625    params.type = b;
626    params.url = c;
627    params.where = d;
628
629    var url = ajax_url + 'site/setVideoStats';
630    xhrRequest(url, 'post', params, function (resp) {
631        if (resp.status == true) {
632            //console.log("record saved");
633        } else {
634            //console.log("something going wrong");
635        }
636    });
637
638
639}
640/*-------------------------------------------------*/
641/* =  OverLay
642 /*-------------------------------------------------*/
643
644$('.modalc').click(function () {
645    var target = $(this).attr("data-target");
646    openOverlay(target);
647});
648//$(document).keyup(function (e) {
649//    if (e.keyCode == 27) { // escape key maps to keycode `27`
650//        closeOverlay('.moverlay');
651//    }
652//});
653function closeOverlay(target) {
654    $(target).html("").fadeOut();
655    $('body').removeClass("blur");
656    $(window).scrollTop("0px");
657}
658
659function openOverlay(target, req) {
660    if (req == undefined) {
661        req = true;
662    }
663//  alert(target);
664    closeOverlay('.moverlay');
665    $("#OverlayFl").fadeIn();
666    $('body').addClass("blur");
667    //$("#OverlayFl").html("<div class='spinner-wrapper-gray overLoading center-block'><div class='spinner'></div></div>");
668
669    if (req) {
670        $.get(target, function (data) {
671
672            var tg = "'.moverlay'";
673            $("#OverlayFl").html('  <div class="mclose" onclick="closeOverlay(' + tg + ');"><a class="cbtn" href="#" > </a></div>' + data);
674            //alert( "Load was performed." );
675        });
676    } else {
677        var tg = "'.moverlay'";
678        $("#OverlayFl").html('  <div class="mclose" onclick="closeOverlay(' + tg + ');"><a class="cbtn" href="#" > </a></div>' + target);
679        //alert( "Load was performed." );
680    }
681    return false;
682}
683
684
685/////Email validation
686
687
688function isEmail(email) {
689    var regex = /^([a-zA-Z0-9_.+-])+\@(([a-zA-Z0-9-])+\.)+([a-zA-Z0-9]{2,4})+$/;
690    return regex.test(email);
691
692}
693
694/*$("#jobSkills").autocomplete({
695 
696 //    appendTo: $('#jobSkills').parent(),
697 source: function (request, response) {
698 $.getJSON(ajax_url + 'site/jskills', {
699 skillName: extractLast(request.term)
700 }, response);
701 }
702 //   ,
703 //    select: function (event, ui) {
704 //        var terms = split(this.value);
705 //        var ids = split($('#degreeMajorID').val());
706 //        // remove the current input
707 //        terms.pop();
708 //        ids.pop();
709 //        // add the selected item
710 //        terms.push(ui.item.value);
711 //        ids.push(ui.item.id);
712 //        // add placeholder to get the comma-and-space at the end
713 //        terms.push('');
714 //        ids.push('');
715 //        this.value = terms.join(', ');
716 //        $('#degreeMajorID').val(ids.join(', '));
717 //        return false;
718 //}
719 });*/
720
721
722/*-------------------------------------------------*/
723/* =  FitText
724 /*-------------------------------------------------*/
725
726
727
728
729
730$(function () {
731    // Trigger Tooltip
732    $('[data-toggle="tooltip"]').tooltip({
733        html: true
734    });
735
736    //Trigger Popovero
737    $('[data-toggle="popover"]').popover({html: true, placement: "auto"});
738
739});
740
741
742/*-------------------------------------------------*/
743/* =  Hiring Signup Form
744 /*-------------------------------------------------*/
745
746
747
748
749var popUpWin = pwmkm = 0;
750function puWin(URLStr, left, top, width, height)
751{
752    if (URLStr == '') {
753        console.warn('Given URL is empty');
754        return;
755    }
756    if (popUpWin)
757    {
758        if (!popUpWin.closed)
759            popUpWin.close();
760    }
761    popUpWin = open(URLStr, 'popUpWin', 'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars,resizable=yes,copyhistory=yes,width=' + width + ',height=' + height + ',left=' + left + ', top=' + top + ',screenX=' + left + ',screenY=' + top);
762    return popUpWin;
763}
764
765function puWinCenter(URLStr, left, top, width, height)
766{
767    if (popUpWin)
768    {
769        if (!popUpWin.closed)
770            popUpWin.close();
771    }
772    left = (screen.width / 2) - (755 / 2);
773    popUpWin = open(URLStr, 'popUpWin', 'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars,resizable=yes,copyhistory=yes,width=' + width + ',height=' + height + ',left=' + left + ', top=' + top + ',screenX=' + left + ',screenY=' + top);
774
775}
776
777
778/*-------------------------------------------------*/
779/* =  Job Analytics Start
780 /*-------------------------------------------------*/
781$(document).ready(function () {
782
783    $(".jareadFull").click(function () {
784        $(this).parent().find(".jareadFull").addClass("hide");
785        $(this).parent().find(".jareadLess").removeClass("hide");
786        $(this).parent().find(".jobdetail").animate({"max-height": "1000px"}, 300, function () {
787
788        });
789        event.preventDefault();
790    });
791    $(".jareadLess").click(function () {
792        $(this).parent().find(".jareadLess").addClass("hide");
793        $(this).parent().find(".jareadFull").removeClass("hide");
794        $(this).parent().find(".jobdetail").animate({"max-height": "60px"}, 300, function () {
795
796        });
797        event.preventDefault();
798    });
799
800    $addcomp_counter = 0;
801    $(".add_comp_1").click(function () {
802        $(".salsrc_1, .vwsallink_1, .delcomp_1").removeClass("hide");
803        $(".add_comp_1, .add_comp_2").addClass("hide");
804    });
805
806    $(".vwsallink_1").click(function () {
807        $(".scndrw, .delcomp_1").removeClass("hide");
808    });
809
810    $(".delcomp_1").click(function () {
811        $(".scndrw, .vwsallink_1, .salsrc_1, .add_comp_2").addClass("hide");
812        $(".add_comp_1").removeClass("hide");
813    });
814
815    $('.helptooltip').tooltip();
816    $('[data-toggle="tooltip"]').tooltip();
817
818
819
820    $(".fakeFile").each(function () {
821        var $this = $(this),
822                $browse = $this.children(".browse"),
823                $file = $this.prev("input");
824        if (/*@cc_on!@*/false) {
825            $file
826                    .parent().addClass("isIE")
827                    .end()
828                    .bind({
829                        click: function (e) {
830                            $(this).blur();
831                        },
832                        mousedown: function () {
833                            $browse.addClass("active");
834                        },
835                        mouseup: function () {
836                            $browse.removeClass("active");
837                        },
838                        mouseover: function () {
839                            $browse.addClass("hover");
840                        },
841                        mouseout: function () {
842                            $browse.removeClass("hover active");
843                        },
844                        change: function () {
845                            $(this).next().children(".text").text($(this).val());
846                        }
847                    });
848        } else {
849            $this.bind({
850                click: function (e) {
851                    $file.trigger("click");
852                },
853                mousedown: function () {
854                    $browse.addClass("active");
855                },
856                mouseup: function () {
857                    $browse.removeClass("active");
858                },
859                mouseover: function () {
860                    $browse.addClass("hover");
861                },
862                mouseout: function () {
863                    $browse.removeClass("hover active");
864                }
865            });
866            $file.change(function () {
867                $this.children(".text").text($(this).val());
868            });
869        }
870    });
871
872    $(".upldform").click(function () {
873        $(".jacanfrm").fadeIn();
874    });
875
876    $("#crtcand").submit(function () {
877        $('#crtcand').fadeOut("fast");
878        $(".crtcanmsg").fadeIn(400).fadeOut(5000);
879        return false;
880    });
881
882});
883
884/*function htmlEntities(str) {
885 return String(str).replace(/&/g, '&amp;').replace(/</g, '&lt;').replace(/>/g, '&gt;').replace(/"/g, '&quot;');
886 }
887 
888 var oJQHTML = $.fn.html;
889 $.fn.html = function(){
890 arguments[0] = '<strong>'+arguments[0]+'</strong>';
891 console.log(arguments);
892 arguments[0] = htmlEntities(arguments[0]);
893 console.log(arguments);
894 oJQHTML.apply(this,arguments);
895 }*/
896function strip_tags(input, allowed) {
897    allowed = (((allowed || '') + '').toLowerCase().match(/<[a-z][a-z0-9]*>/g) || []).join(''); // making sure the allowed arg is a string containing only tags in lowercase (<a><b><c>)
898    var tags = /<\/?([a-z][a-z0-9]*)\b[^>]*>/gi;
899    var commentsAndPhpTags = /<!--[\s\S]*?-->|<\?(?:php)?[\s\S]*?\?>/gi;
900    var response =  input?.toString()?.replace(commentsAndPhpTags, '').replace(/&nbsp;/gi, " ").replace(/&middot;/gi, ".").replace(tags, function ($0, $1) {
901                        return allowed.indexOf('<' + $1.toLowerCase() + '>') > -1 ? $0 : '';
902                    });
903    return response;
904}
905/*-------------------------------------------------*/
906/* =  Job Analytics End
907 /*-------------------------------------------------*/
908
909/*-------------------------------------------------*/
910/* =  Job Analytics Start
911 /*-------------------------------------------------*/
912$(document).ready(function () {
913
914    $('.tempcarousel').carousel({
915        pause: true,
916        interval: false
917    });
918
919//    $("#usetemp").click(function () {
920//        $(".usetempcont").fadeIn();
921//        $("#usetemp").fadeOut();
922//    });
923
924    $("#tempcls").click(function () {
925        $(".usetempcont").fadeOut();
926        $("#usetemp").fadeIn();
927    });
928
929    $(".tempsel").click(function () {
930        $seldtemptxt = $(this).parents(".usetempcont").find(".active").find("[name=jobTpl]").html();
931        $oritxt = $(".jbdescfld").val();
932        $(".jbdescfld").val($seldtemptxt);
933        $(".usetempcont").fadeOut();
934        $("#usetemp").fadeIn();
935    });
936
937    $("#pstdjb_title").focusout(function () {
938        $(".mtcproffnnd").removeClass("hide");
939    });
940
941    $('.collapse').on('shown.bs.collapse', function () {
942        $(this).parent().find(".tbplusicon").removeClass("tbplusicon").addClass("tbminusicon");
943    }).on('hidden.bs.collapse', function () {
944        $(this).parent().find(".tbminusicon").removeClass("tbminusicon").addClass("tbplusicon");
945    });
946
947    $(".rpboxpdg .tab-content .panel-body").each(function () {
948        $(this).find(".cvpckgchkbx").first().prop("checked", true);
949    });
950    if ($('#recentSearches').length > 0) {
951        updateRecentSearchesCount();
952    } else {
953        showRecentSearches();
954    }
955});
956
957
958
959/*-------------------------------------------------*/
960/* =  Job Analytics End
961 /*-------------------------------------------------*/
962
963function saveRecentSearch(keyword, count) {
964    var completeurl = window.location.toString();
965	var queryStringF;
966	var queryString;
967	var qryS;
968    if(completeurl.includes('job/jsearch/'))
969       queryString = completeurl.split(site_url + 'job/jsearch/');
970    else
971       queryString = completeurl.split(site_url + 'search/');
972   
973   qryS = queryString[1];
974    if(qryS.includes('?')){
975       queryStringF = qryS.split('?')[0];
976    } else {
977	   queryStringF = qryS;  
978    }
979
980    var currentSearch = {'keyword': keyword, 'queryString': queryStringF, 'count': count};
981    var searchParams = queryStringF.split('/');
982    if (searchParams.length > 2) { // if any facets are set other than q
983        for (var i = 0; i < searchParams.length; i++) {
984            currentSearch[searchParams[i++]] = searchParams[i];
985        }
986    }
987
988    var recentSearches = JSON.parse(localStorage.getItem('recentSearches')) || [];
989    if (Array.isArray(recentSearches)) {
990        recentSearches = recentSearches.slice(0, 9); // limit to 10 items
991    }
992    var i = 0;
993    for (var item of recentSearches) {
994        if (item.keyword.toLowerCase() == keyword.toLowerCase()) { // remove if keyword already exists in the array
995            recentSearches.splice(i, 1);
996        }
997        i++;
998    }
999    recentSearches.unshift(currentSearch);// push keyword at the beginning of the array
1000    localStorage.setItem('recentSearches', JSON.stringify(recentSearches));
1001}
1002
1003function showRecentSearches() {
1004    var recentSearches = JSON.parse(localStorage.getItem('recentSearches')) || [];
1005    if (recentSearches.length > 0) {
1006        var list = $('#recentSearches').empty(); // list khali karo...
1007        for (var item of recentSearches) {
1008            var queryString = item.queryString || 'q/' + escape(item.keyword.toLowerCase());
1009            var link = site_url + 'job/jsearch/' + queryString;
1010            var li = $('<li/>').appendTo(list);
1011            var a = $('<a/>')
1012                    .text(item.keyword)
1013                    .attr('href', link)
1014                    .appendTo(li);
1015            var count = $('<a/>')
1016                    .text('- ' + item.count + ' ' + (item.count > 1 ? txtJobs : txtJob))
1017                    .attr('href', link)
1018                    .appendTo(li);
1019        }
1020        $('.rSrchBx').removeClass('inActive');
1021    }
1022}
1023function updateRecentSearchesCount() {
1024    var recentSearches = JSON.parse(localStorage.getItem('recentSearches')) || [];
1025    if (Array.isArray(recentSearches)) {
1026        recentSearches = recentSearches.slice(0, 9); // limit to 10 items
1027    }
1028
1029    $.post(ajax_url + 'job/getJobsCount', {'searches': recentSearches}, 'json').done(function (response) {
1030        if (response.success) {
1031            var searches = response.searches;
1032            var searchedRemaped = [];
1033            $.each(searches,function(index, value) {
1034                searchedRemaped.push(value);
1035            });
1036            
1037            localStorage.setItem(
1038              "recentSearches",
1039              JSON.stringify(searchedRemaped)
1040            );
1041            showRecentSearches();
1042        }
1043    });
1044}

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.