1var $ = jQuery.noConflict(); 2 3$(document).ready(function ($) { 4 "use strict"; 5 6 7 8 9 /*-------------------------------------------------*/ 10 /* = Sliders - [Flexslider] 11 /*-------------------------------------------------*/ 12 13 jQuery(window).load(function ($) { 14 15 jQuery("ul#ticker01").show(); 16 jQuery("ul#ticker01").liScroll({ travelocity: 0.07 }) 17 18 19 20 }); 21 22 23 24 //Check Also Box 25 26 27 28 jQuery(function () { 29 30 var $the_post = jQuery(".post-listing"); 31 var $window = jQuery(window); 32 33 var $check_also_box = jQuery("#check-also-box"); 34 if ($check_also_box.length > 0) { 35 36 var articleHeight = $the_post.outerHeight(); 37 var checkAlsoClosed = false; 38 39 $window.scroll(function () { 40 if (!checkAlsoClosed) { 41 var articleScroll = jQuery(document).scrollTop(); 42 if (articleScroll > articleHeight) { $check_also_box.addClass('show-check-also'); } 43 else { $check_also_box.removeClass('show-check-also'); } 44 } 45 }); 46 } 47 jQuery('#check-also-close').on( "click",function () { 48 $check_also_box.removeClass("show-check-also"); 49 checkAlsoClosed = true; 50 return false; 51 }); 52 }); 53 54 55 56 57 58 //search-buttons 59 $('.search-buttons .search-icon').on( "click",function () { 60 $(this).parent().toggleClass('active'); 61 return false; 62 }); 63 64 65 66 67 68 // Fit videos to container 69 if ($.fn.fitVids) { 70 $('.sidebar_content').fitVids(); 71 } 72 73 ////////////////////////////////////////////////////////////////////////// 74 // Go to top 75 ////////////////////////////////////////////////////////////////////////// 76 77 jQuery(window).scroll(function () { 78 if (jQuery(this).scrollTop() > 100) { 79 jQuery('#go-top').css({ bottom: "15px" }); 80 } else { 81 jQuery('#go-top').css({ bottom: "-100px" }); 82 83 } 84 }); 85 jQuery('#go-top').on( "click",function () { 86 jQuery('html, body').animate({ scrollTop: '0px' }, 800); 87 return false; 88 }); 89 90 91 $('.more.sharing-link').on( "click",function () { 92 jQuery('.share-mask').toggleClass('active'); 93 jQuery('.more.sharing-link').toggleClass('is-active'); 94 return false; 95 }); 96 97 98 99 /** 100 * Share Buttons : Print 101 */ 102 $(document).on('click', '.sharing-link.print', function () { 103 window.print(); 104 return false; 105 }); 106 107 108 109 /** 110 * Open Share buttons in a popup 111 */ 112 $(document).on('click', '.social-badges a:not(.email.sharing-link)', function () { 113 var link = jQuery(this).attr('href'); 114 if (link != '#') { 115 window.open(link, 'socialshare', 'height=450,width=760,resizable=0,toolbar=0,menubar=0,status=0,location=0,scrollbars=0'); 116 return false; 117 } 118 }); 119 120 121 /*-------------------------------------------------*/ 122 /* = Tabs Widget - { Popular, Recent and Comments } 123 /*-------------------------------------------------*/ 124 125 /* Toggle Block */ 126 127 $("ul.toggle-box li").each(function () { 128 $(this).children(".toggle-box-content").not(".active").css('display', 'none'); 129 130 $(this).children(".toggle-box-head").bind("click", function () { 131 $(this).addClass(function () { 132 if ($(this).hasClass("active")) { 133 $(this).removeClass("active"); 134 return ""; 135 } 136 return "active"; 137 }); 138 $(this).siblings(".toggle-box-content").slideToggle(); 139 }); 140 141 142 }); 143 144 145 /* Accordion Block */ 146 147 $("ul.favo-accordion li").each(function () { 148 if ($(this).index() > 0) { 149 $(this).children(".accordion-inner").css('display', 'none'); 150 } 151 else { 152 $(this).find(".accordion-heading").addClass('active'); 153 } 154 155 $(this).children(".accordion-heading").bind("click", function () { 156 $(this).addClass(function () { 157 if ($(this).hasClass("active")) return ""; 158 return "active"; 159 }); 160 161 $(this).siblings(".accordion-inner").slideDown(350); 162 $(this).parent().siblings("li").children(".accordion-inner").slideUp(350); 163 $(this).parent().siblings("li").find(".active").removeClass("active"); 164 }); 165 }); 166 167 168 169 170 171 /* Tabs Block */ 172 var tabs = $('ul.nav-tabs'); 173 tabs.each(function (i) { 174 var tab = $(this).find('> li > a'); 175 tab.on( "click",function (e) { 176 var contentLocation = $(this).attr('href'); 177 178 if (contentLocation.charAt(0) == "#") { 179 e.preventDefault(); 180 tab.removeClass('active'); 181 $(this).addClass('active'); 182 $(contentLocation).show().addClass('active').siblings().hide().removeClass('active'); 183 } 184 }); 185 }); 186 187 188 189 190 191 ////////////////////////////////////////////////////////////////////////// 192 // Tab 193 ////////////////////////////////////////////////////////////////////////// 194 195 var $tabsNav = $('.tabs-nav'), 196 $tabsNavLis = $tabsNav.children('li'); 197 $tabsNav.each(function () { 198 var $this = $(this); 199 $this.next().children('.tab-content').stop(true, true).hide() 200 .first().show(); 201 $this.children('li').first().addClass('active').stop(true, true).show(); 202 }); 203 $tabsNavLis.on('click', function (e) { 204 var $this = $(this); 205 $this.siblings().removeClass('active').end() 206 .addClass('active'); 207 $this.parent().next().children('.tab-content').stop(true, true).hide() 208 .siblings($this.find('a').attr('href')).fadeIn(); 209 e.preventDefault(); 210 }); 211 212 /* ---------------------------------------------------------------------- */ 213 /* Comment Tree 214 /* ---------------------------------------------------------------------- */ 215 try { 216 $('#content ul.children > li, ol#comments > li').each(function () { 217 if ($(this).find(' > ul.children').length == 0) { 218 $(this).addClass('last-child'); 219 } 220 }); 221 222 $("#content ul.children").each(function () { 223 if ($(this).find(' > li').length > 1) { 224 $(this).addClass('border'); 225 } 226 }); 227 228 $('ul.children.border').each(function () { 229 $(this).append('<span class="border-left"></span>'); 230 231 var _height = 0; 232 233 for (var i = 0; i < $(this).find(' > li').length - 1; i++) { 234 _height = _height + parseInt($(this).find(' > li').eq(i).height()) + parseInt($(this).find(' > li').eq(i).css('margin-bottom')); 235 } 236 237 _height = _height + 29; 238 239 $(this).find('span.border-left').css({ 'height': _height + 'px' }); 240 }); 241 } catch (err) { 242 243 } 244 245 $(window).bind('resize', function () { 246 try { 247 $('ul.children.border').each(function () { 248 var _height = 0; 249 250 for (var i = 0; i < $(this).find(' > li').length - 1; i++) { 251 _height = _height + parseInt($(this).find(' > li').eq(i).height()) + parseInt($(this).find(' > li').eq(i).css('margin-bottom')); 252 } 253 254 _height = _height + 29; 255 256 $(this).find('span.border-left').css({ 'height': _height + 'px' }); 257 }); 258 } catch (err) { 259 260 } 261 }); 262 263 264 /*-------------------------------------------------*/ 265 /* = fixed Menus 266 /*-------------------------------------------------*/ 267 268
269 if (jQuery('.fixed-enabled').length > 0) { 270 var headerHeight = jQuery('.fixed-enabled').offset().top; 271 var mainNav = jQuery('.fixed-enabled'); 272 jQuery(window).scroll(function () { 273 var scrollY = jQuery(window).scrollTop(); 274 if (scrollY > headerHeight) { 275 mainNav.addClass('fixed-nav'); 276 } else if (scrollY < headerHeight) { 277 mainNav.removeClass('fixed-nav'); 278 } 279 }); 280 } 281 282 283 284 /*-------------------------------------------------*/ 285 /* = fixed Sidebar 286 /*-------------------------------------------------*/ 287 288 jQuery('#sidebar,.sidebar.Sticky').theiaStickySidebar({ 289 // Settings 290 additionalMarginTop: 30 291 }); 292 293 $('.wpcf7-form-control-wrap').hover(function () { 294 295 $(this).find('span.wpcf7-not-valid-tip').hide(); 296 297 }); 298 299 300 /*-------------------------------------------------*/ 301 /* = tooltip 302 /*-------------------------------------------------*/ 303 304 jQuery('.ttip , .tooltip-n').tipsy({ fade: true, gravity: 's' }); 305 jQuery('.tooldown, .tooltip-s').tipsy({ fade: true, gravity: 'n' }); 306 307 jQuery('.tooltip-nw').tipsy({ fade: true, gravity: 'nw' }); 308 jQuery('.tooltip-ne').tipsy({ fade: true, gravity: 'ne' }); 309 jQuery('.tooltip-w').tipsy({ fade: true, gravity: 'w' }); 310 jQuery('.tooltip-e').tipsy({ fade: true, gravity: 'e' }); 311 jQuery('.tooltip-sw').tipsy({ fade: true, gravity: 'w' }); 312 jQuery('.tooltip-se').tipsy({ fade: true, gravity: 'e' }); 313 314 315 316 //prettyPhoto Setup 317 318 319 jQuery(".gallery .gallery-icon a").attr('rel', 'prettyPhoto[bkpGallery]'); 320 321 322 jQuery("a[rel^='prettyPhoto']").prettyPhoto({ animation_speed: 'normal' }); 323 324 jQuery(".video-box img").removeAttr('title'); 325 326 327 328 //Img Scroll 329 330 331 jQuery(function () { 332 var $window = jQuery(window), 333 isTouch = Modernizr.touch, 334 win_height_padded = $window.height() * 0.9; 335 336 $window.on('scroll', revealOnScroll); 337 338 function revealOnScroll() { 339 var scrolled = $window.scrollTop(); 340 win_height_padded = $window.height() * 0.9, 341 jQuery(".lazy-loading #content .post_img,.lazy-loading .item-image , .lazy-loading #content .big-item-image ,.lazy-loading #content .small-item-image , .lazy-loading #content .post_img_left , .lazy-loading #content .post-thumbnail,.lazy-loading .post-thumbnail,.lazy-loading .content img:not(.big-slideshow img ,.mega-menu-block .post-thumbnail img,.mega-menu-block .post-thumbnail)").each(function () { 342 343 var $this = jQuery(this), 344 offsetTop = $this.offset().top; 345 346 if (scrolled + win_height_padded > offsetTop) { 347 348 jQuery(this).addClass('img_appear'); 349 350 } 351 352 353 354 }); 355 356 } 357 358 revealOnScroll(); 359 360 }); 361 362 //Menus 363 364 365 jQuery('#main-menu ul > li > .mega-menu-block, #main-menu ul > li > ul, #main-menu ul > li > ul > li > ul, #main-menu ul > li > ul > li > ul> li > ul, .top-menu ul > li > ul, .top-menu ul > li > ul > li > ul, .top-menu ul > li > ul > li > ul> li > ul ').parent('li').addClass('parent-list'); 366 jQuery('.parent-list').find("a:first").append(' <span class="sub-indicator"></span>'); 367 368 //Mega-Menus 369 370 jQuery("#main-menu li.mega-menu:not(#main-menu li li)").hover(function () { 371 var menuWidth = jQuery('#main-menu.main-menu').width(); 372 var menuPosition = jQuery('#main-menu.main-menu').offset(); 373 374 var $sublist = jQuery(this).find('.menu-sub-wrap:first'); 375 376 var menuItemPosition = jQuery(this).offset(); 377 var PositionLeft = menuItemPosition.left - menuPosition.left; 378 jQuery(this).find('.mega-menu-block').css({ left: '-' + PositionLeft + 'px', width: menuWidth }); 379 }); 380 381 382 //Mega Menus Tabs 383 jQuery(".mega-cat-wrapper").each(function () { 384 jQuery(this).find(".mega-cat-content-tab").hide(); 385 jQuery(this).find(".mega-cat-sub-categories li:first").addClass("cat-active").show(); 386 jQuery(this).find(".mega-cat-content-tab:first").addClass("already-loaded").show(); 387 jQuery(this).find(".mega-cat-sub-categories li").on( "click",function (event) { 388 event.preventDefault(); 389 jQuery(this).parent().find("li").removeClass("cat-active"); 390 jQuery(this).addClass("cat-active"); 391 jQuery(this).parent().parent().parent().find(".mega-cat-content-tab").hide(); 392 var activeTab = jQuery(this).find("a").attr("href"); 393 394 if (jQuery(activeTab).hasClass("already-loaded")) { 395 jQuery(activeTab).fadeIn(); 396 } else { 397 jQuery(activeTab).addClass("loading-items").fadeIn(600, function () { 398 jQuery(this).removeClass("loading-items").addClass("already-loaded"); 399 }); 400 } 401 return false; 402 }); 403 }); 404 405 406 407}); 408 409 410 411 412window.randomize = function () { 413 $('.radial-progress').each(function () { 414 var transform_styles = ['-webkit-transform', '-ms-transform', 'transform']; 415 $(this).find('span').fadeTo('slow', 1); 416 var score = $(this).data('score'); 417 var deg = (((100 / 100) * score) / 100) * 180; 418 var rotation = deg; 419 var fill_rotation = rotation; 420 var fix_rotation = rotation * 2; 421 for (i in transform_styles) { 422 $(this).find('.circle .fill, .circle .mask.full').css(transform_styles[i], 'rotate(' + fill_rotation + 'deg)'); 423 $(this).find('.circle .fill.fix').css(transform_styles[i], 'rotate(' + fix_rotation + 'deg)'); 424 } 425 }); 426} 427setTimeout(window.randomize, 200);
428 429 430 431 432/** 433 * Author Christopher Blum 434 * Based on the idea of Remy Sharp, http://remysharp.com/2009/01/26/element-in-view-event-plugin/ 435 * 436 * License: WTFPL 437 */ 438(function (b) { function t() { var e, a = { height: k.innerHeight, width: k.innerWidth }; a.height || !(e = l.compatMode) && b.support.boxModel || (e = "CSS1Compat" === e ? f : l.body, a = { height: e.clientHeight, width: e.clientWidth }); return a } function u() { var e = b(), g, q = 0; b.each(m, function (a, b) { var c = b.data.selector, d = b.$element; e = e.add(c ? d.find(c) : d) }); if (g = e.length) for (d = d || t(), a = a || { top: k.pageYOffset || f.scrollTop || l.body.scrollTop, left: k.pageXOffset || f.scrollLeft || l.body.scrollLeft }; q < g; q++)if (b.contains(f, e[q])) { var h = b(e[q]), n = h.height(), p = h.width(), c = h.offset(), r = h.data("inview"); if (!a || !d) break; c.top + n > a.top && c.top < a.top + d.height && c.left + p > a.left && c.left < a.left + d.width ? (p = a.left > c.left ? "right" : a.left + d.width < c.left + p ? "left" : "both", n = a.top > c.top ? "bottom" : a.top + d.height < c.top + n ? "top" : "both", c = p + "-" + n, r && r === c || h.data("inview", c).trigger("inview", [!0, p, n])) : r && h.data("inview", !1).trigger("inview", [!1]) } } var m = {}, d, a, l = document, k = window, f = l.documentElement, s = b.expando, g; b.event.special.inview = { add: function (a) { m[a.guid + "-" + this[s]] = { data: a, $element: b(this) }; g || b.isEmptyObject(m) || (g = setInterval(u, 250)) }, remove: function (a) { try { delete m[a.guid + "-" + this[s]] } catch (d) { } b.isEmptyObject(m) && (clearInterval(g), g = null) } }; b(k).bind("scroll resize", function () { d = a = null }); !f.addEventListener && f.attachEvent && f.attachEvent("onfocusin", function () { a = null }) })(jQuery); 439 440 441//Modernizr 2.7.0 442; window.Modernizr = function (a, b, c) { function B(a) { j.cssText = a } function C(a, b) { return B(m.join(a + ";") + (b || "")) } function D(a, b) { return typeof a === b } function E(a, b) { return !!~("" + a).indexOf(b) } function F(a, b) { for (var d in a) { var e = a[d]; if (!E(e, "-") && j[e] !== c) return b == "pfx" ? e : !0 } return !1 } function G(a, b, d) { for (var e in a) { var f = b[a[e]]; if (f !== c) return d === !1 ? a[e] : D(f, "function") ? f.bind(d || b) : f } return !1 } function H(a, b, c) { var d = a.charAt(0).toUpperCase() + a.slice(1), e = (a + " " + o.join(d + " ") + d).split(" "); return D(b, "string") || D(b, "undefined") ? F(e, b) : (e = (a + " " + p.join(d + " ") + d).split(" "), G(e, b, c)) } var d = "2.7.0", e = {}, f = !0, g = b.documentElement, h = "modernizr", i = b.createElement(h), j = i.style, k, l = {}.toString, m = " -webkit- -moz- -o- -ms- ".split(" "), n = "Webkit Moz O ms", o = n.split(" "), p = n.toLowerCase().split(" "), q = { svg: "http://www.w3.org/2000/svg" }, r = {}, s = {}, t = {}, u = [], v = u.slice, w, x = function (a, c, d, e) { var f, i, j, k, l = b.createElement("div"), m = b.body, n = m || b.createElement("body"); if (parseInt(d, 10)) while (d--) j = b.createElement("div"), j.id = e ? e[d] : h + (d + 1), l.appendChild(j); return f = ["­", '<style id="s', h, '">', a, "</style>"].join(""), l.id = h, (m ? l : n).innerHTML += f, n.appendChild(l), m || (n.style.background = "", n.style.overflow = "hidden", k = g.style.overflow, g.style.overflow = "hidden", g.appendChild(n)), i = c(l, a), m ? l.parentNode.removeChild(l) : (n.parentNode.removeChild(n), g.style.overflow = k), !!i }, y = function (b) { var c = a.matchMedia || a.msMatchMedia; if (c) return c(b).matches; var d; return x("@media " + b + " { #" + h + " { position: absolute; } }", function (b) { d = (a.getComputedStyle ? getComputedStyle(b, null) : b.currentStyle)["position"] == "absolute" }), d }, z = {}.hasOwnProperty, A; !D(z, "undefined") && !D(z.call, "undefined") ? A = function (a, b) { return z.call(a, b) } : A = function (a, b) { return b in a && D(a.constructor.prototype[b], "undefined") }, Function.prototype.bind || (Function.prototype.bind = function (b) { var c = this; if (typeof c != "function") throw new TypeError; var d = v.call(arguments, 1), e = function () { if (this instanceof e) { var a = function () { }; a.prototype = c.prototype; var f = new a, g = c.apply(f, d.concat(v.call(arguments))); return Object(g) === g ? g : f } return c.apply(b, d.concat(v.call(arguments))) }; return e }), r.touch = function () { var c; return "ontouchstart" in a || a.DocumentTouch && b instanceof DocumentTouch ? c = !0 : x(["@media (", m.join("touch-enabled),("), h, ")", "{#modernizr{top:9px;position:absolute}}"].join(""), function (a) { c = a.offsetTop === 9 }), c }, r.csstransforms = function () { return !!H("transform") }, r.csstransforms3d = function () { var a = !!H("perspective"); return a && "webkitPerspective" in g.style && x("@media (transform-3d),(-webkit-transform-3d){#modernizr{left:9px;position:absolute;height:3px;}}", function (b, c) { a = b.offsetLeft === 9 && b.offsetHeight === 3 }), a }, r.csstransitions = function () { return H("transition") }, r.svg = function () { return !!b.createElementNS && !!b.createElementNS(q.svg, "svg").createSVGRect }; for (var I in r) A(r, I) && (w = I.toLowerCase(), e[w] = r[I](), u.push((e[w] ? "" : "no-") + w)); return e.addTest = function (a, b) { if (typeof a == "object") for (var d in a) A(a, d) && e.addTest(d, a[d]); else { a = a.toLowerCase(); if (e[a] !== c) return e; b = typeof b == "function" ? b() : b, typeof f != "undefined" && f && (g.className += " " + (b ? "" : "no-") + a), e[a] = b } return e }, B(""), i = k = null, function (a, b) { function l(a, b) { var c = a.createElement("p"), d = a.getElementsByTagName("head")[0] || a.documentElement; return c.innerHTML = "x<style>" + b + "</style>", d.insertBefore(c.lastChild, d.firstChild) } function m() { var a = s.elements; return typeof a == "string" ? a.split(" ") : a } function n(a) { var b = j[a[h]]; return b || (b = {}, i++, a[h] = i, j[i] = b), b } function o(a, c, d) { c || (c = b); if (k) return c.createElement(a); d || (d = n(c)); var g; return d.cache[a] ? g = d.cache[a].cloneNode() : f.test(a) ? g = (d.cache[a] = d.createElem(a)).cloneNode() : g = d.createElem(a), g.canHaveChildren && !e.test(a) && !g.tagUrn ? d.frag.appendChild(g) : g } function p(a, c) { a || (a = b); if (k) return a.createDocumentFragment(); c = c || n(a); var d = c.frag.cloneNode(), e = 0, f = m(), g = f.length; for (; e < g; e++)d.createElement(f[e]); return d } function q(a, b) { b.cache || (b.cache = {}, b.createElem = a.createElement, b.createFrag = a.createDocumentFragment, b.frag = b.createFrag()), a.createElement = function (c) { return s.shivMethods ? o(c, a, b) : b.createElem(c) }, a.createDocumentFragment = Function("h,f", "return function(){var n=f.cloneNode(),c=n.createElement;h.shivMethods&&(" + m().join().replace(/[\w\-]+/g, function (a) { return b.createElem(a), b.frag.createElement(a), 'c("' + a + '")' }) + ");return n}")(s, b.frag) } function r(a) { a || (a = b); var c = n(a); return s.shivCSS && !g && !c.hasCSS && (c.hasCSS = !!l(a, "article,aside,dialog,figcaption,figure,footer,header,hgroup,main,nav,section{dis
442play:block}mark{background:#FF0;color:#000}template{display:none}")), k || q(a, c), a } var c = "3.7.0", d = a.html5 || {}, e = /^<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/i, f = /^(?:a|b|code|div|fieldset|h1|h2|h3|h4|h5|h6|i|label|li|ol|p|q|span|strong|style|table|tbody|td|th|tr|ul)$/i, g, h = "_html5shiv", i = 0, j = {}, k; (function () { try { var a = b.createElement("a"); a.innerHTML = "<xyz></xyz>", g = "hidden" in a, k = a.childNodes.length == 1 || function () { b.createElement("a"); var a = b.createDocumentFragment(); return typeof a.cloneNode == "undefined" || typeof a.createDocumentFragment == "undefined" || typeof a.createElement == "undefined" }() } catch (c) { g = !0, k = !0 } })(); var s = { elements: d.elements || "abbr article aside audio bdi canvas data datalist details dialog figcaption figure footer header hgroup main mark meter nav output progress section summary template time video", version: c, shivCSS: d.shivCSS !== !1, supportsUnknownElements: k, shivMethods: d.shivMethods !== !1, type: "default", shivDocument: r, createElement: o, createDocumentFragment: p }; a.html5 = s, r(b) }(this, b), e._version = d, e._prefixes = m, e._domPrefixes = p, e._cssomPrefixes = o, e.mq = y, e.testProp = function (a) { return F([a]) }, e.testAllProps = H, e.testStyles = x, e.prefixed = function (a, b, c) { return b ? H(a, b, c) : H(a, "pfx") }, g.className = g.className.replace(/(^|\s)no-js(\s|$)/, "$1$2") + (f ? " js " + u.join(" ") : ""), e }(this, this.document), function (a, b, c) { function d(a) { return "[object Function]" == o.call(a) } function e(a) { return "string" == typeof a } function f() { } function g(a) { return !a || "loaded" == a || "complete" == a || "uninitialized" == a } function h() { var a = p.shift(); q = 1, a ? a.t ? m(function () { ("c" == a.t ? B.injectCss : B.injectJs)(a.s, 0, a.a, a.x, a.e, 1) }, 0) : (a(), h()) : q = 0 } function i(a, c, d, e, f, i, j) { function k(b) { if (!o && g(l.readyState) && (u.r = o = 1, !q && h(), l.onload = l.onreadystatechange = null, b)) { "img" != a && m(function () { t.removeChild(l) }, 50); for (var d in y[c]) y[c].hasOwnProperty(d) && y[c][d].onload() } } var j = j || B.errorTimeout, l = b.createElement(a), o = 0, r = 0, u = { t: d, s: c, e: f, a: i, x: j }; 1 === y[c] && (r = 1, y[c] = []), "object" == a ? l.data = c : (l.src = c, l.type = a), l.width = l.height = "0", l.onerror = l.onload = l.onreadystatechange = function () { k.call(this, r) }, p.splice(e, 0, u), "img" != a && (r || 2 === y[c] ? (t.insertBefore(l, s ? null : n), m(k, j)) : y[c].push(l)) } function j(a, b, c, d, f) { return q = 0, b = b || "j", e(a) ? i("c" == b ? v : u, a, b, this.i++, c, d, f) : (p.splice(this.i++, 0, a), 1 == p.length && h()), this } function k() { var a = B; return a.loader = { load: j, i: 0 }, a } var l = b.documentElement, m = a.setTimeout, n = b.getElementsByTagName("script")[0], o = {}.toString, p = [], q = 0, r = "MozAppearance" in l.style, s = r && !!b.createRange().compareNode, t = s ? l : n.parentNode, l = a.opera && "[object Opera]" == o.call(a.opera), l = !!b.attachEvent && !l, u = r ? "object" : l ? "script" : "img", v = l ? "script" : u, w = Array.isArray || function (a) { return "[object Array]" == o.call(a) }, x = [], y = {}, z = { timeout: function (a, b) { return b.length && (a.timeout = b[0]), a } }, A, B; B = function (a) { function b(a) { var a = a.split("!"), b = x.length, c = a.pop(), d = a.length, c = { url: c, origUrl: c, prefixes: a }, e, f, g; for (f = 0; f < d; f++)g = a[f].split("="), (e = z[g.shift()]) && (c = e(c, g)); for (f = 0; f < b; f++)c = x[f](c); return c } function g(a, e, f, g, h) { var i = b(a), j = i.autoCallback; i.url.split(".").pop().split("?").shift(), i.bypass || (e && (e = d(e) ? e : e[a] || e[g] || e[a.split("/").pop().split("?")[0]]), i.instead ? i.instead(a, e, f, g, h) : (y[i.url] ? i.noexec = !0 : y[i.url] = 1, f.load(i.url, i.forceCSS || !i.forceJS && "css" == i.url.split(".").pop().split("?").shift() ? "c" : c, i.noexec, i.attrs, i.timeout), (d(e) || d(j)) && f.load(function () { k(), e && e(i.origUrl, h, g), j && j(i.origUrl, h, g), y[i.url] = 2 }))) } function h(a, b) { function c(a, c) { if (a) { if (e(a)) c || (j = function () { var a = [].slice.call(arguments); k.apply(this, a), l() }), g(a, j, b, 0, h); else if (Object(a) === a) for (n in m = function () { var b = 0, c; for (c in a) a.hasOwnProperty(c) && b++; return b }(), a) a.hasOwnProperty(n) && (!c && !--m && (d(j) ? j = function () { var a = [].slice.call(arguments); k.apply(this, a), l() } : j[n] = function (a) { return function () { var b = [].slice.call(arguments); a && a.apply(this, b), l() } }(k[n])), g(a[n], j, b, n, h)) } else !c && l() } var h = !!a.test, i = a.load || a.both, j = a.callback || f, k = j, l = a.complete || f, m, n; c(h ? a.yep : a.nope, !!i), i && c(i) } var i, j, l = this.yepnope.loader; if (e(a)) g(a, 0, l, 0); else if (w(a)) for (i = 0; i < a.length; i++)j = a[i], e(j) ? g(j, 0, l, 0) : w(j) ? B(j) : Object(j) === j && h(j, l); else Object(a) === a && h(a, l) }, B.addPrefix = function (a, b) { z[a] = b }, B.addFilter = function (a) { x.push(a) }, B.errorTimeout = 1e4, null == b.readyState && b.addEventListener && (b.readyState = "loading", b.addEventListener("DOMContentLoaded", A = function () { b.removeEventListener("DOMContentLoaded", A, 0), b.readyState = "complete" }, 0)), a.yepnope = k(), a.yepnope.executeStack = h, a.yepnope.injectJs = function (a, c, d, e, i, j) { var k = b.createElement("script"), l, o, e = e || B.errorTimeout; k.src = a; for (o in d) k.setAttribute(o, d[o]); c = j ? h : c || f, k.onreadystatechange = k.onload = function () { !l && g(k.readyState) && (l = 1, c(), k.onload = k.onreadystatechange = null) }, m(function () { l || (l = 1, c(1)) }, e), i ? k.onload() : n.parentNode.insertBefore(k, n) }, a.yepnope.injectCss = function (a, c, d, e, g, i) { var e = b.createElement("link"), j, c = i ? h : c || f; e.href = a, e.rel = "stylesheet", e.type = "text/css"; for (j in d) e.setAttribute(j, d[j]); g || (n.parentNode.insertBefore(e, n), m(c, 0)) } }(this, document), Modernizr.load = function () { yepnope.apply(window, [].slice.call(arguments, 0)) }; 443 444 445 446// tipsy, version 1.0.0a 447// (c) 2008-2010 jason frame [[email protected]] 448// released under the MIT license 449(function (a) { function b(a, b) { return typeof a == "function" ? a.call(b) : a } function c(a) { while (a = a.parentNode) { if (a == document) return true } return false } function d(b, c) { this.$element = a(b); this.options = c; this.enabled = true; this.fixTitle() } d.prototype = { show: function () { var c = this.getTitle(); if (c && this.enabled) { var d = this.tip(); d.find(".tipsy-inner")[this.options.html ? "html" : "text"](c); d[0].className = "tipsy"; d.remove().css({ top: 0, left: 0, visibility: "hidden", display: "block" }).prependTo(document.body); var e = a.extend({}, this.$element.offset(), { width: this.$element[0].offsetWidth, height: this.$element[0].offsetHeight }); var f = d[0].offsetWidth, g = d[0].offsetHeight, h = b(this.options.gravity, this.$element[0]); var i; switch (h.charAt(0)) { case "n": i = { top: e.top + e.height + this.options.offset, left: e.left + e.width / 2 - f / 2 }; break; case "s": i = { top: e.top - g - this.options.offset, left: e.left + e.width / 2 - f / 2 }; break; case "e": i = { top: e.top + e.height / 2 - g / 2, left: e.left - f - this.options.offset }; break; case "w": i = { top: e.top + e.height / 2 - g / 2, left: e.left + e.width + this.options.offset }; break }if (h.length == 2) { if (h.charAt(1) == "w") { i.left = e.left + e.width / 2 - 15 } else { i.left = e.left + e.width / 2 - f + 15 } } d.css(i).addClass("tipsy-" + h); d.find(".tipsy-arrow")[0].className = "tipsy-arrow tipsy-arrow-" + h.charAt(0); if (this.options.className) { d.addClass(b(this.options.className, this.$element[0])) } if (this.options.fade) { d.stop().css({ opacity: 0, display: "block", visibility: "visible" }).animate({ opacity: this.options.opacity }) } else { d.css({ visibility: "visible", opacity: this.options.opacity }) } } }, hide: function () { if (this.options.fade) { this.tip().stop().fadeOut(function () { a(this).remove() }) } else { this.tip().remove() } }, fixTitle: function () { var a = this.$element; if (a.attr("title") || typeof a.attr("original-title") != "string") { a.attr("original-title", a.attr("title") || "").removeAttr("title") } }, getTitle: function () { var a, b = this.$element, c = this.options; this.fixTitle(); var a, c = this.options; if (typeof c.title == "string") { a = b.attr(c.title == "title" ? "original-title" : c.title) } else if (typeof c.title == "function") { a = c.title.call(b[0]) } a = ("" + a).replace(/(^\s*|\s*$)/, ""); return a || c.fallback }, tip: function () { if (!this.$tip) { this.$tip = a('<div class="tipsy"></div>').html('<div class="tipsy-arrow"></div><div class="tipsy-inner"></div>'); this.$tip.data("tipsy-pointee", this.$element[0]) } return this.$tip }, validate: function () { if (!this.$element[0].parentNode) { this.hide(); this.$element = null; this.options = null } }, enable: function () { this.enabled = true }, disable: function () { this.enabled = false }, toggleEnabled: function () { this.enabled = !this.enabled } }; a.fn.tipsy = function (b) { function e(c) { var e = a.data(c, "tipsy"); if (!e) { e = new d(c, a.fn.tipsy.elementOptions(c, b)); a.data(c, "tipsy", e) } return e } function f() { var a = e(this); a.hoverState = "in"; if (b.delayIn == 0) { a.show() } else { a.fixTitle(); setTimeout(function () { if (a.hoverState == "in") a.show() }, b.delayIn) } } function g() { var a = e(this); a.hoverState = "out"; if (b.delayOut == 0) { a.hide() } else { setTimeout(function () { if (a.hoverState == "out") a.hide() }, b.delayOut) } } if (b === true) { return this.data("tipsy") } else if (typeof b == "string") { var c = this.data("tipsy"); if (c) c[b](); return this } b = a.extend({}, a.fn.tipsy.defaults, b); if (!b.live) this.each(function () { e(this) }); if (b.trigger != "manual") { var h = b.live ? "live" : "bind", i = b.trigger == "hover" ? "mouseenter" : "focus", j = b.trigger == "hover" ? "mouseleave" : "blur"; this[h](i, f)[h](j, g) } return this }; a.fn.tipsy.defaults = { className: null, delayIn: 0, delayOut: 0, fade: false, fallback: "", gravity: "n", html: false, live: false, offset: 0, opacity: .8, title: "title", trigger: "hover" }; a.fn.tipsy.revalidate = function () { a(".tipsy").each(function () { var b = a.data(this, "tipsy-pointee"); if (!b || !c(b)) { a(this).remove() } }) }; a.fn.tipsy.elementOptions = function (b, c) { return a.metadata ? a.extend({}, c, a(b).metadata()) : c }; a.fn.tipsy.autoNS = function () { return a(this).offset().top > a(document).scrollTop() + a(window).height() / 2 ? "s" : "n" }; a.fn.tipsy.autoWE = function () { return a(this).offset().left > a(document).scrollLeft() + a(window).width() / 2 ? "e" : "w" }; a.fn.tipsy.autoBounds = function (b, c) { return function () { var d = { ns: c[0], ew: c.length > 1 ? c[1] : false }, e = a(document).scrollTop() + b, f = a(document).scrollLeft() + b, g = a(this); if (g.offset().top < e) d.ns = "n"; if (g.offset().left < f) d.ew = "w"; if (a(window).width() + a(document).scrollLeft() - g.offset().left < b) d.ew = "e";
vendor: 4,991 bytes, lines 449-457
449 if (a(window).height() + a(document).scrollTop() - g.offset().top < b) d.ns = "s"; return d.ns + (d.ew ? d.ew : "") } } })(jQuery); 450 451 452 453// jQuery Easing v1.3 - http://gsgd.co.uk/sandbox/jquery/easing 454jQuery.easing["jswing"] = jQuery.easing["swing"]; jQuery.extend(jQuery.easing, { def: "easeOutQuad", swing: function (a, b, c, d, e) { return jQuery.easing[jQuery.easing.def](a, b, c, d, e) }, easeInQuad: function (a, b, c, d, e) { return d * (b /= e) * b + c }, easeOutQuad: function (a, b, c, d, e) { return -d * (b /= e) * (b - 2) + c }, easeInOutQuad: function (a, b, c, d, e) { if ((b /= e / 2) < 1) return d / 2 * b * b + c; return -d / 2 * (--b * (b - 2) - 1) + c }, easeInCubic: function (a, b, c, d, e) { return d * (b /= e) * b * b + c }, easeOutCubic: function (a, b, c, d, e) { return d * ((b = b / e - 1) * b * b + 1) + c }, easeInOutCubic: function (a, b, c, d, e) { if ((b /= e / 2) < 1) return d / 2 * b * b * b + c; return d / 2 * ((b -= 2) * b * b + 2) + c }, easeInQuart: function (a, b, c, d, e) { return d * (b /= e) * b * b * b + c }, easeOutQuart: function (a, b, c, d, e) { return -d * ((b = b / e - 1) * b * b * b - 1) + c }, easeInOutQuart: function (a, b, c, d, e) { if ((b /= e / 2) < 1) return d / 2 * b * b * b * b + c; return -d / 2 * ((b -= 2) * b * b * b - 2) + c }, easeInQuint: function (a, b, c, d, e) { return d * (b /= e) * b * b * b * b + c }, easeOutQuint: function (a, b, c, d, e) { return d * ((b = b / e - 1) * b * b * b * b + 1) + c }, easeInOutQuint: function (a, b, c, d, e) { if ((b /= e / 2) < 1) return d / 2 * b * b * b * b * b + c; return d / 2 * ((b -= 2) * b * b * b * b + 2) + c }, easeInSine: function (a, b, c, d, e) { return -d * Math.cos(b / e * (Math.PI / 2)) + d + c }, easeOutSine: function (a, b, c, d, e) { return d * Math.sin(b / e * (Math.PI / 2)) + c }, easeInOutSine: function (a, b, c, d, e) { return -d / 2 * (Math.cos(Math.PI * b / e) - 1) + c }, easeInExpo: function (a, b, c, d, e) { return b == 0 ? c : d * Math.pow(2, 10 * (b / e - 1)) + c }, easeOutExpo: function (a, b, c, d, e) { return b == e ? c + d : d * (-Math.pow(2, -10 * b / e) + 1) + c }, easeInOutExpo: function (a, b, c, d, e) { if (b == 0) return c; if (b == e) return c + d; if ((b /= e / 2) < 1) return d / 2 * Math.pow(2, 10 * (b - 1)) + c; return d / 2 * (-Math.pow(2, -10 * --b) + 2) + c }, easeInCirc: function (a, b, c, d, e) { return -d * (Math.sqrt(1 - (b /= e) * b) - 1) + c }, easeOutCirc: function (a, b, c, d, e) { return d * Math.sqrt(1 - (b = b / e - 1) * b) + c }, easeInOutCirc: function (a, b, c, d, e) { if ((b /= e / 2) < 1) return -d / 2 * (Math.sqrt(1 - b * b) - 1) + c; return d / 2 * (Math.sqrt(1 - (b -= 2) * b) + 1) + c }, easeInElastic: function (a, b, c, d, e) { var f = 1.70158; var g = 0; var h = d; if (b == 0) return c; if ((b /= e) == 1) return c + d; if (!g) g = e * .3; if (h < Math.abs(d)) { h = d; var f = g / 4 } else var f = g / (2 * Math.PI) * Math.asin(d / h); return -(h * Math.pow(2, 10 * (b -= 1)) * Math.sin((b * e - f) * 2 * Math.PI / g)) + c }, easeOutElastic: function (a, b, c, d, e) { var f = 1.70158; var g = 0; var h = d; if (b == 0) return c; if ((b /= e) == 1) return c + d; if (!g) g = e * .3; if (h < Math.abs(d)) { h = d; var f = g / 4 } else var f = g / (2 * Math.PI) * Math.asin(d / h); return h * Math.pow(2, -10 * b) * Math.sin((b * e - f) * 2 * Math.PI / g) + d + c }, easeInOutElastic: function (a, b, c, d, e) { var f = 1.70158; var g = 0; var h = d; if (b == 0) return c; if ((b /= e / 2) == 2) return c + d; if (!g) g = e * .3 * 1.5; if (h < Math.abs(d)) { h = d; var f = g / 4 } else var f = g / (2 * Math.PI) * Math.asin(d / h); if (b < 1) return -.5 * h * Math.pow(2, 10 * (b -= 1)) * Math.sin((b * e - f) * 2 * Math.PI / g) + c; return h * Math.pow(2, -10 * (b -= 1)) * Math.sin((b * e - f) * 2 * Math.PI / g) * .5 + d + c }, easeInBack: function (a, b, c, d, e, f) { if (f == undefined) f = 1.70158; return d * (b /= e) * b * ((f + 1) * b - f) + c }, easeOutBack: function (a, b, c, d, e, f) { if (f == undefined) f = 1.70158; return d * ((b = b / e - 1) * b * ((f + 1) * b + f) + 1) + c }, easeInOutBack: function (a, b, c, d, e, f) { if (f == undefined) f = 1.70158; if ((b /= e / 2) < 1) return d / 2 * b * b * (((f *= 1.525) + 1) * b - f) + c; return d / 2 * ((b -= 2) * b * (((f *= 1.525) + 1) * b + f) + 2) + c }, easeInBounce: function (a, b, c, d, e) { return d - jQuery.easing.easeOutBounce(a, e - b, 0, d, e) + c }, easeOutBounce: function (a, b, c, d, e) { if ((b /= e) < 1 / 2.75) { return d * 7.5625 * b * b + c } else if (b < 2 / 2.75) { return d * (7.5625 * (b -= 1.5 / 2.75) * b + .75) + c } else if (b < 2.5 / 2.75) { return d * (7.5625 * (b -= 2.25 / 2.75) * b + .9375) + c } else { return d * (7.5625 * (b -= 2.625 / 2.75) * b + .984375) + c } }, easeInOutBounce: function (a, b, c, d, e) { if (b < e / 2) return jQuery.easing.easeInBounce(a, b * 2, 0, d, e) * .5 + c; return jQuery.easing.easeOutBounce(a, b * 2 - e, 0, d, e) * .5 + d * .5 + c } }); 455 456 457
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.