1(function ($) { 2 $('[data-toggle="tooltip"]').tooltip(); 3 jQuery.setValidateForm = function (selector) { 4 if (selector == null) { 5 selector = $(".validate-form"); 6 } 7 if (jQuery().validate) { 8 return selector.each(function (i, elem) { 9 return $(elem).validate({ 10 errorElement: "span", 11 errorClass: "help-block has-error", 12 errorPlacement: function (e, t) { 13 return t.parents(".controls").first().append(e); 14 }, 15 highlight: function (e) { 16 return $(e).closest(".form-group").removeClass("has-error has-success").addClass("has-error"); 17 }, 18 success: function (e) { 19 return e.closest(".form-group").removeClass("has-error"); 20 }, 21 }); 22 }); 23 } 24 }; 25})(jQuery); 26jQuery.setValidateForm(); 27(function ($) { 28 var validator = jQuery.validator || null; 29 if (validator && typeof validator.addMethod === "function") { 30 validator.addMethod( 31 "alphanumericspecial", 32 function (value, element) { 33 return this.optional(element) || value == value.match(/^[-a-zA-Z0-9_ ]+$/); 34 }, 35 "Only letters, Numbers & Space/underscore Allowed." 36 ); 37 validator.addMethod( 38 "alpha", 39 function (value, element) { 40 return this.optional(element) || value == value.match(/^[a-zA-Z]+$/); 41 }, 42 "Only Characters Allowed." 43 ); 44 validator.addMethod( 45 "alphanumeric", 46 function (value, element) { 47 return this.optional(element) || value == value.match(/^[a-z0-9A-Z#]+$/); 48 }, 49 "Only Characters, Numbers & Hash Allowed." 50 ); 51 } 52 ("use strict"); 53 if (jQuery.fn.lightGallery) { 54 jQuery(".image-popup").lightGallery({ selector: "this", cssEasing: "cubic-bezier(0.25, 0, 0.25, 1)", download: false, counter: false }); 55 var jQuerylg = jQuery(".lightgallery"), 56 dlt = jQuerylg.data("looped"); 57 jQuerylg.lightGallery({ selector: ".lightgallery a.popup-image , .lightgallery a.popgal", cssEasing: "cubic-bezier(0.25, 0, 0.25, 1)", download: false, loop: false }); 58 } 59 var $scrollUp = $("#scrollUp"); 60 if ($scrollUp.length) { 61 var syncScrollTopState = function () { 62 $scrollUp.toggleClass("is-visible", $(window).scrollTop() > 400); 63 }; 64 65 syncScrollTopState(); 66 $(window).on("scroll", syncScrollTopState); 67 $scrollUp.on("click", function () { 68 $("html,body").animate({ scrollTop: 0 }, 450); 69 return false; 70 }); 71 } 72 if ($.fn.owlCarousel) { 73 $("#post-thumb, #gallery-post").owlCarousel({ 74 navigation: true, 75 pagination: false,
76 slideSpeed: 800, 77 autoHeight: true, 78 paginationSpeed: 800, 79 singleItem: true, 80 navigationText: ["<i class='fa fa-angle-left fa-2x'></i>", "<i class='fa fa-angle-right fa-2x'></i>"], 81 }); 82 $("#main-features").owlCarousel({ navigation: false, pagination: true, slideSpeed: 800, singleItem: true, transitionStyle: "fadeUp", paginationSpeed: 800 }); 83 $("#testimonial-block").owlCarousel({ slideSpeed: 500, paginationSpeed: 500, singleItem: true, pagination: true, transitionStyle: "backSlide" }); 84 } 85 if ($.fn.sticky && !document.querySelector(".mmr-general-inquiry-page")) { 86 $("#navigation").sticky({ topSpacing: 0 }); 87 } 88 var slideHeight = $(window).height(); 89 $("#slider, .sl-slider, .sl-content-wrapper").css("height", slideHeight); 90 $(window).resize(function () { 91 "use strict", $("#slider, .sl-slider, .sl-content-wrapper").css("height", slideHeight); 92 }); 93 $("#contact-submit").click(function (e) { 94 e.preventDefault(); 95 var error = false; 96 var name = $("#name").val(); 97 var email = $("#email").val(); 98 var subject = $("#subject").val(); 99 var message = $("#message").val(); 100 if (name.length == 0) { 101 var error = true; 102 $("#name").css("border-color", "#D8000C"); 103 } else { 104 $("#name").css("border-color", "#666"); 105 } 106 if (email.length == 0 || email.indexOf("@") == "-1") { 107 var error = true; 108 $("#email").css("border-color", "#D8000C"); 109 } else { 110 $("#email").css("border-color", "#666"); 111 } 112 if (subject.length == 0) { 113 var error = true; 114 $("#subject").css("border-color", "#D8000C"); 115 } else { 116 $("#subject").css("border-color", "#666"); 117 } 118 if (message.length == 0) { 119 var error = true; 120 $("#message").css("border-color", "#D8000C"); 121 } else { 122 $("#message").css("border-color", "#666"); 123 } 124 if (error == false) { 125 $("#contact-submit").attr({ disabled: "false", value: "Sending..." }); 126 $.post("" + ta_script_vars.templateUrl + "/inc/sendmail.php", $("#contact-form").serialize(), function (result) { 127 if (result == "sent") { 128 $("#cf-submit").remove(); 129 $("#mail-success").fadeIn(500); 130 } else { 131 $("#mail-fail").fadeIn(500); 132 $("#contact-submit").removeAttr("disabled").attr("value", "Send The Message"); 133 } 134 }); 135 } 136 }); 137})(jQuery); 138if (typeof WOW !== "undefined") { 139 wow = new WOW({ animateClass: "animated", offset: 120 }); 140 wow.init(); 141} 142(function ($) { 143 $(".about-section #about-item:last-child").find(".wrap-about").addClass("kill-margin-bottom"); 144 $(".counter-section #count-item:last-child").find(".counters-item").addClass("kill-margin-bottom"); 145 $(".services-section #service-item:last-child").find(".service-block").addClass("kill-margin-bottom"); 146 $(".our-team #team-member:last-child").find(".team-mate").addClass("kill-margin-bottom"); 147 $(".pricing-section #single-pricing:last-child").find(".pricing").addClass("kill-margin-bottom"); 148 $(".blog-section #single-blog:last-child").find(".note").addClass("kill-margin-bottom"); 149 $("table#wp-calendar").addClass("table table-striped"); 150 $("select").addClass("form-control"); 151 $(".comment-reply-link").addClass("reply pull-right"); 152 $(".widget_rss ul").addClass("media-list"); 153})(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.