1/* 2 3[Main Script] 4 5Project : USNews - Multipurpose News, Magazine and Blog HTML5 Template 6Author : themelooks.com 7Author URI : https://themeforest.net/user/themelooks 8 9*/ 10; 11(function(b) { 12 var p = b(window), 13 l = b(document), 14 v = b("body"), 15 g = "rtl" === b("html").attr("dir") ? !0 : !1; 16 b(function() { 17 b("[data-bg-img]").each(function() { 18 var a = b(this); 19 a.css("background-image", "url(" + a.data("bg-img") + ")").addClass("bg--img").attr("data-rjs", 2).removeAttr("data-bg-img") 20 }); 21 b("img").attr("data-rjs", 2); 22 retinajs(); 23 b('[data-trigger="sticky"]').each(function() { 24 b(this).sticky({ 25 zIndex: 999 26 }) 27 }); 28 b('[data-toggle="tooltip"]').tooltip(); 29 b("[data-marquee]").marquee({ 30 direction: g ? "right" : "left", 31 delayBeforeStart: 0, 32 duration: g ? 8E3 : 2E4, 33 pauseOnHover: !0, 34 startVisible: !0 35 }); 36 var c = b('[data-zoom="img"]'); 37 c.length && c.zoom(); 38 b('[data-trigger="smoothScroll"]').on("click", function(a) { 39 a.preventDefault(); 40 a.$el = b(this); 41 a.$target = this.hash; 42 b("html, body").animate({ 43 scrollTop: b(a.$target).offset().top - 60 44 }, 1200) 45 }); 46 b('[data-form="validate"]').each(function() { 47 b(this).validate({ 48 errorPlacement: function() { 49 return !0 50 } 51 }) 52 }); 53 b('[data-ajax="tab"]').on("click", "[data-ajax-action]", function(a) { 54 var f = b(this), 55 c = f.parents('[data-ajax="tab"]').siblings('[data-ajax-content="outer"]').find(".preloader"), 56 h = f.attr("href"), 57 d = f.data("ajax-action"); 58 c.fadeIn(); 59 b.post(h, { 60 action: d 61 }, function(b) { 62 c.fadeOut() 63 }); 64 f.parent("li").length && f.parent("li").addClass("active").siblings().removeClass("active"); 65 a.preventDefault() 66 }); 67 b('[data-form="ajax"]').each(function() { 68 var a = b(this), 69 f = a.find(".status"); 70 a.validate({ 71 errorPlacement: function() { 72 return !0 73 }, 74 submitHandler: function(a) { 75 var c = b(a); 76 a = c.attr("action"); 77 c = c.serialize(); 78 b.post(a, c, function(a) { 79 f.show().html(a).delay(3E3).fadeOut("show") 80 }) 81 } 82 }) 83 }); 84 b('[data-form="mailchimpAjax"]').each(function() { 85 b(this).validate({ 86 errorPlacement: function() { 87 return !1 88 }, 89 submitHandler: function(a) { 90 a = b(a); 91 var f = a.children(".status"), 92 c = a.serialize(), 93 h = a.attr("action").replace("/post?", "/post-json?").concat("&c=?"), 94 d = a.find('button[type="submit"] .fa'); 95 f.slideUp("slow"); 96 d.toggleClass(function() { 97 if (d.hasClass("fa-paper-plane-o")) return "fa-paper-plane-o"; 98 if (d.hasClass("fa-close")) return "fa-close"; 99 if (d.hasClass("fa-check")) return "fa-check" 100 }() + " fa-spinner fa-spin"); 101 b.getJSON(h, c, function(a) { 102 a.text = "0" === a.msg.charAt(0) ? a.msg.substring(4) : a.msg; 103 a.fa = "error" === a.result && "0" === 104 a.msg.charAt(0) ? "fa-close" : "fa-check"; 105 f.html("<p>" + a.text + "</p>").slideDown("slow"); 106 d.toggleClass("fa-spinner fa-spin " + a.fa) 107 }) 108 } 109 }) 110 }); 111 112 b(".cart--widget").on("click", ".remove", function(a) { 113 a.preventDefault(); 114 a.$el = b(this); 115 a.$parent = a.$el.parent("li"); 116 a.$el.fadeOut(function() { 117 0 === a.$parent.index() && 0 === a.$parent.next().length ? a.$parent.html("<p>No products in cart.</p>") : 118 a.$parent.remove() 119 }) 120 }); 121 c = b(".fb--widget > iframe"); 122 c.length && c.attr("src", function(a, f) { 123 var c = b(this), 124 d = c.parent().width(); 125 return f = f.replace(c.width(), d) 126 }).attr("width", function() { 127 return b(this).parent().width() 128 }); 129 b('[data-trigger="hoverIntent"]').hoverIntent({ 130 selector: "li.dropdown", 131 over: function() { 132 b(this).addClass("open") 133 }, 134 out: function() { 135 b(this).removeClass("open") 136 }, 137 timeout: 200, 138 interval: 200 139 }); 140 b("[data-countdown]").each(function() { 141 var a = b(this);
142 a.countdown(a.data("countdown"), function(a) { 143 b(this).html("<ul>" + 144 a.strftime("<li><strong>%D</strong><span>DAYS</span></li><li><strong>%H</strong><span>HOURS</span></li><li><strong>%M</strong><span>MINUTES</span></li><li><strong>%S</strong><span>SECONDS</span></li>") + "</ul>") 145 }) 146 }); 147 var e = function(a, b) { 148 for (b = { 149 now: 1, 150 max: b, 151 result: "" 152 }; b.now++ <= b.max;) b.result += "<span></span>"; 153 a.append(b.result) 154 }; 155 b(".preloader--inner").each(function() { 156 var a = b(this); 157 switch (a.parent(".preloader").data("preloader")) { 158 case 6: 159 e(a, 12); 160 break; 161 case 7: 162 e(a, 5); 163 break; 164 case 8: 165 e(a, 4); 166 break; 167 case 9: 168 e(a, 169 9); 170 break; 171 case 10: 172 e(a, 4); 173 break; 174 case "img": 175 a.append('<img src="' + a.parent().data("preloader-img") + '" alt="Preloader Logo">') 176 } 177 }); 178 c = b(".megamenu"); 179 c.on("click", ".dropdown-menu", function(a) { 180 a.stopPropagation() 181 }); 182 c.on("click", ".dropdown-toggle", function(a) { 183 a.$el = b(this); 184 992 > p.width() && (a.$el.parent(".posts").length || a.$el.parent(".filter").length) && (a.preventDefault(), window.location = a.$el.attr("href")) 185 }); 186 c.on("click", ".megamenu--filter a[data-action]", function(a) { 187 var c = b(this), 188 d = c.parents(".megamenu").find(".megamenu--posts .preloader"), 189 h = c.attr("href"), 190 g = c.data("action"), 191 e = c.data("cat"); 192 d.fadeIn(); 193 b.post(h, { 194 action: g, 195 cat: e 196 }, function(response) { 197 $('.headerKategoriList').html(response); 198 d.fadeOut() 199 }); 200 //c.parent("li").addClass("active").siblings().removeClass("active"); 201 a.preventDefault() 202 }); 203 var k = b(".header--search-form"); 204 k.on("click", ".btn", function(a) { 205 k.addClass("active"); 206 setTimeout(function() { 207 k.children(".form-control").trigger("focus"); 208 l.on("click.headerSearchForm", function(a) { 209 a.$target = b(a.target); 210 if (0 === a.$target.not(".header--search-form").length || 0 === a.$target.parents(".header--search-form").length) k.removeClass("active"), 211 l.off("click.headerSearchForm") 212 }) 213 }, 200) 214 }); 215 c = b(".header--navbar"); 216 var h = b(".header--navbar .navbar-toggle"), 217 d = b("#headerNav"); 218 h.on("click", function(a) { 219 setTimeout(function() { 220 l.on("click.headerNavbarToggle", function(a) { 221 a.$target = b(a.target); 222 0 === a.$target.parents("#headerNav").length && (d.removeClass("in"), h.addClass("collapsed"), l.off("click.headerNavbarToggle")) 223 }) 224 }, 200) 225 }); 226 var w = b('[data-sticky-content="true"]'); 227 w.length && w.theiaStickySidebar({ 228 additionalMarginTop: c.length ? c.outerHeight() : 0 229 }); 230 c = b('[data-trigger="map"]'); 231 b.fn.initMap = function() { 232 if ("undefined" !== typeof google) { 233 var a = new google.maps.Map(this[0], { 234 center: { 235 lat: this.data("map-latitude"), 236 lng: this.data("map-longitude") 237 }, 238 zoom: this.data("map-zoom"), 239 scrollwheel: !1, 240 disableDefaultUI: !0, 241 zoomControl: !0 242 }); 243 if ("undefined" !== typeof this.data("map-marker")) { 244 var b = this.data("map-marker"), 245 c = 0; 246 for (c; c < b.length; c++) new google.maps.Marker({ 247 position: { 248 lat: b[c][0], 249 lng: b[c][1] 250 }, 251 map: a, 252 animation: google.maps.Animation.DROP, 253 draggable: !0 254 }) 255 } 256 } 257 }; 258 c.each(function() { 259 b(this).initMap() 260 }); 261 b(".post--map").on("click", ".btn-link", function() { 262 var a = b(this); 263 a.addClass("active"); 264 "undefined" === typeof a.data("map-status") && (a.attr("data-map-status", "loaded"), a.siblings(".map--wrapper").children("div").initMap()); 265 setTimeout(function() { 266 l.on("click.postMap", function(c) { 267 c.$target = b(c.target); 268 if (0 === c.$target.not(".map--wrapper").length || 0 === c.$target.parents(".map--wrapper").length) a.removeClass("active"), l.off("click.postMap") 269 }) 270 }, 200) 271 }); 272 c = b(".contributor--item.style--3"); 273 c.length && c.css("padding-bottom", 274 function() { 275 return b(this).children(".info").outerHeight() 276 }); 277 var m = b(".counter--item"), 278 q = 0; 279 m.length && m.css("height", function(a, b) { 280 b = parseInt(b, 10); 281 q = b > q ? b : q; 282 m.length === a + 1 && m.css("height", q) 283 }); 284 c = b("#productRatingSelect"); 285 c.length && c.barrating({ 286 theme: "fontawesome-stars-o", 287 hoverState: !1 288 }); 289 b(".cart--items").on("click", ".remove", function(a) { 290 a.preventDefault(); 291 a.$el = b(this); 292 a.$parents = a.$el.parent("td").parent("tr"); 293 a.$el.fadeOut(function() { 294 0 === a.$parents.index() && 0 === a.$parents.next().length ? a.$parents.html('<td colspan="6" class="text-left">No products in cart.</td>') : 295 a.$parents.remove() 296 }) 297 }); 298 b(".checkout--info-toggle").on("click", function(a) { 299 a.preventDefault(); 300 b(this).toggleClass("active").parent("p").parent(".title").siblings(".checkout--info-form").slideToggle() 301 }); 302 var r = b(".contact--cats > .nav > li"), 303 n = 0; 304 r.each(function(a) { 305 var c = b(this).outerHeight(); 306 c > n && (n = c); 307 r.length === a + 1 && r.css("min-height", n) 308 }); 309 var t = b(".footer--copyright"), 310 u = t.find(".social"); 311 c = t.children(".social--bg"); 312 g && c.length ? c.css("right", function() { 313 return t.outerWidth() - (u.position().left + u.outerWidth()) 314 }) : 315 !g && c.length && c.css("left", u.position().left); 316 b("#backToTop").on("click", "a", function(a) { 317 a.preventDefault(); 318 b("html, body").animate({ 319 scrollTop: 0 320 }, 1200) 321 }); 322 "undefined" !== typeof b.cColorSwitcher && b.cColorSwitcher({ 323 switcherTitle: "Main Colors:‎", 324 switcherColors: [{ 325 bgColor: "#da0000", 326 filepath: "css/colors/theme-color-1.css" 327 }, { 328 bgColor: "#119ee6", 329 filepath: "css/colors/theme-color-2.css" 330 }, { 331 bgColor: "#179ea8", 332 filepath: "css/colors/theme-color-3.css" 333 }, { 334 bgColor: "#82b440", 335 filepath: "css/colors/theme-color-4.css" 336 }, 337 { 338 bgColor: "#f69323", 339 filepath: "css/colors/theme-color-5.css" 340 }, { 341 bgColor: "#fc5143", 342 filepath: "css/colors/theme-color-6.css" 343 }, { 344 bgColor: "#d48b91", 345 filepath: "css/colors/theme-color-7.css" 346 }, { 347 bgColor: "#8cbeb2", 348 filepath: "css/colors/theme-color-8.css" 349 }, { 350 bgColor: "#00b249", 351 filepath: "css/colors/theme-color-9.css" 352 }, { 353 bgColor: "#924cf3", 354 filepath: "css/colors/theme-color-10.css" 355 } 356 ], 357 switcherTarget: b("#changeColorScheme") 358 }) 359 });
360 p.on("load", function() { 361 var c = function() { 362 1 < p.scrollTop() ? v.addClass("isScrolling") : v.removeClass("isScrolling") 363 }; 364 c(); 365 p.on("scroll", c); 366 c = b(".AdjustRow"); 367 c.length && c.isotope({ 368 originLeft: g ? !1 : !0, 369 layoutMode: "fitRows" 370 }); 371 c = b(".header--navbar .dropdown-menu"); 372 var e = c.children(".dropdown"); 373 c.each(function() { 374 var c = b(this), 375 d = c.parent("li"), 376 e = d.parents(".container").width() - (d.position().left - 15), 377 m = d.position().left - 15 + d.width(); 378 d.parent("ul.nav").length && !d.hasClass("megamenu") && (g && m < c.width() ? d.addClass("dropdown-left") : e < c.width() && d.addClass("dropdown-left")) 379 }); 380 if (e.length) e.on("mouseenter", function() { 381 var c = b(this); 382 "undefined" === typeof c.data("switch") && setTimeout(function() { 383 var b = c.children(".dropdown-menu"), 384 e = c.parents(".dropdown"), 385 h = c.parents(".container").width(), 386 k = e.position().left - 15 + c.width() + b.width(), 387 l = e.position().left - 15 + e.width(), 388 n = c.width() + b.width(); 389 c.addClass(function() { 390 if (g && n > l || !g && k < h) return "switch--right"; 391 if (g && n < l || !g && k > h) return "switch--left" 392 }).attr("data-switch", !0) 393 }, 420) 394 }); 395 e.on("click", ".dropdown-toggle", function(b) { 396 b.preventDefault(); 397 b.stopPropagation() 398 }); 399 var k = b(".google-plus--widget > .g-page"); 400 k.each(function(c) { 401 var d = b(this); 402 d.attr("data-width", d.parent().width()); 403 k.length === c + 1 && "undefined" !== typeof gapi && gapi.page.go() 404 }); 405 c = b(".portfolio--section").find(".portfolio--items"); 406 c.length && c.isotope({ 407 animationEngine: "best-available", 408 itemSelector: ".portfolio--item" 409 }); 410 c = b("#preloader"); 411 c.length && c.fadeOut("slow") 412 }) 413 414 $("#sondakika").owlCarousel({ 415 navigation : false, 416 paginationSpeed : 100, 417 autoPlay: 3000, 418 singleItem : true, 419 pagination : false , 420 items : 1, 421 }); 422 423 424})(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.