1(function(f, h, j, b) { 2 var d = function(n) { 3 var m = n.length; 4 var l = f("head"); 5 while (m--) { 6 if (l.has("." + n[m]).length === 0) { 7 l.append('<meta class="' + n[m] + '" />') 8 } 9 } 10 }; 11 d(["foundation-mq-small", "foundation-mq-small-only", "foundation-mq-medium", "foundation-mq-medium-only", "foundation-mq-large", "foundation-mq-large-only", "foundation-mq-xlarge", "foundation-mq-xlarge-only", "foundation-mq-xxlarge", "foundation-data-attribute-namespace"]); 12 f(function() { 13 if (typeof FastClick !== "undefined") { 14 if (typeof j.body !== "undefined") { 15 FastClick.attach(j.body) 16 } 17 } 18 }); 19 var e = function(m, n) { 20 if (typeof m === "string") { 21 if (n) { 22 var l; 23 if (n.jquery) { 24 l = n[0]; 25 if (!l) { 26 return n 27 } 28 } else { 29 l = n 30 } 31 return f(l.querySelectorAll(m)) 32 } 33 return f(j.querySelectorAll(m)) 34 } 35 return f(m, n) 36 }; 37 var k = function(m) { 38 var l = []; 39 if (!m) { 40 l.push("data") 41 } 42 if (this.namespace.length > 0) { 43 l.push(this.namespace) 44 } 45 l.push(this.name); 46 return l.join("-") 47 }; 48 var g = function(o) { 49 var n = o.split("-"), 50 m = n.length, 51 l = []; 52 while (m--) { 53 if (m !== 0) { 54 l.push(n[m]) 55 } else { 56 if (this.namespace.length > 0) { 57 l.push(this.namespace, n[m]) 58 } else { 59 l.push(n[m]) 60 } 61 } 62 } 63 return l.reverse().join("-") 64 }; 65 var a = function(o, m) { 66 var l = this, 67 n = function() { 68 var q = e(this), 69 p = !q.data(l.attr_name(true) + "-init"); 70 q.data(l.attr_name(true) + "-init", f.extend({}, l.settings, (m || o), l.data_options(q))); 71 if (p) { 72 l.events(this) 73 } 74 }; 75 if (e(this.scope).is("[" + this.attr_name() + "]")) { 76 n.call(this.scope) 77 } else { 78 e("[" + this.attr_name() + "]", this.scope).each(n) 79 } 80 if (typeof o === "string") { 81 return this[o].call(this, m) 82 } 83 }; 84 var c = function(n, o) { 85 function l() { 86 o(n[0]) 87 } 88 function m() { 89 this.one("load", l); 90 if (/MSIE (\d+\.\d+);/.test(navigator.userAgent)) { 91 var q = this.attr("src"), 92 p = q.match(/\?/) ? "&" : "?"; 93 p += "random=" + (new Date()).getTime(); 94 this.attr("src", q + p) 95 } 96 } 97 if (!n.attr("src")) { 98 l(); 99 return 100 } 101 if (n[0].complete || n[0].readyState === 4) { 102 l() 103 } else { 104 m.call(n) 105 } 106 }; /*! matchMedia() polyfill - Test a CSS media type/query in JS. Authors & copyright (c) 2012: Scott Jehl, Paul Irish, Nicholas Zakas, David Knight. Dual MIT/BSD license */ 107 h.matchMedia || (h.matchMedia = function() { 108 var m = (h.styleMedia || h.media); 109 if (!m) { 110 var n = j.createElement("style"), 111 l = j.getElementsByTagName("script")[0], 112 o = null; 113 n.type = "text/css"; 114 n.id = "matchmediajs-test"; 115 l.parentNode.insertBefore(n, l); 116 o = ("getComputedStyle" in h) && h.getComputedStyle(n, null) || n.currentStyle; 117 m = { 118 matchMedium: function(p) { 119 var q = "@media " + p + "{ #matchmediajs-test { width: 1px; } }"; 120 if (n.styleSheet) { 121 n.styleSheet.cssText = q 122 } else { 123 n.textContent = q 124 } 125 return o.width === "1px" 126 } 127 } 128 } 129 return function(p) { 130 return { 131 matches: m.matchMedium(p || "all"), 132 media: p || "all" 133 } 134 } 135 }()); 136 (function(o) { 137 var l, n = 0, 138 s = ["webkit", "moz"], 139 r = h.requestAnimationFrame, 140 q = h.cancelAnimationFrame, 141 m = "undefined" !== typeof o.fx; 142 for (; n < s.length && !r; n++) { 143 r = h[s[n] + "RequestAnimationFrame"]; 144 q = q || h[s[n] + "CancelAnimationFrame"] || h[s[n] + "CancelRequestAnimationFrame"] 145 } 146 function p() { 147 if (l) { 148 r(p); 149 if (m) { 150 o.fx.tick() 151 } 152 } 153 } 154 if (r) { 155 h.requestAnimationFrame = r; 156 h.cancelAnimationFrame = q; 157 if (m) { 158 o.fx.timer = function(t) { 159 if (t() && o.timers.push(t) && !l) { 160 l = true; 161 p() 162 } 163 }; 164 o.fx.stop = function() { 165 l = false 166 } 167 } 168 } else { 169 h.requestAnimationFrame = function(w) { 170 var t = new Date().getTime(), 171 u = Math.max(0, 16 - (t - n)), 172 v = h.setTimeout(function() { 173 w(t + u) 174 }, u); 175 n = t + u; 176 return v 177 }; 178 h.cancelAnimationFrame = function(t) { 179 clearTimeout(t) 180 } 181 } 182 }(f)); 183 184 function i(l) { 185 if (typeof l === "string" || l instanceof String) { 186 l = l.replace(/^['\\/"]+|(;\s?})+|['\\/"]+$/g, "") 187 } 188 return l 189 } 190 h.Foundation = { 191 name: "Foundation", 192 version: "5.5.2", 193 media_queries: { 194 small: e(".foundation-mq-small").css("font-family").replace(/^[\/\\'"]+|(;\s?})+|[\/\\'"]+$/g, ""), 195 "small-only": e(".foundation-mq-small-only").css("font-family").replace(/^[\/\\'"]+|(;\s?})+|[\/\\'"]+$/g, ""), 196 medium: e(".foundation-mq-medium").css("font-family").replace(/^[\/\\'"]+|(;\s?})+|[\/\\'"]+$/g, ""), 197 "medium-only": e(".foundation-mq-medium-only").css("font-family").replace(/^[\/\\'"]+|(;\s?})+|[\/\\'"]+$/g, ""), 198 large: e(".foundation-mq-large").css("font-family").replace(/^[\/\\'"]+|(;\s?})+|[\/\\'"]+$/g, ""), 199 "large-only": e(".foundation-mq-large-only").css("font-family").replace(/^[\/\\'"]+|(;\s?})+|[\/\\'"]+$/g, ""), 200 xlarge: e(".foundation-mq-xlarge").css("font-family").replace(/^[\/\\'"]+|(;\s?})+|[\/\\'"]+$/g, ""), 201 "xlarge-only": e(".foundation-mq-xlarge-only").css("font-family").replace(/^[\/\\'"]+|(;\s?})+|[\/\\'"]+$/g, ""), 202 xxlarge: e(".foundation-mq-xxlarge").css("font-family").replace(/^[\/\\'"]+|(;\s?})+|[\/\\'"]+$/g, "") 203 }, 204 stylesheet: f("<style></style>").appendTo("head")[0].sheet, 205 global: { 206 namespace: b 207 }, 208 init: function(p, m, s, o, l) { 209 var n = [p, s, o, l], 210 q = []; 211 this.rtl = /rtl/i.test(e("html").attr("dir")); 212 this.scope = p || this.scope; 213 this.set_namespace(); 214 if (m && typeof m === "string" && !/reflow/i.test(m)) { 215 if (this.libs.hasOwnProperty(m)) { 216 q.push(this.init_lib(m, n)) 217 } 218 } else { 219 for (var r in this.libs) { 220 q.push(this.init_lib(r, m)) 221 } 222 } 223 e(h).load(function() { 224 e(h).trigger("resize.fndtn.clearing").trigger("resize.fndtn.dropdown").trigger("resize.fndtn.equalizer").trigger("resize.fndtn.interchange").trigger("resize.fndtn.joyride").trigger("resize.fndtn.magellan").trigger("resize.fndtn.topbar").trigger("resize.fndtn.slider") 225 }); 226 return p 227 }, 228 init_lib: function(m, l) { 229 if (this.libs.hasOwnProperty(m)) { 230 this.patch(this.libs[m]); 231 if (l && l.hasOwnProperty(m)) { 232 if (typeof this.libs[m].settings !== "undefined") { 233 f.extend(true, this.libs[m].settings, l[m]) 234 } else { 235 if (typeof this.libs[m].defaults !== "undefined") { 236 f.extend(true, this.libs[m].defaults, l[m]) 237 } 238 } 239 return this.libs[m].init.apply(this.libs[m], [this.scope, l[m]]) 240 } 241 l = l instanceof Array ? l : new Array(l); 242 return this.libs[m].init.apply(this.libs[m], l) 243 } 244 return function() {} 245 }, 246 patch: function(l) { 247 l.scope = this.scope; 248 l.namespace = this.global.namespace; 249 l.rtl = this.rtl; 250 l.data_options = this.utils.data_options; 251 l.attr_name = k;
252 l.add_namespace = g; 253 l.bindings = a; 254 l.S = this.utils.S 255 }, 256 inherit: function(o, m) { 257 var l = m.split(" "), 258 n = l.length; 259 while (n--) { 260 if (this.utils.hasOwnProperty(l[n])) { 261 o[l[n]] = this.utils[l[n]] 262 } 263 } 264 }, 265 set_namespace: function() { 266 var l = (this.global.namespace === b) ? f(".foundation-data-attribute-namespace").css("font-family") : this.global.namespace; 267 this.global.namespace = (l === b || /false/i.test(l)) ? "" : l 268 }, 269 libs: {}, 270 utils: { 271 S: e, 272 throttle: function(m, l) { 273 var n = null; 274 return function() { 275 var p = this, 276 o = arguments; 277 if (n == null) { 278 n = setTimeout(function() { 279 m.apply(p, o); 280 n = null 281 }, l) 282 } 283 } 284 }, 285 debounce: function(o, n, m) { 286 var p, l; 287 return function() { 288 var t = this, 289 s = arguments; 290 var r = function() { 291 p = null; 292 if (!m) { 293 l = o.apply(t, s) 294 } 295 }; 296 var q = m && !p; 297 clearTimeout(p); 298 p = setTimeout(r, n); 299 if (q) { 300 l = o.apply(t, s) 301 } 302 return l 303 } 304 }, 305 data_options: function(n, q) { 306 q = q || "options"; 307 var l = {}, 308 t, m, v, s = function(w) { 309 var p = Foundation.global.namespace; 310 if (p.length > 0) { 311 return w.data(p + "-" + q) 312 } 313 return w.data(q) 314 }; 315 var r = s(n); 316 if (typeof r === "object") { 317 return r 318 } 319 v = (r || ":").split(";"); 320 t = v.length; 321 322 function u(p) { 323 return !isNaN(p - 0) && p !== null && p !== "" && p !== false && p !== true 324 } 325 function o(p) { 326 if (typeof p === "string") { 327 return f.trim(p) 328 } 329 return p 330 } 331 while (t--) { 332 m = v[t].split(":"); 333 m = [m[0], m.slice(1).join(":")]; 334 if (/true/i.test(m[1])) { 335 m[1] = true 336 } 337 if (/false/i.test(m[1])) { 338 m[1] = false 339 } 340 if (u(m[1])) { 341 if (m[1].indexOf(".") === -1) { 342 m[1] = parseInt(m[1], 10) 343 } else { 344 m[1] = parseFloat(m[1]) 345 } 346 } 347 if (m.length === 2 && m[0].length > 0) { 348 l[o(m[0])] = o(m[1]) 349 } 350 } 351 return l 352 }, 353 register_media: function(m, l) { 354 if (Foundation.media_queries[m] === b) { 355 f("head").append('<meta class="' + l + '"/>'); 356 Foundation.media_queries[m] = i(f("." + l).css("font-family")) 357 } 358 }, 359 add_custom_rule: function(n, m) { 360 if (m === b && Foundation.stylesheet) { 361 Foundation.stylesheet.insertRule(n, Foundation.stylesheet.cssRules.length) 362 } else { 363 var l = Foundation.media_queries[m]; 364 if (l !== b) { 365 Foundation.stylesheet.insertRule("@media " + Foundation.media_queries[m] + "{ " + n + " }", Foundation.stylesheet.cssRules.length) 366 } 367 } 368 }, 369 image_loaded: function(l, p) { 370 var m = this, 371 n = l.length; 372 373 function o(q) { 374 var s = q.length; 375 for (var r = s - 1; r >= 0; r--) { 376 if (q.attr("height") === b) { 377 return false 378 } 379 } 380 return true 381 } 382 if (n === 0 || o(l)) { 383 p(l) 384 } 385 l.each(function() { 386 c(m.S(this), function() { 387 n -= 1; 388 if (n === 0) { 389 p(l) 390 } 391 }) 392 }) 393 }, 394 random_str: function() { 395 if (!this.fidx) { 396 this.fidx = 0 397 } 398 this.prefix = this.prefix || [(this.name || "F"), (+new Date).toString(36)].join("-"); 399 return this.prefix + (this.fidx++).toString(36) 400 }, 401 match: function(l) { 402 return h.matchMedia(l).matches 403 }, 404 is_small_up: function() { 405 return this.match(Foundation.media_queries.small) 406 }, 407 is_medium_up: function() { 408 return this.match(Foundation.media_queries.medium) 409 }, 410 is_large_up: function() { 411 return this.match(Foundation.media_queries.large) 412 }, 413 is_xlarge_up: function() { 414 return this.match(Foundation.media_queries.xlarge) 415 }, 416 is_xxlarge_up: function() { 417 return this.match(Foundation.media_queries.xxlarge) 418 }, 419 is_small_only: function() { 420 return !this.is_medium_up() && !this.is_large_up() && !this.is_xlarge_up() && !this.is_xxlarge_up() 421 }, 422 is_medium_only: function() { 423 return this.is_medium_up() && !this.is_large_up() && !this.is_xlarge_up() && !this.is_xxlarge_up() 424 }, 425 is_large_only: function() { 426 return this.is_medium_up() && this.is_large_up() && !this.is_xlarge_up() && !this.is_xxlarge_up() 427 }, 428 is_xlarge_only: function() { 429 return this.is_medium_up() && this.is_large_up() && this.is_xlarge_up() && !this.is_xxlarge_up() 430 }, 431 is_xxlarge_only: function() { 432 return this.is_medium_up() && this.is_large_up() && this.is_xlarge_up() && this.is_xxlarge_up() 433 } 434 } 435 }; 436 f.fn.foundation = function() { 437 var l = Array.prototype.slice.call(arguments, 0); 438 return this.each(function() {
439 Foundation.init.apply(Foundation, [this].concat(l)); 440 return this 441 }) 442 } 443}(jQuery, window, window.document)); 444(function(c, b, a, d) { 445 Foundation.libs.slider = { 446 name: "slider", 447 version: "5.5.2", 448 settings: { 449 start: 0, 450 end: 100, 451 step: 1, 452 precision: null, 453 initial: null, 454 display_selector: "", 455 vertical: false, 456 trigger_input_change: false, 457 on_change: function() {} 458 }, 459 cache: {}, 460 init: function(f, g, e) { 461 Foundation.inherit(this, "throttle"); 462 this.bindings(g, e); 463 this.reflow() 464 }, 465 events: function() { 466 var e = this; 467 c(this.scope).off(".slider").on("mousedown.fndtn.slider touchstart.fndtn.slider pointerdown.fndtn.slider", "[" + e.attr_name() + "]:not(.disabled, [disabled]) .range-slider-handle", function(f) { 468 if (!e.cache.active) { 469 f.preventDefault(); 470 e.set_active_slider(c(f.target)) 471 } 472 }).on("mousemove.fndtn.slider touchmove.fndtn.slider pointermove.fndtn.slider", function(g) { 473 if ( !! e.cache.active) { 474 g.preventDefault(); 475 if (c.data(e.cache.active[0], "settings").vertical) { 476 var f = 0; 477 if (!g.pageY) { 478 f = b.scrollY 479 } 480 e.calculate_position(e.cache.active, e.get_cursor_position(g, "y") + f) 481 } else { 482 e.calculate_position(e.cache.active, e.get_cursor_position(g, "x")) 483 } 484 } 485 }).on("mouseup.fndtn.slider touchend.fndtn.slider pointerup.fndtn.slider", function(f) { 486 e.remove_active_slider() 487 }).on("change.fndtn.slider", function(f) { 488 e.settings.on_change() 489 }); 490 e.S(b).on("resize.fndtn.slider", e.throttle(function(f) { 491 e.reflow() 492 }, 300)); 493 this.S("[" + this.attr_name() + "]").each(function() { 494 var g = c(this), 495 h = g.children(".range-slider-handle")[0], 496 f = e.initialize_settings(h); 497 if (f.display_selector != "") { 498 c(f.display_selector).each(function() { 499 if (this.hasOwnProperty("value")) { 500 c(this).change(function() { 501 g.foundation("slider", "set_value", c(this).val()) 502 }) 503 } 504 }) 505 } 506 }) 507 }, 508 get_cursor_position: function(i, h) { 509 var j = "page" + h.toUpperCase(), 510 g = "client" + h.toUpperCase(), 511 f; 512 if (typeof i[j] !== "undefined") { 513 f = i[j] 514 } else { 515 if (typeof i.originalEvent[g] !== "undefined") { 516 f = i.originalEvent[g] 517 } else { 518 if (i.originalEvent.touches && i.originalEvent.touches[0] && typeof i.originalEvent.touches[0][g] !== "undefined") { 519 f = i.originalEvent.touches[0][g] 520 } else { 521 if (i.currentPoint && typeof i.currentPoint[h] !== "undefined") { 522 f = i.currentPoint[h] 523 } 524 } 525 } 526 } 527 return f 528 }, 529 set_active_slider: function(e) { 530 this.cache.active = e 531 }, 532 remove_active_slider: function() { 533 this.cache.active = null 534 }, 535 calculate_position: function(l, j) { 536 var f = this, 537 h = c.data(l[0], "settings"), 538 g = c.data(l[0], "handle_l"), 539 e = c.data(l[0], "handle_o"), 540 k = c.data(l[0], "bar_l"), 541 i = c.data(l[0], "bar_o"); 542 requestAnimationFrame(function() { 543 var n; 544 if (Foundation.rtl && !h.vertical) { 545 n = f.limit_to(((i + k - j) / k), 0, 1) 546 } else { 547 n = f.limit_to(((j - i) / k), 0, 1) 548 } 549 n = h.vertical ? 1 - n : n; 550 var m = f.normalized_value(n, h.start, h.end, h.step, h.precision); 551 f.set_ui(l, m) 552 }) 553 }, 554 set_ui: function(f, m) { 555 var i = c.data(f[0], "settings"), 556 g = c.data(f[0], "handle_l"), 557 h = c.data(f[0], "bar_l"), 558 n = this.normalized_percentage(m, i.start, i.end), 559 l = n * (h - g) - 1, 560 j = n * 100, 561 e = f.parent(), 562 k = f.parent().children("input[type=hidden]"); 563 if (Foundation.rtl && !i.vertical) { 564 l = -l 565 } 566 l = i.vertical ? -l + h - g + 1 : l; 567 this.set_translate(f, l, i.vertical); 568 if (i.vertical) { 569 f.siblings(".range-slider-active-segment").css("height", j + "%") 570 } else { 571 f.siblings(".range-slider-active-segment").css("width", j + "%") 572 } 573 e.attr(this.attr_name(), m).trigger("change.fndtn.slider"); 574 k.val(m); 575 if (i.trigger_input_change) { 576 k.trigger("change.fndtn.slider") 577 } 578 if (!f[0].hasAttribute("aria-valuemin")) { 579 f.attr({ 580 "aria-valuemin": i.start, 581 "aria-valuemax": i.end 582 }) 583 } 584 f.attr("aria-valuenow", m); 585 if (i.display_selector != "") { 586 c(i.display_selector).each(function() { 587 if (this.hasAttribute("value")) { 588 c(this).val(m) 589 } else { 590 c(this).text(m) 591 } 592 }) 593 } 594 }, 595 normalized_percentage: function(f, g, e) { 596 return Math.min(1, (f - g) / (e - g)) 597 }, 598 normalized_value: function(f, e, h, g, j) { 599 var i = h - e, 600 l = f * i, 601 k = (l - (l % g)) / g, 602 m = l % g, 603 n = (m >= g * 0.5 ? g : 0); 604 return ((k * g + n) + e).toFixed(j) 605 }, 606 set_translate: function(f, g, e) { 607 if (e) { 608 c(f).css("-webkit-transform", "translateY(" + g + "px)").css("-moz-transform", "translateY(" + g + "px)").css("-ms-transform", "translateY(" + g + "px)").css("-o-transform", "translateY(" + g + "px)").css("transform", "translateY(" + g + "px)") 609 } else {
610 c(f).css("-webkit-transform", "translateX(" + g + "px)").css("-moz-transform", "translateX(" + g + "px)").css("-ms-transform", "translateX(" + g + "px)").css("-o-transform", "translateX(" + g + "px)").css("transform", "translateX(" + g + "px)") 611 } 612 }, 613 limit_to: function(g, f, e) { 614 return Math.min(Math.max(g, f), e) 615 }, 616 initialize_settings: function(g) { 617 var f = c.extend({}, this.settings, this.data_options(c(g).parent())), 618 e; 619 if (f.precision === null) { 620 e = ("" + f.step).match(/\.([\d]*)/); 621 f.precision = e && e[1] ? e[1].length : 0 622 } 623 if (f.vertical) { 624 c.data(g, "bar_o", c(g).parent().offset().top); 625 c.data(g, "bar_l", c(g).parent().outerHeight()); 626 c.data(g, "handle_o", c(g).offset().top); 627 c.data(g, "handle_l", c(g).outerHeight()) 628 } else { 629 c.data(g, "bar_o", c(g).parent().offset().left); 630 c.data(g, "bar_l", c(g).parent().outerWidth()); 631 c.data(g, "handle_o", c(g).offset().left); 632 c.data(g, "handle_l", c(g).outerWidth()) 633 } 634 c.data(g, "bar", c(g).parent()); 635 return c.data(g, "settings", f) 636 }, 637 set_initial_position: function(g) { 638 var f = c.data(g.children(".range-slider-handle")[0], "settings"), 639 e = ((typeof f.initial == "number" && !isNaN(f.initial)) ? f.initial : Math.floor((f.end - f.start) * 0.5 / f.step) * f.step + f.start), 640 h = g.children(".range-slider-handle"); 641 this.set_ui(h, e) 642 }, 643 set_value: function(f) { 644 var e = this; 645 c("[" + e.attr_name() + "]", this.scope).each(function() { 646 c(this).attr(e.attr_name(), f) 647 }); 648 if ( !! c(this.scope).attr(e.attr_name())) { 649 c(this.scope).attr(e.attr_name(), f) 650 } 651 e.reflow() 652 }, 653 reflow: function() { 654 var e = this; 655 e.S("[" + this.attr_name() + "]").each(function() { 656 var f = c(this).children(".range-slider-handle")[0], 657 g = c(this).attr(e.attr_name()); 658 e.initialize_settings(f); 659 if (g) { 660 e.set_ui(c(f), parseFloat(g)) 661 } else { 662 e.set_initial_position(c(this)) 663 } 664 }) 665 } 666 } 667}(jQuery, window, window.document)); 668(function(c, b, a, e) { 669 var d = d || false; 670 Foundation.libs.joyride = { 671 name: "joyride", 672 version: "5.5.2", 673 defaults: { 674 expose: false, 675 modal: true, 676 keyboard: true, 677 tip_location: "bottom", 678 nub_position: "auto", 679 scroll_speed: 1500, 680 scroll_animation: "linear", 681 timer: 0, 682 start_timer_on_click: true, 683 start_offset: 0, 684 next_button: true, 685 prev_button: true, 686 tip_animation: "fade", 687 pause_after: [], 688 exposed: [], 689 tip_animation_fade_speed: 300, 690 cookie_monster: false, 691 cookie_name: "joyride", 692 cookie_domain: false, 693 cookie_expires: 365, 694 tip_container: "body", 695 abort_on_close: true, 696 tip_location_patterns: { 697 top: ["bottom"], 698 bottom: [], 699 left: ["right", "top", "bottom"], 700 right: ["left", "top", "bottom"] 701 }, 702 post_ride_callback: function() {}, 703 post_step_callback: function() {}, 704 pre_step_callback: function() {}, 705 pre_ride_callback: function() {}, 706 post_expose_callback: function() {}, 707 template: { 708 link: '<a href="#close" class="joyride-close-tip">×</a>', 709 timer: '<div class="joyride-timer-indicator-wrap"><span class="joyride-timer-indicator"></span></div>', 710 tip: '<div class="joyride-tip-guide"><span class="joyride-nub"></span></div>', 711 wrapper: '<div class="joyride-content-wrapper"></div>', 712 button: '<a href="#" class="small button joyride-next-tip"></a>', 713 prev_button: '<a href="#" class="small button joyride-prev-tip"></a>', 714 modal: '<div class="joyride-modal-bg"></div>', 715 expose: '<div class="joyride-expose-wrapper"></div>', 716 expose_cover: '<div class="joyride-expose-cover"></div>' 717 }, 718 expose_add_class: "" 719 }, 720 init: function(g, h, f) { 721 Foundation.inherit(this, "throttle random_str"); 722 this.settings = this.settings || c.extend({}, this.defaults, (f || h)); 723 this.bindings(h, f) 724 }, 725 go_next: function() { 726 if (this.settings.$li.next().length < 1) { 727 this.end() 728 } else { 729 if (this.settings.timer > 0) { 730 clearTimeout(this.settings.automate); 731 this.hide(); 732 this.show(); 733 this.startTimer() 734 } else { 735 this.hide(); 736 this.show() 737 } 738 } 739 }, 740 go_prev: function() { 741 if (this.settings.$li.prev().length < 1) {} else { 742 if (this.settings.timer > 0) { 743 clearTimeout(this.settings.automate); 744 this.hide(); 745 this.show(null, true); 746 this.startTimer() 747 } else { 748 this.hide(); 749 this.show(null, true) 750 } 751 } 752 }, 753 events: function() { 754 var f = this; 755 c(this.scope).off(".joyride").on("click.fndtn.joyride", ".joyride-next-tip, .joyride-modal-bg", function(g) { 756 g.preventDefault(); 757 this.go_next() 758 }.bind(this)).on("click.fndtn.joyride", ".joyride-prev-tip", function(g) { 759 g.preventDefault(); 760 this.go_prev() 761 }.bind(this)).on("click.fndtn.joyride", ".joyride-close-tip", function(g) { 762 g.preventDefault(); 763 this.end(this.settings.abort_on_close) 764 }.bind(this)).on("keyup.fndtn.joyride", function(g) {
765 if (!this.settings.keyboard || !this.settings.riding) { 766 return 767 } 768 switch (g.which) { 769 case 39: 770 g.preventDefault(); 771 this.go_next(); 772 break; 773 case 37: 774 g.preventDefault(); 775 this.go_prev(); 776 break; 777 case 27: 778 g.preventDefault(); 779 this.end(this.settings.abort_on_close) 780 } 781 }.bind(this)); 782 c(b).off(".joyride").on("resize.fndtn.joyride", f.throttle(function() { 783 if (c("[" + f.attr_name() + "]").length > 0 && f.settings.$next_tip && f.settings.riding) { 784 if (f.settings.exposed.length > 0) { 785 var g = c(f.settings.exposed); 786 g.each(function() { 787 var h = c(this); 788 f.un_expose(h); 789 f.expose(h) 790 }) 791 } 792 if (f.is_phone()) { 793 f.pos_phone() 794 } else { 795 f.pos_default(false) 796 } 797 } 798 }, 100)) 799 }, 800 start: function() { 801 var g = this, 802 i = c("[" + this.attr_name() + "]", this.scope), 803 f = ["timer", "scrollSpeed", "startOffset", "tipAnimationFadeSpeed", "cookieExpires"], 804 h = f.length; 805 if (!i.length > 0) { 806 return 807 } 808 if (!this.settings.init) { 809 this.events() 810 } 811 this.settings = i.data(this.attr_name(true) + "-init"); 812 this.settings.$content_el = i; 813 this.settings.$body = c(this.settings.tip_container); 814 this.settings.body_offset = c(this.settings.tip_container).position(); 815 this.settings.$tip_content = this.settings.$content_el.find("> li"); 816 this.settings.paused = false; 817 this.settings.attempts = 0; 818 this.settings.riding = true; 819 if (typeof c.cookie !== "function") { 820 this.settings.cookie_monster = false 821 } 822 if (!this.settings.cookie_monster || this.settings.cookie_monster && !c.cookie(this.settings.cookie_name)) { 823 this.settings.$tip_content.each(function(j) { 824 var l = c(this); 825 this.settings = c.extend({}, g.defaults, g.data_options(l)); 826 var k = h; 827 while (k--) { 828 g.settings[f[k]] = parseInt(g.settings[f[k]], 10) 829 } 830 g.create({ 831 $li: l, 832 index: j 833 }) 834 }); 835 if (!this.settings.start_timer_on_click && this.settings.timer > 0) { 836 this.show("init"); 837 this.startTimer() 838 } else { 839 this.show("init") 840 } 841 } 842 }, 843 resume: function() { 844 this.set_li(); 845 this.show() 846 }, 847 tip_template: function(g) { 848 var h, f; 849 g.tip_class = g.tip_class || ""; 850 h = c(this.settings.template.tip).addClass(g.tip_class); 851 f = c.trim(c(g.li).html()) + this.prev_button_text(g.prev_button_text, g.index) + this.button_text(g.button_text) + this.settings.template.link + this.timer_instance(g.index); 852 h.append(c(this.settings.template.wrapper)); 853 h.first().attr(this.add_namespace("data-index"), g.index); 854 c(".joyride-content-wrapper", h).append(f); 855 return h[0] 856 }, 857 timer_instance: function(g) { 858 var f; 859 if ((g === 0 && this.settings.start_timer_on_click && this.settings.timer > 0) || this.settings.timer === 0) { 860 f = "" 861 } else { 862 f = c(this.settings.template.timer)[0].outerHTML 863 } 864 return f 865 }, 866 button_text: function(f) { 867 if (this.settings.tip_settings.next_button) { 868 f = c.trim(f) || "Next"; 869 f = c(this.settings.template.button).append(f)[0].outerHTML 870 } else { 871 f = "" 872 } 873 return f 874 }, 875 prev_button_text: function(g, f) { 876 if (this.settings.tip_settings.prev_button) { 877 g = c.trim(g) || "Previous"; 878 if (f == 0) { 879 g = c(this.settings.template.prev_button).append(g).addClass("disabled")[0].outerHTML 880 } else { 881 g = c(this.settings.template.prev_button).append(g)[0].outerHTML 882 } 883 } else { 884 g = "" 885 } 886 return g 887 }, 888 create: function(i) { 889 this.settings.tip_settings = c.extend({}, this.settings, this.data_options(i.$li)); 890 var h = i.$li.attr(this.add_namespace("data-button")) || i.$li.attr(this.add_namespace("data-text")), 891 g = i.$li.attr(this.add_namespace("data-button-prev")) || i.$li.attr(this.add_namespace("data-prev-text")), 892 f = i.$li.attr("class"), 893 j = c(this.tip_template({ 894 tip_class: f, 895 index: i.index, 896 button_text: h, 897 prev_button_text: g, 898 li: i.$li 899 })); 900 c(this.settings.tip_container).append(j) 901 }, 902 show: function(i, f) { 903 var h = null; 904 if (this.settings.$li === e || (c.inArray(this.settings.$li.index(), this.settings.pause_after) === -1)) { 905 if (this.settings.paused) { 906 this.settings.paused = false 907 } else { 908 this.set_li(i, f) 909 } 910 this.settings.attempts = 0; 911 if (this.settings.$li.length && this.settings.$target.length > 0) { 912 if (i) { 913 this.settings.pre_ride_callback(this.settings.$li.index(), this.settings.$next_tip); 914 if (this.settings.modal) { 915 this.show_modal() 916 } 917 } 918 this.settings.pre_step_callback(this.settings.$li.index(), this.settings.$next_tip); 919 if (this.settings.modal && this.settings.expose) { 920 this.expose() 921 } 922 this.settings.tip_settings = c.extend({}, this.settings, this.data_options(this.settings.$li)); 923 this.settings.timer = parseInt(this.settings.timer, 10); 924 this.settings.tip_settings.tip_location_pattern = this.settings.tip_location_patterns[this.settings.tip_settings.tip_location]; 925 if (!/body/i.test(this.settings.$target.selector)) { 926 var g = c(".joyride-modal-bg"); 927 if (/pop/i.test(this.settings.tipAnimation)) { 928 g.hide() 929 } else { 930 g.fadeOut(this.settings.tipAnimationFadeSpeed) 931 } 932 this.scroll_to() 933 } 934 if (this.is_phone()) { 935 this.pos_phone(true) 936 } else { 937 this.pos_default(true) 938 } 939 h = this.settings.$next_tip.find(".joyride-timer-indicator"); 940 if (/pop/i.test(this.settings.tip_animation)) { 941 h.width(0); 942 if (this.settings.timer > 0) { 943 this.settings.$next_tip.show(); 944 setTimeout(function() { 945 h.animate({ 946 width: h.parent().width() 947 }, this.settings.timer, "linear") 948 }.bind(this), this.settings.tip_animation_fade_speed) 949 } else { 950 this.settings.$next_tip.show() 951 } 952 } else { 953 if (/fade/i.test(this.settings.tip_animation)) { 954 h.width(0); 955 if (this.settings.timer > 0) { 956 this.settings.$next_tip.fadeIn(this.settings.tip_animation_fade_speed).show(); 957 setTimeout(function() { 958 h.animate({ 959 width: h.parent().width() 960 }, this.settings.timer, "linear") 961 }.bind(this), this.settings.tip_animation_fade_speed) 962 } else { 963 this.settings.$next_tip.fadeIn(this.settings.tip_animation_fade_speed) 964 } 965 } 966 } 967 this.settings.$current_tip = this.settings.$next_tip 968 } else { 969 if (this.settings.$li && this.settings.$target.length < 1) { 970 this.show(i, f) 971 } else { 972 this.end() 973 } 974 } 975 } else { 976 this.settings.paused = true 977 } 978 }, 979 is_phone: function() { 980 return matchMedia(Foundation.media_queries.small).matches && !matchMedia(Foundation.media_queries.medium).matches 981 }, 982 hide: function() { 983 if (this.settings.modal && this.settings.expose) { 984 this.un_expose() 985 } 986 if (!this.settings.modal) { 987 c(".joyride-modal-bg").hide() 988 } 989 this.settings.$current_tip.css("visibility", "hidden"); 990 setTimeout(c.proxy(function() { 991 this.hide(); 992 this.css("visibility", "visible") 993 }, this.settings.$current_tip), 0); 994 this.settings.post_step_callback(this.settings.$li.index(), this.settings.$current_tip) 995 }, 996 set_li: function(g, f) { 997 if (g) { 998 this.settings.$li = this.settings.$tip_content.eq(this.settings.start_offset); 999 this.set_next_tip(); 1000 this.settings.$current_tip = this.settings.$next_tip 1001 } else { 1002 if (f) { 1003 this.settings.$li = this.settings.$li.prev() 1004 } else { 1005 this.settings.$li = this.settings.$li.next() 1006 } 1007 this.set_next_tip() 1008 } 1009 this.set_target() 1010 }, 1011 set_next_tip: function() { 1012 this.settings.$next_tip = c(".joyride-tip-guide").eq(this.settings.$li.index()); 1013 this.settings.$next_tip.data("closed", "") 1014 }, 1015 set_target: function() { 1016 var f = this.settings.$li.attr(this.add_namespace("data-class")), 1017 h = this.settings.$li.attr(this.add_namespace("data-id")), 1018 g = function() { 1019 if (h) { 1020 return c(a.getElementById(h)) 1021 } else { 1022 if (f) { 1023 return c("." + f).first() 1024 } else { 1025 return c("body") 1026 } 1027 } 1028 }; 1029 this.settings.$target = g() 1030 }, 1031 scroll_to: function() { 1032 var g, f; 1033 g = c(b).height() / 2;
1034 f = Math.ceil(this.settings.$target.offset().top - g + this.settings.$next_tip.outerHeight()); 1035 if (f != 0) { 1036 c("html, body").stop().animate({ 1037 scrollTop: f 1038 }, this.settings.scroll_speed, "swing") 1039 } 1040 }, 1041 paused: function() { 1042 return (c.inArray((this.settings.$li.index() + 1), this.settings.pause_after) === -1) 1043 }, 1044 restart: function() { 1045 this.hide(); 1046 this.settings.$li = e; 1047 this.show("init") 1048 }, 1049 pos_default: function(k) { 1050 var j = this.settings.$next_tip.find(".joyride-nub"), 1051 i = Math.ceil(j.outerWidth() / 2), 1052 l = Math.ceil(j.outerHeight() / 2), 1053 f = k || false; 1054 if (f) { 1055 this.settings.$next_tip.css("visibility", "hidden"); 1056 this.settings.$next_tip.show() 1057 } 1058 if (!/body/i.test(this.settings.$target.selector)) { 1059 var g = this.settings.tip_settings.tipAdjustmentY ? parseInt(this.settings.tip_settings.tipAdjustmentY) : 0, 1060 h = this.settings.tip_settings.tipAdjustmentX ? parseInt(this.settings.tip_settings.tipAdjustmentX) : 0; 1061 if (this.bottom()) { 1062 if (this.rtl) { 1063 this.settings.$next_tip.css({ 1064 top: (this.settings.$target.offset().top + l + this.settings.$target.outerHeight() + g), 1065 left: this.settings.$target.offset().left + this.settings.$target.outerWidth() - this.settings.$next_tip.outerWidth() + h 1066 }) 1067 } else { 1068 this.settings.$next_tip.css({ 1069 top: (this.settings.$target.offset().top + l + this.settings.$target.outerHeight() + g), 1070 left: this.settings.$target.offset().left + h 1071 }) 1072 } 1073 this.nub_position(j, this.settings.tip_settings.nub_position, "top") 1074 } else { 1075 if (this.top()) { 1076 if (this.rtl) { 1077 this.settings.$next_tip.css({ 1078 top: (this.settings.$target.offset().top - this.settings.$next_tip.outerHeight() - l + g), 1079 left: this.settings.$target.offset().left + this.settings.$target.outerWidth() - this.settings.$next_tip.outerWidth() 1080 }) 1081 } else { 1082 this.settings.$next_tip.css({ 1083 top: (this.settings.$target.offset().top - this.settings.$next_tip.outerHeight() - l + g), 1084 left: this.settings.$target.offset().left + h 1085 }) 1086 } 1087 this.nub_position(j, this.settings.tip_settings.nub_position, "bottom") 1088 } else { 1089 if (this.right()) { 1090 this.settings.$next_tip.css({ 1091 top: this.settings.$target.offset().top + g, 1092 left: (this.settings.$target.outerWidth() + this.settings.$target.offset().left + i + h) 1093 }); 1094 this.nub_position(j, this.settings.tip_settings.nub_position, "left") 1095 } else { 1096 if (this.left()) { 1097 this.settings.$next_tip.css({ 1098 top: this.settings.$target.offset().top + g, 1099 left: (this.settings.$target.offset().left - this.settings.$next_tip.outerWidth() - i + h) 1100 });
1101 this.nub_position(j, this.settings.tip_settings.nub_position, "right") 1102 } 1103 } 1104 } 1105 } 1106 if (!this.visible(this.corners(this.settings.$next_tip)) && this.settings.attempts < this.settings.tip_settings.tip_location_pattern.length) { 1107 j.removeClass("bottom").removeClass("top").removeClass("right").removeClass("left"); 1108 this.settings.tip_settings.tip_location = this.settings.tip_settings.tip_location_pattern[this.settings.attempts]; 1109 this.settings.attempts++; 1110 this.pos_default() 1111 } 1112 } else { 1113 if (this.settings.$li.length) { 1114 this.pos_modal(j) 1115 } 1116 } 1117 if (f) { 1118 this.settings.$next_tip.hide(); 1119 this.settings.$next_tip.css("visibility", "visible") 1120 } 1121 }, 1122 pos_phone: function(k) { 1123 var j = this.settings.$next_tip.outerHeight(), 1124 i = this.settings.$next_tip.offset(), 1125 h = this.settings.$target.outerHeight(), 1126 g = c(".joyride-nub", this.settings.$next_tip), 1127 l = Math.ceil(g.outerHeight() / 2), 1128 f = k || false; 1129 g.removeClass("bottom").removeClass("top").removeClass("right").removeClass("left"); 1130 if (f) { 1131 this.settings.$next_tip.css("visibility", "hidden"); 1132 this.settings.$next_tip.show() 1133 } 1134 if (!/body/i.test(this.settings.$target.selector)) { 1135 if (this.top()) { 1136 this.settings.$next_tip.offset({ 1137 top: this.settings.$target.offset().top - j - l 1138 }); 1139 g.addClass("bottom") 1140 } else { 1141 this.settings.$next_tip.offset({ 1142 top: this.settings.$target.offset().top + h + l 1143 }); 1144 g.addClass("top") 1145 } 1146 } else { 1147 if (this.settings.$li.length) { 1148 this.pos_modal(g) 1149 } 1150 } 1151 if (f) { 1152 this.settings.$next_tip.hide(); 1153 this.settings.$next_tip.css("visibility", "visible") 1154 } 1155 }, 1156 pos_modal: function(f) { 1157 this.center(); 1158 f.hide(); 1159 this.show_modal() 1160 }, 1161 show_modal: function() { 1162 if (!this.settings.$next_tip.data("closed")) { 1163 var f = c(".joyride-modal-bg"); 1164 if (f.length < 1) { 1165 var f = c(this.settings.template.modal); 1166 f.appendTo("body") 1167 } 1168 if (/pop/i.test(this.settings.tip_animation)) { 1169 f.show() 1170 } else { 1171 f.fadeIn(this.settings.tip_animation_fade_speed) 1172 } 1173 } 1174 }, 1175 expose: function() { 1176 var g, j, i, k, f, h = "expose-" + this.random_str(6); 1177 if (arguments.length > 0 && arguments[0] instanceof c) { 1178 i = arguments[0] 1179 } else { 1180 if (this.settings.$target && !/body/i.test(this.settings.$target.selector)) { 1181 i = this.settings.$target 1182 } else { 1183 return false 1184 } 1185 } 1186 if (i.length < 1) { 1187 if (b.console) { 1188 console.error("element not valid", i) 1189 } 1190 return false 1191 } 1192 g = c(this.settings.template.expose); 1193 this.settings.$body.append(g); 1194 g.css({ 1195 top: i.offset().top, 1196 left: i.offset().left, 1197 width: i.outerWidth(true), 1198 height: i.outerHeight(true) 1199 }); 1200 j = c(this.settings.template.expose_cover); 1201 k = { 1202 zIndex: i.css("z-index"), 1203 position: i.css("position") 1204 }; 1205 f = i.attr("class") == null ? "" : i.attr("class"); 1206 i.css("z-index", parseInt(g.css("z-index")) + 1); 1207 if (k.position == "static") { 1208 i.css("position", "relative") 1209 } 1210 i.data("expose-css", k); 1211 i.data("orig-class", f); 1212 i.attr("class", f + " " + this.settings.expose_add_class); 1213 j.css({ 1214 top: i.offset().top, 1215 left: i.offset().left, 1216 width: i.outerWidth(true), 1217 height: i.outerHeight(true) 1218 }); 1219 if (this.settings.modal) { 1220 this.show_modal() 1221 } 1222 this.settings.$body.append(j); 1223 g.addClass(h); 1224 j.addClass(h); 1225 i.data("expose", h); 1226 this.settings.post_expose_callback(this.settings.$li.index(), this.settings.$next_tip, i); 1227 this.add_exposed(i) 1228 }, 1229 un_expose: function() { 1230 var f, j, h, k, g, i = false; 1231 if (arguments.length > 0 && arguments[0] instanceof c) { 1232 j = arguments[0] 1233 } else { 1234 if (this.settings.$target && !/body/i.test(this.settings.$target.selector)) { 1235 j = this.settings.$target 1236 } else { 1237 return false 1238 } 1239 } 1240 if (j.length < 1) { 1241 if (b.console) { 1242 console.error("element not valid", j) 1243 } 1244 return false 1245 } 1246 f = j.data("expose"); 1247 h = c("." + f); 1248 if (arguments.length > 1) { 1249 i = arguments[1] 1250 } 1251 if (i === true) { 1252 c(".joyride-expose-wrapper,.joyride-expose-cover").remove() 1253 } else { 1254 h.remove() 1255 } 1256 k = j.data("expose-css"); 1257 if (k.zIndex == "auto") { 1258 j.css("z-index", "") 1259 } else { 1260 j.css("z-index", k.zIndex) 1261 } 1262 if (k.position != j.css("position")) { 1263 if (k.position == "static") { 1264 j.css("position", "") 1265 } else { 1266 j.css("position", k.position) 1267 } 1268 } 1269 g = j.data("orig-class"); 1270 j.attr("class", g); 1271 j.removeData("orig-classes"); 1272 j.removeData("expose"); 1273 j.removeData("expose-z-index"); 1274 this.remove_exposed(j) 1275 },
1276 add_exposed: function(f) { 1277 this.settings.exposed = this.settings.exposed || []; 1278 if (f instanceof c || typeof f === "object") { 1279 this.settings.exposed.push(f[0]) 1280 } else { 1281 if (typeof f == "string") { 1282 this.settings.exposed.push(f) 1283 } 1284 } 1285 }, 1286 remove_exposed: function(h) { 1287 var g, f; 1288 if (h instanceof c) { 1289 g = h[0] 1290 } else { 1291 if (typeof h == "string") { 1292 g = h 1293 } 1294 } 1295 this.settings.exposed = this.settings.exposed || []; 1296 f = this.settings.exposed.length; 1297 while (f--) { 1298 if (this.settings.exposed[f] == g) { 1299 this.settings.exposed.splice(f, 1); 1300 return 1301 } 1302 } 1303 }, 1304 center: function() { 1305 var f = c(b); 1306 this.settings.$next_tip.css({ 1307 top: (((f.height() - this.settings.$next_tip.outerHeight()) / 2) + f.scrollTop()), 1308 left: (((f.width() - this.settings.$next_tip.outerWidth()) / 2) + f.scrollLeft()) 1309 }); 1310 return true 1311 }, 1312 bottom: function() { 1313 return /bottom/i.test(this.settings.tip_settings.tip_location) 1314 }, 1315 top: function() { 1316 return /top/i.test(this.settings.tip_settings.tip_location) 1317 }, 1318 right: function() { 1319 return /right/i.test(this.settings.tip_settings.tip_location) 1320 }, 1321 left: function() { 1322 return /left/i.test(this.settings.tip_settings.tip_location) 1323 }, 1324 corners: function(j) { 1325 var f = c(b), 1326 m = f.height() / 2, 1327 k = Math.ceil(this.settings.$target.offset().top - m + this.settings.$next_tip.outerHeight()), 1328 i = f.width() + f.scrollLeft(), 1329 h = f.height() + k, 1330 g = f.height() + f.scrollTop(), 1331 l = f.scrollTop(); 1332 if (k < l) { 1333 if (k < 0) { 1334 l = 0 1335 } else { 1336 l = k 1337 } 1338 } 1339 if (h > g) { 1340 g = h 1341 } 1342 return [j.offset().top < l, i < j.offset().left + j.outerWidth(), g < j.offset().top + j.outerHeight(), f.scrollLeft() > j.offset().left] 1343 }, 1344 visible: function(f) { 1345 var g = f.length; 1346 while (g--) { 1347 if (f[g]) { 1348 return false 1349 } 1350 } 1351 return true 1352 }, 1353 nub_position: function(f, h, g) { 1354 if (h === "auto") { 1355 f.addClass(g) 1356 } else { 1357 f.addClass(h) 1358 } 1359 }, 1360 startTimer: function() { 1361 if (this.settings.$li.length) { 1362 this.settings.automate = setTimeout(function() { 1363 this.hide(); 1364 this.show(); 1365 this.startTimer() 1366 }.bind(this), this.settings.timer) 1367 } else { 1368 clearTimeout(this.settings.automate) 1369 } 1370 }, 1371 end: function(f) { 1372 if (this.settings.cookie_monster) { 1373 c.cookie(this.settings.cookie_name, "ridden", { 1374 expires: this.settings.cookie_expires, 1375 domain: this.settings.cookie_domain 1376 }) 1377 } 1378 if (this.settings.timer > 0) { 1379 clearTimeout(this.settings.automate) 1380 } 1381 if (this.settings.modal && this.settings.expose) { 1382 this.un_expose() 1383 } 1384 c(this.scope).off("keyup.joyride"); 1385 this.settings.$next_tip.data("closed", true); 1386 this.settings.riding = false; 1387 c(".joyride-modal-bg").hide(); 1388 this.settings.$current_tip.hide(); 1389 if (typeof f === "undefined" || f === false) { 1390 this.settings.post_step_callback(this.settings.$li.index(), this.settings.$current_tip); 1391 this.settings.post_ride_callback(this.settings.$li.index(), this.settings.$current_tip) 1392 } 1393 c(".joyride-tip-guide").remove() 1394 }, 1395 off: function() { 1396 c(this.scope).off(".joyride"); 1397 c(b).off(".joyride"); 1398 c(".joyride-close-tip, .joyride-next-tip, .joyride-modal-bg").off(".joyride"); 1399 c(".joyride-tip-guide, .joyride-modal-bg").remove(); 1400 clearTimeout(this.settings.automate); 1401 this.settings = {} 1402 }, 1403 reflow: function() {} 1404 } 1405}(jQuery, window, window.document)); 1406(function(c, b, a, d) { 1407 Foundation.libs.equalizer = { 1408 name: "equalizer", 1409 version: "5.5.2", 1410 settings: { 1411 use_tallest: true, 1412 before_height_change: c.noop, 1413 after_height_change: c.noop, 1414 equalize_on_stack: false, 1415 act_on_hidden_el: false 1416 }, 1417 init: function(f, g, e) { 1418 Foundation.inherit(this, "image_loaded"); 1419 this.bindings(g, e); 1420 this.reflow() 1421 }, 1422 events: function() { 1423 this.S(b).off(".equalizer").on("resize.fndtn.equalizer", function(f) { 1424 this.reflow() 1425 }.bind(this)) 1426 }, 1427 equalize: function(g) { 1428 var l = false, 1429 m = g.data("equalizer"), 1430 f = g.data(this.attr_name(true) + "-init") || this.settings, 1431 j, e; 1432 if (f.act_on_hidden_el) { 1433 j = m ? g.find("[" + this.attr_name() + '-watch="' + m + '"]') : g.find("[" + this.attr_name() + "-watch]") 1434 } else { 1435 j = m ? g.find("[" + this.attr_name() + '-watch="' + m + '"]:visible') : g.find("[" + this.attr_name() + "-watch]:visible") 1436 } 1437 if (j.length === 0) { 1438 return 1439 } 1440 f.before_height_change(); 1441 g.trigger("before-height-change.fndth.equalizer"); 1442 j.height("inherit"); 1443 if (f.equalize_on_stack === false) { 1444 e = j.first().offset().top; 1445 j.each(function() { 1446 if (c(this).offset().top !== e) { 1447 l = true; 1448 return false 1449 } 1450 }); 1451 if (l) { 1452 return 1453 } 1454 } 1455 var i = j.map(function() { 1456 return c(this).outerHeight(false) 1457 }).get(); 1458 if (f.use_tallest) { 1459 var k = Math.max.apply(null, i); 1460 j.css("height", k) 1461 } else { 1462 var h = Math.min.apply(null, i); 1463 j.css("height", h) 1464 } 1465 f.after_height_change(); 1466 g.trigger("after-height-change.fndtn.equalizer") 1467 }, 1468 reflow: function() { 1469 var e = this; 1470 this.S("[" + this.attr_name() + "]", this.scope).each(function() { 1471 var g = c(this), 1472 h = g.data("equalizer-mq"), 1473 f = true; 1474 if (h) { 1475 h = "is_" + h.replace(/-/g, "_"); 1476 if (Foundation.utils.hasOwnProperty(h)) { 1477 f = false 1478 } 1479 } 1480 e.image_loaded(e.S("img", this), function() { 1481 if (f || Foundation.utils[h]()) { 1482 e.equalize(g) 1483 } else { 1484 var i = g.find("[" + e.attr_name() + "-watch]:visible"); 1485 i.css("height", "auto") 1486 } 1487 }) 1488 }) 1489 } 1490 } 1491})(jQuery, window, window.document); 1492(function(c, b, a, d) { 1493 Foundation.libs.dropdown = { 1494 name: "dropdown", 1495 version: "5.5.2", 1496 settings: { 1497 active_class: "open", 1498 disabled_class: "disabled", 1499 mega_class: "mega", 1500 align: "bottom", 1501 is_hover: false, 1502 hover_timeout: 150, 1503 opened: function() {}, 1504 closed: function() {} 1505 }, 1506 init: function(f, g, e) { 1507 Foundation.inherit(this, "throttle"); 1508 c.extend(true, this.settings, g, e); 1509 this.bindings(g, e) 1510 }, 1511 events: function(g) { 1512 var e = this, 1513 f = e.S; 1514 f(this.scope).off(".dropdown").on("click.fndtn.dropdown", "[" + this.attr_name() + "]", function(i) { 1515 var h = f(this).data(e.attr_name(true) + "-init") || e.settings; 1516 if (!h.is_hover || Modernizr.touch) { 1517 i.preventDefault(); 1518 if (f(this).parent("[data-reveal-id]").length) { 1519 i.stopPropagation() 1520 } 1521 e.toggle(c(this)) 1522 } 1523 }).on("mouseenter.fndtn.dropdown", "[" + this.attr_name() + "], [" + this.attr_name() + "-content]", function(k) { 1524 var j = f(this), 1525 l, i; 1526 clearTimeout(e.timeout); 1527 if (j.data(e.data_attr())) { 1528 l = f("#" + j.data(e.data_attr())); 1529 i = j 1530 } else { 1531 l = j; 1532 i = f("[" + e.attr_name() + '="' + l.attr("id") + '"]') 1533 } 1534 var h = i.data(e.attr_name(true) + "-init") || e.settings; 1535 if (f(k.currentTarget).data(e.data_attr()) && h.is_hover) { 1536 e.closeall.call(e) 1537 } 1538 if (h.is_hover) { 1539 e.open.apply(e, [l, i]) 1540 } 1541 }).on("mouseleave.fndtn.dropdown", "[" + this.attr_name() + "], [" + this.attr_name() + "-content]", function(k) { 1542 var j = f(this); 1543 var h; 1544 if (j.data(e.data_attr())) { 1545 h = j.data(e.data_attr(true) + "-init") || e.settings 1546 } else { 1547 var i = f("[" + e.attr_name() + '="' + f(this).attr("id") + '"]'), 1548 h = i.data(e.attr_name(true) + "-init") || e.settings 1549 } 1550 e.timeout = setTimeout(function() { 1551 if (j.data(e.data_attr())) { 1552 if (h.is_hover) { 1553 e.close.call(e, f("#" + j.data(e.data_attr()))) 1554 } 1555 } else { 1556 if (h.is_hover) { 1557 e.close.call(e, j) 1558 } 1559 } 1560 }.bind(this), h.hover_timeout) 1561 }).on("click.fndtn.dropdown", function(j) { 1562 var i = f(j.target).closest("[" + e.attr_name() + "-content]"); 1563 var h = i.find("a"); 1564 if (h.length >
1564 0 && i.attr("aria-autoclose") !== "false") { 1565 e.close.call(e, f("[" + e.attr_name() + "-content]")) 1566 } 1567 if (j.target !== a && !c.contains(a.documentElement, j.target)) { 1568 return 1569 } 1570 if (f(j.target).closest("[" + e.attr_name() + "]").length > 0) { 1571 return 1572 } 1573 if (!(f(j.target).data("revealId")) && (i.length > 0 && (f(j.target).is("[" + e.attr_name() + "-content]") || c.contains(i.first()[0], j.target)))) { 1574 j.stopPropagation(); 1575 return 1576 } 1577 e.close.call(e, f("[" + e.attr_name() + "-content]")) 1578 }).on("opened.fndtn.dropdown", "[" + e.attr_name() + "-content]", function() { 1579 e.settings.opened.call(this) 1580 }).on("closed.fndtn.dropdown", "[" + e.attr_name() + "-content]", function() { 1581 e.settings.closed.call(this) 1582 }); 1583 f(b).off(".dropdown").on("resize.fndtn.dropdown", e.throttle(function() { 1584 e.resize.call(e) 1585 }, 50)); 1586 this.resize() 1587 }, 1588 close: function(f) { 1589 var e = this; 1590 f.each(function(g) { 1591 var h = c("[" + e.attr_name() + "=" + f[g].id + "]") || c("aria-controls=" + f[g].id + "]"); 1592 h.attr("aria-expanded", "false"); 1593 if (e.S(this).hasClass(e.settings.active_class)) { 1594 e.S(this).css(Foundation.rtl ? "right" : "left", "-99999px").attr("aria-hidden", "true").removeClass(e.settings.active_class).prev("[" + e.attr_name() + "]").removeClass(e.settings.active_class).removeData("target"); 1595 e.S(this).trigger("closed.fndtn.dropdown", [f]) 1596 } 1597 }); 1598 f.removeClass("f-open-" + this.attr_name(true)) 1599 }, 1600 closeall: function() { 1601 var e = this; 1602 c.each(e.S(".f-open-" + this.attr_name(true)), function() { 1603 e.close.call(e, e.S(this)) 1604 }) 1605 }, 1606 open: function(f, e) { 1607 this.css(f.addClass(this.settings.active_class), e); 1608 f.prev("[" + this.attr_name() + "]").addClass(this.settings.active_class); 1609 f.data("target", e.get(0)).trigger("opened.fndtn.dropdown", [f, e]); 1610 f.attr("aria-hidden", "false"); 1611 e.attr("aria-expanded", "true"); 1612 f.focus(); 1613 f.addClass("f-open-" + this.attr_name(true)) 1614 }, 1615 data_attr: function() { 1616 if (this.namespace.length > 0) { 1617 return this.namespace + "-" + this.name 1618 } 1619 return this.name 1620 }, 1621 toggle: function(e) { 1622 if (e.hasClass(this.settings.disabled_class)) { 1623 return 1624 } 1625 var f = this.S("#" + e.data(this.data_attr())); 1626 if (f.length === 0) { 1627 return 1628 } 1629 this.close.call(this, this.S("[" + this.attr_name() + "-content]").not(f)); 1630 if (f.hasClass(this.settings.active_class)) { 1631 this.close.call(this, f); 1632 if (f.data("target") !== e.get(0)) { 1633 this.open.call(this, f, e) 1634 } 1635 } else { 1636 this.open.call(this, f, e) 1637 } 1638 }, 1639 resize: function() { 1640 var f = this.S("[" + this.attr_name() + "-content].open"); 1641 var e = c(f.data("target")); 1642 if (f.length && e.length) { 1643 this.css(f, e) 1644 } 1645 }, 1646 css: function(k, i) { 1647 var e = Math.max((i.width() - k.width()) / 2, 8), 1648 f = i.data(this.attr_name(true) + "-init") || this.settings, 1649 h = k.parent().css("overflow-y") || k.parent().css("overflow"); 1650 this.clear_idx(); 1651 if (this.small()) { 1652 var g = this.dirs.bottom.call(k, i, f); 1653 k.attr("style", "").removeClass("drop-left drop-right drop-top").css({ 1654 position: "absolute", 1655 width: "95%", 1656 "max-width": "none", 1657 top: g.top 1658 }); 1659 k.css(Foundation.rtl ? "right" : "left", e) 1660 } else { 1661 if (h !== "visible") { 1662 var j = i[0].offsetTop + i[0].offsetHeight; 1663 k.attr("style", "").css({ 1664 position: "absolute", 1665 top: j 1666 }); 1667 k.css(Foundation.rtl ? "right" : "left", e) 1668 } else { 1669 this.style(k, i, f) 1670 } 1671 } 1672 return k 1673 }, 1674 style: function(h, g, f) { 1675 var e = c.extend({ 1676 position: "absolute" 1677 }, this.dirs[f.align].call(h, g, f)); 1678 h.attr("style", "").css(e) 1679 }, 1680 dirs: { 1681 _base: function(g) { 1682 var i = this.offsetParent(), 1683 k = i.offset(), 1684 j = g.offset(); 1685 j.top -= k.top; 1686 j.left -= k.left; 1687 j.missRight = false; 1688 j.missTop = false; 1689 j.missLeft = false; 1690 j.leftRightFlag = false; 1691 var f; 1692 if (a.getElementsByClassName("row")[0]) { 1693 f = a.getElementsByClassName("row")[0].clientWidth 1694 } else { 1695 f = b.innerWidth 1696 } 1697 var e = (b.innerWidth - f) / 2; 1698 var h = f; 1699 if (!this.hasClass("mega")) { 1700 if (g.offset().top <= this.outerHeight()) {
1701 j.missTop = true; 1702 h = b.innerWidth - e; 1703 j.leftRightFlag = true 1704 } 1705 if (g.offset().left + this.outerWidth() > g.offset().left + e && g.offset().left - e > this.outerWidth()) { 1706 j.missRight = true; 1707 j.missLeft = false 1708 } 1709 if (g.offset().left - this.outerWidth() <= 0) { 1710 j.missLeft = true; 1711 j.missRight = false 1712 } 1713 } 1714 return j 1715 }, 1716 top: function(f, g) { 1717 var e = Foundation.libs.dropdown, 1718 h = e.dirs._base.call(this, f); 1719 this.addClass("drop-top"); 1720 if (h.missTop == true) { 1721 h.top = h.top + f.outerHeight() + this.outerHeight(); 1722 this.removeClass("drop-top") 1723 } 1724 if (h.missRight == true) { 1725 h.left = h.left - this.outerWidth() + f.outerWidth() 1726 } 1727 if (f.outerWidth() < this.outerWidth() || e.small() || this.hasClass(g.mega_menu)) { 1728 e.adjust_pip(this, f, g, h) 1729 } 1730 if (Foundation.rtl) { 1731 return { 1732 left: h.left - this.outerWidth() + f.outerWidth(), 1733 top: h.top - this.outerHeight() 1734 } 1735 } 1736 return { 1737 left: h.left, 1738 top: h.top - this.outerHeight() 1739 } 1740 }, 1741 bottom: function(f, g) { 1742 var e = Foundation.libs.dropdown, 1743 h = e.dirs._base.call(this, f); 1744 if (h.missRight == true) { 1745 h.left = h.left - this.outerWidth() + f.outerWidth() 1746 } 1747 if (f.outerWidth() < this.outerWidth() || e.small() || this.hasClass(g.mega_menu)) { 1748 e.adjust_pip(this, f, g, h) 1749 } 1750 if (e.rtl) { 1751 return { 1752 left: h.left - this.outerWidth() + f.outerWidth(), 1753 top: h.top + f.outerHeight() 1754 } 1755 } 1756 return { 1757 left: h.left, 1758 top: h.top + f.outerHeight() 1759 } 1760 }, 1761 left: function(e, f) { 1762 var g = Foundation.libs.dropdown.dirs._base.call(this, e); 1763 this.addClass("drop-left"); 1764 if (g.missLeft == true) { 1765 g.left = g.left + this.outerWidth(); 1766 g.top = g.top + e.outerHeight(); 1767 this.removeClass("drop-left") 1768 } 1769 return { 1770 left: g.left - this.outerWidth(), 1771 top: g.top 1772 } 1773 }, 1774 right: function(f, g) { 1775 var h = Foundation.libs.dropdown.dirs._base.call(this, f); 1776 this.addClass("drop-right"); 1777 if (h.missRight == true) { 1778 h.left = h.left - this.outerWidth(); 1779 h.top = h.top + f.outerHeight(); 1780 this.removeClass("drop-right") 1781 } else { 1782 h.triggeredRight = true 1783 } 1784 var e = Foundation.libs.dropdown; 1785 if (f.outerWidth() < this.outerWidth() || e.small() || this.hasClass(g.mega_menu)) { 1786 e.adjust_pip(this, f, g, h) 1787 } 1788 return { 1789 left: h.left + f.outerWidth(), 1790 top: h.top 1791 } 1792 } 1793 }, 1794 adjust_pip: function(n, i, f, g) { 1795 var j = Foundation.stylesheet, 1796 m = 8; 1797 if (n.hasClass(f.mega_class)) { 1798 m = g.left + (i.outerWidth() / 2) - 8 1799 } else { 1800 if (this.small()) { 1801 m += g.left - 8 1802 } 1803 } 1804 this.rule_idx = j.cssRules.length; 1805 var l = ".f-dropdown.open:before", 1806 h = ".f-dropdown.open:after", 1807 e = "left: " + m + "px;", 1808 k = "left: " + (m - 1) + "px;"; 1809 if (g.missRight == true) { 1810 m = n.outerWidth() - 23; 1811 l = ".f-dropdown.open:before", h = ".f-dropdown.open:after", e = "left: " + m + "px;", k = "left: " + (m - 1) + "px;" 1812 } 1813 if (g.triggeredRight == true) { 1814 l = ".f-dropdown.open:before", h = ".f-dropdown.open:after", e = "left:-12px;", k = "left:-14px;" 1815 } 1816 if (j.insertRule) { 1817 j.insertRule([l, "{", e, "}"].join(" "), this.rule_idx); 1818 j.insertRule([h, "{", k, "}"].join(" "), this.rule_idx + 1) 1819 } else { 1820 j.addRule(l, e, this.rule_idx); 1821 j.addRule(h, k, this.rule_idx + 1) 1822 } 1823 }, 1824 clear_idx: function() { 1825 var e = Foundation.stylesheet; 1826 if (typeof this.rule_idx !== "undefined") { 1827 e.deleteRule(this.rule_idx); 1828 e.deleteRule(this.rule_idx); 1829 delete this.rule_idx 1830 } 1831 }, 1832 small: function() { 1833 return matchMedia(Foundation.media_queries.small).matches && !matchMedia(Foundation.media_queries.medium).matches 1834 }, 1835 off: function() { 1836 this.S(this.scope).off(".fndtn.dropdown"); 1837 this.S("html, body").off(".fndtn.dropdown"); 1838 this.S(b).off(".fndtn.dropdown"); 1839 this.S("[data-dropdown-content]").off(".fndtn.dropdown") 1840 }, 1841 reflow: function() {} 1842 } 1843}(jQuery, window, window.document)); 1844(function(c, b, a, d) { 1845 Foundation.libs.clearing = { 1846 name: "clearing", 1847 version: "5.5.2", 1848 settings: { 1849 templates: { 1850 viewing: '<a href="#" class="clearing-close">×</a><div class="visible-img" style="display: none"><div class="clearing-touch-label"></div><img src="data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs%3D" alt="" /><p class="clearing-caption"></p><a href="#" class="clearing-main-prev"><span></span></a><a href="#" class="clearing-main-next"><span></span></a></div><img class="clearing-preload-next" style="display: none" src="data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs%3D" alt="" /><img class="clearing-preload-prev" style="display: none" src="data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs%3D" alt="" />' 1851 }, 1852 close_selectors: ".clearing-close, div.clearing-blackout", 1853 open_selectors: "", 1854 skip_selector: "", 1855 touch_label: "", 1856 init: false,
1857 locked: false 1858 }, 1859 init: function(g, h, f) { 1860 var e = this; 1861 Foundation.inherit(this, "throttle image_loaded"); 1862 this.bindings(h, f); 1863 if (e.S(this.scope).is("[" + this.attr_name() + "]")) { 1864 this.assemble(e.S("li", this.scope)) 1865 } else { 1866 e.S("[" + this.attr_name() + "]", this.scope).each(function() { 1867 e.assemble(e.S("li", this)) 1868 }) 1869 } 1870 }, 1871 events: function(g) { 1872 var e = this, 1873 f = e.S, 1874 h = c(".scroll-container"); 1875 if (h.length > 0) { 1876 this.scope = h 1877 } 1878 f(this.scope).off(".clearing").on("click.fndtn.clearing", "ul[" + this.attr_name() + "] li " + this.settings.open_selectors, function(n, m, l) { 1879 var m = m || f(this), 1880 l = l || m, 1881 j = m.next("li"), 1882 i = m.closest("[" + e.attr_name() + "]").data(e.attr_name(true) + "-init"), 1883 k = f(n.target); 1884 n.preventDefault(); 1885 if (!i) { 1886 e.init(); 1887 i = m.closest("[" + e.attr_name() + "]").data(e.attr_name(true) + "-init") 1888 } 1889 if (l.hasClass("visible") && m[0] === l[0] && j.length > 0 && e.is_open(m)) { 1890 l = j; 1891 k = f("img", l) 1892 } 1893 e.open(k, m, l); 1894 e.update_paddles(l) 1895 }).on("click.fndtn.clearing", ".clearing-main-next", function(i) { 1896 e.nav(i, "next") 1897 }).on("click.fndtn.clearing", ".clearing-main-prev", function(i) { 1898 e.nav(i, "prev") 1899 }).on("click.fndtn.clearing", this.settings.close_selectors, function(i) { 1900 Foundation.libs.clearing.close(i, this) 1901 }); 1902 c(a).on("keydown.fndtn.clearing", function(i) { 1903 e.keydown(i) 1904 }); 1905 f(b).off(".clearing").on("resize.fndtn.clearing", function() { 1906 e.resize() 1907 }); 1908 this.swipe_events(g) 1909 }, 1910 swipe_events: function(g) { 1911 var e = this, 1912 f = e.S; 1913 f(this.scope).on("touchstart.fndtn.clearing", ".visible-img", function(i) { 1914 if (!i.touches) { 1915 i = i.originalEvent 1916 } 1917 var h = { 1918 start_page_x: i.touches[0].pageX, 1919 start_page_y: i.touches[0].pageY, 1920 start_time: (new Date()).getTime(), 1921 delta_x: 0, 1922 is_scrolling: d 1923 }; 1924 f(this).data("swipe-transition", h); 1925 i.stopPropagation() 1926 }).on("touchmove.fndtn.clearing", ".visible-img", function(j) { 1927 if (!j.touches) { 1928 j = j.originalEvent 1929 } 1930 if (j.touches.length > 1 || j.scale && j.scale !== 1) { 1931 return 1932 } 1933 var h = f(this).data("swipe-transition"); 1934 if (typeof h === "undefined") { 1935 h = {} 1936 } 1937 h.delta_x = j.touches[0].pageX - h.start_page_x; 1938 if (Foundation.rtl) { 1939 h.delta_x = -h.delta_x 1940 } 1941 if (typeof h.is_scrolling === "undefined") { 1942 h.is_scrolling = !! (h.is_scrolling || Math.abs(h.delta_x) < Math.abs(j.touches[0].pageY - h.start_page_y)) 1943 } 1944 if (!h.is_scrolling && !h.active) { 1945 j.preventDefault(); 1946 var i = (h.delta_x < 0) ? "next" : "prev"; 1947 h.active = true; 1948 e.nav(j, i) 1949 } 1950 }).on("touchend.fndtn.clearing", ".visible-img", function(h) { 1951 f(this).data("swipe-transition", {}); 1952 h.stopPropagation() 1953 }) 1954 }, 1955 assemble: function(j) { 1956 var m = j.parent(); 1957 if (m.parent().hasClass("carousel")) { 1958 return 1959 } 1960 m.after('<div id="foundationClearingHolder"></div>'); 1961 var e = m.detach(), 1962 l = ""; 1963 if (e[0] == null) { 1964 return 1965 } else { 1966 l = e[0].outerHTML 1967 } 1968 var k = this.S("#foundationClearingHolder"), 1969 h = m.data(this.attr_name(true) + "-init"), 1970 i = { 1971 grid: '<div class="carousel">' + l + "</div>", 1972 viewing: h.templates.viewing 1973 }, 1974 f = '<div class="clearing-assembled"><div>' + i.viewing + i.grid + "</div></div>", 1975 g = this.settings.touch_label; 1976 if (Modernizr.touch) { 1977 f = c(f).find(".clearing-touch-label").html(g).end() 1978 } 1979 k.after(f).remove() 1980 }, 1981 open: function(f, l, m) { 1982 var r = this, 1983 k = c(a.body), 1984 o = m.closest(".clearing-assembled"), 1985 e = r.S("div", o).first(), 1986 j = r.S(".visible-img", e), 1987 h = r.S("img", j).not(f), 1988 q = r.S(".clearing-touch-label", e), 1989 n = false, 1990 i = {}; 1991 c("body").on("touchmove", function(s) { 1992 s.preventDefault() 1993 }); 1994 h.error(function() { 1995 n = true 1996 }); 1997 1998 function p() { 1999 setTimeout(function() { 2000 this.image_loaded(h, function() { 2001 if (h.outerWidth() === 1 && !n) { 2002 p.call(this) 2003 } else { 2004 g.call(this, h) 2005 } 2006 }.bind(this)) 2007 }.bind(this), 100) 2008 } 2009 function g(t) { 2010 var s = c(t); 2011 s.css("visibility", "visible"); 2012 s.trigger("imageVisible"); 2013 k.css("overflow", "hidden"); 2014 o.addClass("clearing-blackout"); 2015 e.addClass("clearing-container"); 2016 j.show();
2017 this.fix_height(m).caption(r.S(".clearing-caption", j), r.S("img", m)).center_and_label(t, q).shift(l, m, function() { 2018 m.closest("li").siblings().removeClass("visible"); 2019 m.closest("li").addClass("visible") 2020 }); 2021 j.trigger("opened.fndtn.clearing") 2022 } 2023 if (!this.locked()) { 2024 j.trigger("open.fndtn.clearing"); 2025 i = this.load(f); 2026 if (i.interchange) { 2027 h.attr("data-interchange", i.interchange).foundation("interchange", "reflow") 2028 } else { 2029 h.attr("src", i.src).attr("data-interchange", "") 2030 } 2031 h.css("visibility", "hidden"); 2032 p.call(this) 2033 } 2034 }, 2035 close: function(k, j) { 2036 k.preventDefault(); 2037 var h = (function(e) { 2038 if (/blackout/.test(e.selector)) { 2039 return e 2040 } else { 2041 return e.closest(".clearing-blackout") 2042 } 2043 }(c(j))), 2044 f = c(a.body), 2045 g, i; 2046 if (j === k.target && h) { 2047 f.css("overflow", ""); 2048 g = c("div", h).first(); 2049 i = c(".visible-img", g); 2050 i.trigger("close.fndtn.clearing"); 2051 this.settings.prev_index = 0; 2052 c("ul[" + this.attr_name() + "]", h).attr("style", "").closest(".clearing-blackout").removeClass("clearing-blackout"); 2053 g.removeClass("clearing-container"); 2054 i.hide(); 2055 i.trigger("closed.fndtn.clearing") 2056 } 2057 c("body").off("touchmove"); 2058 return false 2059 }, 2060 is_open: function(e) { 2061 return e.parent().prop("style").length > 0 2062 }, 2063 keydown: function(j) { 2064 var i = c(".clearing-blackout ul[" + this.attr_name() + "]"), 2065 h = this.rtl ? 37 : 39, 2066 g = this.rtl ? 39 : 37, 2067 f = 27; 2068 if (j.which === h) { 2069 this.go(i, "next") 2070 } 2071 if (j.which === g) { 2072 this.go(i, "prev") 2073 } 2074 if (j.which === f) { 2075 this.S("a.clearing-close").trigger("click.fndtn.clearing") 2076 } 2077 }, 2078 nav: function(h, g) { 2079 var f = c("ul[" + this.attr_name() + "]", ".clearing-blackout"); 2080 h.preventDefault(); 2081 this.go(f, g) 2082 }, 2083 resize: function() { 2084 var f = c("img", ".clearing-blackout .visible-img"), 2085 e = c(".clearing-touch-label", ".clearing-blackout"); 2086 if (f.length) { 2087 this.center_and_label(f, e); 2088 f.trigger("resized.fndtn.clearing") 2089 } 2090 }, 2091 fix_height: function(g) { 2092 var f = g.parent().children(), 2093 e = this; 2094 f.each(function() { 2095 var h = e.S(this), 2096 i = h.find("img"); 2097 if (h.height() > i.outerHeight()) { 2098 h.addClass("fix-height") 2099 } 2100 }).closest("ul").width(f.length * 100 + "%"); 2101 return this 2102 }, 2103 update_paddles: function(f) { 2104 f = f.closest("li"); 2105 var e = f.closest(".carousel").siblings(".visible-img"); 2106 if (f.next().length > 0) { 2107 this.S(".clearing-main-next", e).removeClass("disabled") 2108 } else { 2109 this.S(".clearing-main-next", e).addClass("disabled") 2110 } 2111 if (f.prev().length > 0) { 2112 this.S(".clearing-main-prev", e).removeClass("disabled") 2113 } else { 2114 this.S(".clearing-main-prev", e).addClass("disabled") 2115 } 2116 }, 2117 center_and_label: function(f, e) { 2118 if (!this.rtl && e.length > 0) { 2119 e.css({ 2120 marginLeft: -(e.outerWidth() / 2), 2121 marginTop: -(f.outerHeight() / 2) - e.outerHeight() - 10 2122 }) 2123 } else { 2124 e.css({ 2125 marginRight: -(e.outerWidth() / 2), 2126 marginTop: -(f.outerHeight() / 2) - e.outerHeight() - 10, 2127 left: "auto", 2128 right: "50%" 2129 }) 2130 } 2131 return this 2132 }, 2133 load: function(h) { 2134 var e, g, f; 2135 if (h[0].nodeName === "A") { 2136 e = h.attr("href"); 2137 g = h.data("clearing-interchange") 2138 } else { 2139 f = h.closest("a"); 2140 e = f.attr("href"); 2141 g = f.data("clearing-interchange") 2142 } 2143 this.preload(h); 2144 return { 2145 src: e ? e : h.attr("src"), 2146 interchange: e ? g : h.data("clearing-interchange") 2147 } 2148 }, 2149 preload: function(e) { 2150 this.img(e.closest("li").next(), "next").img(e.closest("li").prev(), "prev") 2151 }, 2152 img: function(g, f) { 2153 if (g.length) { 2154 var e = c(".clearing-preload-" + f), 2155 i = this.S("a", g), 2156 k, h, j; 2157 if (i.length) { 2158 k = i.attr("href"); 2159 h = i.data("clearing-interchange") 2160 } else { 2161 j = this.S("img", g); 2162 k = j.attr("src"); 2163 h = j.data("clearing-interchange") 2164 } 2165 if (h) { 2166 e.attr("data-interchange", h) 2167 } else { 2168 e.attr("src", k); 2169 e.attr("data-interchange", "") 2170 } 2171 } 2172 return this 2173 }, 2174 caption: function(e, g) { 2175 var f = g.attr("data-caption"); 2176 if (f) { 2177 e.html(f).show() 2178 } else { 2179 e.text("").hide() 2180 } 2181 return this 2182 }, 2183 go: function(e, h) { 2184 var g = this.S(".visible", e), 2185 f = g[h](); 2186 if (this.settings.skip_selector && f.find(this.settings.skip_selector).length != 0) { 2187 f = f[h]() 2188 } 2189 if (f.length) { 2190 this.S("img", f).trigger("click.fndtn.clearing", [g, f]).trigger("change.fndtn.clearing") 2191 } 2192 }, 2193 shift: function(j, k, o) { 2194 var l = k.parent(), 2195 i = this.settings.prev_index || k.index(), 2196 m = this.direction(l, j, k), 2197 h = this.rtl ? "right" : "left", 2198 g = parseInt(l.css("left"), 10), 2199 f = k.outerWidth(), 2200 n; 2201 var e = {}; 2202 if (k.index() !== i && !/skip/.test(m)) { 2203 if (/left/.test(m)) { 2204 this.lock(); 2205 e[h] = g + f; 2206 l.animate(e, 300, this.unlock()) 2207 } else { 2208 if (/right/.test(m)) { 2209 this.lock(); 2210 e[h] = g - f; 2211 l.animate(e, 300, this.unlock()) 2212 } 2213 } 2214 } else { 2215 if (/skip/.test(m)) { 2216 n = k.index() - this.settings.up_count; 2217 this.lock(); 2218 if (n > 0) { 2219 e[h] = -(n * f); 2220 l.animate(e, 300, this.unlock()) 2221 } else { 2222 e[h] = 0; 2223 l.animate(e, 300, this.unlock()) 2224 } 2225 } 2226 } 2227 o() 2228 }, 2229 direction: function(h, j, i) { 2230 var g = this.S("li", h), 2231 f = g.outerWidth() + (g.outerWidth() / 4), 2232 k = Math.floor(this.S(".clearing-container").outerWidth() / f) - 1, 2233 l = g.index(i), 2234 e; 2235 this.settings.up_count = k;
2236 if (this.adjacent(this.settings.prev_index, l)) { 2237 if ((l > k) && l > this.settings.prev_index) { 2238 e = "right" 2239 } else { 2240 if ((l > k - 1) && l <= this.settings.prev_index) { 2241 e = "left" 2242 } else { 2243 e = false 2244 } 2245 } 2246 } else { 2247 e = "skip" 2248 } 2249 this.settings.prev_index = l; 2250 return e 2251 }, 2252 adjacent: function(g, f) { 2253 for (var e = f + 1; e >= f - 1; e--) { 2254 if (e === g) { 2255 return true 2256 } 2257 } 2258 return false 2259 }, 2260 lock: function() { 2261 this.settings.locked = true 2262 }, 2263 unlock: function() { 2264 this.settings.locked = false 2265 }, 2266 locked: function() { 2267 return this.settings.locked 2268 }, 2269 off: function() { 2270 this.S(this.scope).off(".fndtn.clearing"); 2271 this.S(b).off(".fndtn.clearing") 2272 }, 2273 reflow: function() { 2274 this.init() 2275 } 2276 } 2277}(jQuery, window, window.document)); 2278(function(c, f, g, b) { 2279 var i = function() {}; 2280 var a = function(o, p) { 2281 if (o.hasClass(p.slides_container_class)) { 2282 return this 2283 } 2284 var u = this, 2285 k, j = o, 2286 v, t, n, s = 0, 2287 m, l, q = false, 2288 r = false; 2289 u.slides = function() { 2290 return j.children(p.slide_selector) 2291 }; 2292 u.slides().first().addClass(p.active_slide_class); 2293 u.update_slide_number = function(w) { 2294 if (p.slide_number) { 2295 v.find("span:first").text(parseInt(w) + 1); 2296 v.find("span:last").text(u.slides().length) 2297 } 2298 if (p.bullets) { 2299 t.children().removeClass(p.bullets_active_class); 2300 c(t.children().get(w)).addClass(p.bullets_active_class) 2301 } 2302 }; 2303 u.update_active_link = function(w) { 2304 var x = c('[data-orbit-link="' + u.slides().eq(w).attr("data-orbit-slide") + '"]'); 2305 x.siblings().removeClass(p.bullets_active_class); 2306 x.addClass(p.bullets_active_class) 2307 }; 2308 u.build_markup = function() { 2309 j.wrap('<div class="' + p.container_class + '"></div>'); 2310 k = j.parent(); 2311 j.addClass(p.slides_container_class); 2312 if (p.stack_on_small) { 2313 k.addClass(p.stack_on_small_class) 2314 } 2315 if (p.navigation_arrows) { 2316 k.append(c('<a href="#"><span></span></a>').addClass(p.prev_class)); 2317 k.append(c('<a href="#"><span></span></a>').addClass(p.next_class)) 2318 } 2319 if (p.timer) { 2320 n = c("<div>").addClass(p.timer_container_class); 2321 n.append("<span>"); 2322 n.append(c("<div>").addClass(p.timer_progress_class)); 2323 n.addClass(p.timer_paused_class); 2324 k.append(n) 2325 } 2326 if (p.slide_number) { 2327 v = c("<div>").addClass(p.slide_number_class); 2328 v.append("<span></span> " + p.slide_number_text + " <span></span>"); 2329 k.append(v) 2330 } 2331 if (p.bullets) { 2332 t = c("<ol>").addClass(p.bullets_container_class); 2333 k.append(t); 2334 t.wrap('<div class="orbit-bullets-container"></div>'); 2335 u.slides().each(function(w, y) { 2336 var x = c("<li>").attr("data-orbit-slide", w).on("click", u.link_bullet); 2337 t.append(x) 2338 }) 2339 } 2340 }; 2341 u._goto = function(C, B) { 2342 if (C === s) { 2343 return false 2344 } 2345 if (typeof l === "object") { 2346 l.restart() 2347 } 2348 var z = u.slides(); 2349 var x = "next"; 2350 q = true; 2351 if (C < s) { 2352 x = "prev" 2353 } 2354 if (C >= z.length) { 2355 if (!p.circular) { 2356 return false 2357 } 2358 C = 0 2359 } else { 2360 if (C < 0) { 2361 if (!p.circular) { 2362 return false 2363 } 2364 C = z.length - 1 2365 } 2366 } 2367 var A = c(z.get(s)); 2368 var y = c(z.get(C)); 2369 A.css("zIndex", 2); 2370 A.removeClass(p.active_slide_class); 2371 y.css("zIndex", 4).addClass(p.active_slide_class); 2372 j.trigger("before-slide-change.fndtn.orbit"); 2373 p.before_slide_change(); 2374 u.update_active_link(C); 2375 var D = function() { 2376 var E = function() { 2377 s = C; 2378 q = false; 2379 if (B === true) { 2380 l = u.create_timer(); 2381 l.start() 2382 } 2383 u.update_slide_number(s); 2384 j.trigger("after-slide-change.fndtn.orbit", [{ 2385 slide_number: s, 2386 total_slides: z.length 2387 }]); 2388 p.after_slide_change(s, z.length) 2389 }; 2390 if (j.outerHeight() != y.outerHeight() && p.variable_height) { 2391 j.animate({ 2392 height: y.outerHeight() 2393 }, 250, "linear", E) 2394 } else { 2395 E() 2396 } 2397 }; 2398 if (z.length === 1) { 2399 D(); 2400 return false 2401 } 2402 var w = function() { 2403 if (x === "next") { 2404 m.next(A, y, D) 2405 } 2406 if (x === "prev") { 2407 m.prev(A, y, D) 2408 } 2409 }; 2410 if (y.outerHeight() > j.outerHeight() && p.variable_height) { 2411 j.animate({ 2412 height: y.outerHeight() 2413 }, 250, "linear", w) 2414 } else { 2415 w() 2416 } 2417 }; 2418 u.next = function(w) { 2419 w.stopImmediatePropagation(); 2420 w.preventDefault(); 2421 u._goto(s + 1) 2422 }; 2423 u.prev = function(w) { 2424 w.stopImmediatePropagation(); 2425 w.preventDefault(); 2426 u._goto(s - 1) 2427 }; 2428 u.link_custom = function(y) { 2429 y.preventDefault(); 2430 var x = c(this).attr("data-orbit-link"); 2431 if ((typeof x === "string") && (x = c.trim(x)) != "") { 2432 var w = k.find("[data-orbit-slide=" + x + "]"); 2433 if (w.index() != -1) { 2434 u._goto(w.index()) 2435 } 2436 } 2437 }; 2438 u.link_bullet = function(y) { 2439 var x = c(this).attr("data-orbit-slide"); 2440 if ((typeof x === "string") && (x = c.trim(x)) != "") { 2441 if (isNaN(parseInt(x))) { 2442 var w = k.find("[data-orbit-slide=" + x + "]"); 2443 if (w.index() != -1) { 2444 u._goto(w.index() + 1) 2445 } 2446 } else { 2447 u._goto(parseInt(x)) 2448 } 2449 } 2450 }; 2451 u.timer_callback = function() { 2452 u._goto(s + 1, true) 2453 }; 2454 u.compute_dimensions = function() { 2455 var x = c(u.slides().get(s)); 2456 var w = x.outerHeight(); 2457 if (!p.variable_height) { 2458 u.slides().each(function() { 2459 if (c(this).outerHeight() > w) { 2460 w = c(this).outerHeight() 2461 } 2462 }) 2463 } 2464 j.height(w) 2465 }; 2466 u.create_timer = function() {
2467 var w = new h(k.find("." + p.timer_container_class), p, u.timer_callback); 2468 return w 2469 }; 2470 u.stop_timer = function() { 2471 if (typeof l === "object") { 2472 l.stop() 2473 } 2474 }; 2475 u.toggle_timer = function() { 2476 var w = k.find("." + p.timer_container_class); 2477 if (w.hasClass(p.timer_paused_class)) { 2478 if (typeof l === "undefined") { 2479 l = u.create_timer() 2480 } 2481 l.start() 2482 } else { 2483 if (typeof l === "object") { 2484 l.stop() 2485 } 2486 } 2487 }; 2488 u.init = function() { 2489 u.build_markup(); 2490 if (p.timer) { 2491 l = u.create_timer(); 2492 Foundation.utils.image_loaded(this.slides().children("img"), l.start) 2493 } 2494 m = new e(p, j); 2495 if (p.animation === "slide") { 2496 m = new d(p, j) 2497 } 2498 k.on("click", "." + p.next_class, u.next); 2499 k.on("click", "." + p.prev_class, u.prev); 2500 if (p.next_on_click) { 2501 k.on("click", "." + p.slides_container_class + " [data-orbit-slide]", u.link_bullet) 2502 } 2503 k.on("click", u.toggle_timer); 2504 if (p.swipe) { 2505 k.on("touchstart.fndtn.orbit", function(x) { 2506 if (!x.touches) { 2507 x = x.originalEvent 2508 } 2509 var w = { 2510 start_page_x: x.touches[0].pageX, 2511 start_page_y: x.touches[0].pageY, 2512 start_time: (new Date()).getTime(), 2513 delta_x: 0, 2514 is_scrolling: b 2515 }; 2516 k.data("swipe-transition", w); 2517 x.stopPropagation() 2518 }).on("touchmove.fndtn.orbit", function(y) { 2519 if (!y.touches) { 2520 y = y.originalEvent 2521 } 2522 if (y.touches.length > 1 || y.scale && y.scale !== 1) { 2523 return 2524 } 2525 var w = k.data("swipe-transition"); 2526 if (typeof w === "undefined") { 2527 w = {} 2528 } 2529 w.delta_x = y.touches[0].pageX - w.start_page_x; 2530 if (typeof w.is_scrolling === "undefined") { 2531 w.is_scrolling = !! (w.is_scrolling || Math.abs(w.delta_x) < Math.abs(y.touches[0].pageY - w.start_page_y)) 2532 } 2533 if (!w.is_scrolling && !w.active) { 2534 y.preventDefault(); 2535 var x = (w.delta_x < 0) ? (s + 1) : (s - 1); 2536 w.active = true; 2537 u._goto(x) 2538 } 2539 }).on("touchend.fndtn.orbit", function(w) { 2540 k.data("swipe-transition", {}); 2541 w.stopPropagation() 2542 }) 2543 } 2544 k.on("mouseenter.fndtn.orbit", function(w) { 2545 if (p.timer && p.pause_on_hover) { 2546 u.stop_timer() 2547 } 2548 }).on("mouseleave.fndtn.orbit", function(w) { 2549 if (p.timer && p.resume_on_mouseout) { 2550 l.start() 2551 } 2552 }); 2553 c(g).on("click", "[data-orbit-link]", u.link_custom); 2554 c(f).on("load resize", u.compute_dimensions); 2555 Foundation.utils.image_loaded(this.slides().children("img"), u.compute_dimensions); 2556 Foundation.utils.image_loaded(this.slides().children("img"), function() { 2557 k.prev("." + p.preloader_class).css("display", "none"); 2558 u.update_slide_number(0); 2559 u.update_active_link(0); 2560 j.trigger("ready.fndtn.orbit") 2561 }) 2562 }; 2563 u.init() 2564 }; 2565 var h = function(l, n, q) { 2566 var r = this, 2567 o = n.timer_speed, 2568 j = l.find("." + n.timer_progress_class), 2569 k, p, m = -1; 2570 this.update_progress = function(s) { 2571 var t = j.clone(); 2572 t.attr("style", ""); 2573 t.css("width", s + "%"); 2574 j.replaceWith(t); 2575 j = t 2576 }; 2577 this.restart = function() { 2578 clearTimeout(p); 2579 l.addClass(n.timer_paused_class); 2580 m = -1; 2581 r.update_progress(0) 2582 }; 2583 this.start = function() { 2584 if (!l.hasClass(n.timer_paused_class)) { 2585 return true 2586 } 2587 m = (m === -1) ? o : m; 2588 l.removeClass(n.timer_paused_class); 2589 k = new Date().getTime(); 2590 j.animate({ 2591 width: "100%" 2592 }, m, "linear"); 2593 p = setTimeout(function() { 2594 r.restart(); 2595 q() 2596 }, m); 2597 l.trigger("timer-started.fndtn.orbit") 2598 }; 2599 this.stop = function() { 2600 if (l.hasClass(n.timer_paused_class)) { 2601 return true 2602 } 2603 clearTimeout(p); 2604 l.addClass(n.timer_paused_class); 2605 var t = new Date().getTime(); 2606 m = m - (t - k); 2607 var s = 100 - ((m / o) * 100); 2608 r.update_progress(s); 2609 l.trigger("timer-stopped.fndtn.orbit") 2610 } 2611 }; 2612 var d = function(m, j) { 2613 var o = m.animation_speed; 2614 var l = (c("html[dir=rtl]").length === 1); 2615 var n = l ? "marginRight" : "marginLeft"; 2616 var k = {}; 2617 k[n] = "0%"; 2618 this.next = function(q, p, r) { 2619 q.animate({ 2620 marginLeft: "-100%" 2621 }, o); 2622 p.animate(k, o, function() { 2623 q.css(n, "100%"); 2624 r() 2625 }) 2626 }; 2627 this.prev = function(q, p, r) { 2628 q.animate({ 2629 marginLeft: "100%" 2630 }, o); 2631 p.css(n, "-100%"); 2632 p.animate(k, o, function() { 2633 q.css(n, "100%"); 2634 r() 2635 }) 2636 } 2637 }; 2638 var e = function(l, j) { 2639 var n = l.animation_speed; 2640 var k = (c("html[dir=rtl]").length === 1); 2641 var m = k ? "marginRight" : "marginLeft"; 2642 this.next = function(p, o, q) { 2643 o.css({ 2644 margin: "0%", 2645 opacity: "0.01" 2646 }); 2647 o.animate({ 2648 opacity: "1" 2649 }, n, "linear", function() { 2650 p.css("margin", "100%"); 2651 q() 2652 }) 2653 }; 2654 this.prev = function(p, o, q) { 2655 o.css({ 2656 margin: "0%", 2657 opacity: "0.01" 2658 }); 2659 o.animate({ 2660 opacity: "1" 2661 }, n, "linear", function() { 2662 p.css("margin", "100%"); 2663 q() 2664 }) 2665 } 2666 }; 2667 Foundation.libs = Foundation.libs || {}; 2668 Foundation.libs.orbit = { 2669 name: "orbit", 2670 version: "5.5.2", 2671 settings: { 2672 animation: "slide", 2673 timer_speed: 10000, 2674 pause_on_hover: true, 2675 resume_on_mouseout: false, 2676 next_on_click: true, 2677 animation_speed: 500, 2678 stack_on_small: false, 2679 navigation_arrows: true, 2680 slide_number: true, 2681 slide_number_text: "of",
2682 container_class: "orbit-container", 2683 stack_on_small_class: "orbit-stack-on-small", 2684 next_class: "orbit-next", 2685 prev_class: "orbit-prev", 2686 timer_container_class: "orbit-timer", 2687 timer_paused_class: "paused", 2688 timer_progress_class: "orbit-progress", 2689 slides_container_class: "orbit-slides-container", 2690 preloader_class: "preloader", 2691 slide_selector: "*", 2692 bullets_container_class: "orbit-bullets", 2693 bullets_active_class: "active", 2694 slide_number_class: "orbit-slide-number", 2695 caption_class: "orbit-caption", 2696 active_slide_class: "active", 2697 orbit_transition_class: "orbit-transitioning", 2698 bullets: true, 2699 circular: true, 2700 timer: true, 2701 variable_height: false, 2702 swipe: true, 2703 before_slide_change: i, 2704 after_slide_change: i 2705 }, 2706 init: function(l, m, k) { 2707 var j = this; 2708 this.bindings(m, k) 2709 }, 2710 events: function(j) { 2711 var k = new a(this.S(j), this.S(j).data("orbit-init")); 2712 this.S(j).data(this.name + "-instance", k) 2713 }, 2714 reflow: function() { 2715 var k = this; 2716 if (k.S(k.scope).is("[data-orbit]")) { 2717 var l = k.S(k.scope); 2718 var j = l.data(k.name + "-instance"); 2719 j.compute_dimensions() 2720 } else { 2721 k.S("[data-orbit]", k.scope).each(function(n, p) { 2722 var o = k.S(p); 2723 var q = k.data_options(o); 2724 var m = o.data(k.name + "-instance"); 2725 m.compute_dimensions() 2726 }) 2727 } 2728 } 2729 } 2730}(jQuery, window, window.document)); 2731(function(c, b, a, d) { 2732 Foundation.libs.offcanvas = { 2733 name: "offcanvas", 2734 version: "5.5.2", 2735 settings: { 2736 open_method: "move", 2737 close_on_click: false 2738 }, 2739 init: function(f, g, e) { 2740 this.bindings(g, e) 2741 }, 2742 events: function() { 2743 var f = this, 2744 h = f.S, 2745 g = "", 2746 i = "", 2747 e = ""; 2748 if (this.settings.open_method === "move") { 2749 g = "move-"; 2750 i = "right"; 2751 e = "left" 2752 } else { 2753 if (this.settings.open_method === "overlap_single") { 2754 g = "offcanvas-overlap-"; 2755 i = "right"; 2756 e = "left" 2757 } else { 2758 if (this.settings.open_method === "overlap") { 2759 g = "offcanvas-overlap" 2760 } 2761 } 2762 } 2763 h(this.scope).off(".offcanvas").on("click.fndtn.offcanvas", ".left-off-canvas-toggle", function(j) { 2764 f.click_toggle_class(j, g + i); 2765 if (f.settings.open_method !== "overlap") { 2766 h(".left-submenu").removeClass(g + i) 2767 } 2768 c(".left-off-canvas-toggle").attr("aria-expanded", "true") 2769 }).on("click.fndtn.offcanvas", ".left-off-canvas-menu a", function(l) { 2770 var k = f.get_settings(l); 2771 var j = h(this).parent(); 2772 if (k.close_on_click && !j.hasClass("has-submenu") && !j.hasClass("back")) { 2773 f.hide.call(f, g + i, f.get_wrapper(l)); 2774 j.parent().removeClass(g + i) 2775 } else { 2776 if (h(this).parent().hasClass("has-submenu")) { 2777 l.preventDefault(); 2778 h(this).siblings(".left-submenu").toggleClass(g + i) 2779 } else { 2780 if (j.hasClass("back")) { 2781 l.preventDefault(); 2782 j.parent().removeClass(g + i) 2783 } 2784 } 2785 } 2786 c(".left-off-canvas-toggle").attr("aria-expanded", "true") 2787 }).on("click.fndtn.offcanvas", ".right-off-canvas-toggle", function(j) { 2788 f.click_toggle_class(j, g + e); 2789 if (f.settings.open_method !== "overlap") { 2790 h(".right-submenu").removeClass(g + e) 2791 } 2792 c(".right-off-canvas-toggle").attr("aria-expanded", "true") 2793 }).on("click.fndtn.offcanvas", ".right-off-canvas-menu a", function(l) { 2794 var k = f.get_settings(l); 2795 var j = h(this).parent(); 2796 if (k.close_on_click && !j.hasClass("has-submenu") && !j.hasClass("back")) { 2797 f.hide.call(f, g + e, f.get_wrapper(l)); 2798 j.parent().removeClass(g + e) 2799 } else { 2800 if (h(this).parent().hasClass("has-submenu")) { 2801 l.preventDefault(); 2802 h(this).siblings(".right-submenu").toggleClass(g + e) 2803 } else { 2804 if (j.hasClass("back")) { 2805 l.preventDefault(); 2806 j.parent().removeClass(g + e) 2807 } 2808 } 2809 } 2810 c(".right-off-canvas-toggle").attr("aria-expanded", "true") 2811 }).on("click.fndtn.offcanvas", ".exit-off-canvas", function(j) { 2812 f.click_remove_class(j, g + e); 2813 h(".right-submenu").removeClass(g + e); 2814 if (i) { 2815 f.click_remove_class(j, g + i); 2816 h(".left-submenu").removeClass(g + e) 2817 } 2818 c(".right-off-canvas-toggle").attr("aria-expanded", "true") 2819 }).on("click.fndtn.offcanvas", ".exit-off-canvas", function(j) { 2820 f.click_remove_class(j, g + e); 2821 c(".left-off-canvas-toggle").attr("aria-expanded", "false"); 2822 if (i) { 2823 f.click_remove_class(j, g + i); 2824 c(".right-off-canvas-toggle").attr("aria-expanded", "false") 2825 } 2826 }) 2827 }, 2828 toggle: function(f, e) { 2829 e = e || this.get_wrapper(); 2830 if (e.is("." + f)) { 2831 this.hide(f, e) 2832 } else { 2833 this.show(f, e) 2834 } 2835 }, 2836 show: function(f, e) { 2837 e = e || this.get_wrapper(); 2838 e.trigger("open.fndtn.offcanvas"); 2839 e.addClass(f) 2840 }, 2841 hide: function(f, e) { 2842 e = e || this.get_wrapper(); 2843 e.trigger("close.fndtn.offcanvas"); 2844 e.removeClass(f) 2845 }, 2846 click_toggle_class: function(h, g) { 2847 h.preventDefault(); 2848 var f = this.get_wrapper(h); 2849 this.toggle(g, f) 2850 }, 2851 click_remove_class: function(h, g) { 2852 h.preventDefault(); 2853 var f = this.get_wrapper(h); 2854 this.hide(g, f) 2855 }, 2856 get_settings: function(g) { 2857 var f = this.S(g.target).closest("[" + this.attr_name() + "]"); 2858 return f.data(this.attr_name(true) + "-init") || this.settings 2859 }, 2860 get_wrapper: function(g) { 2861 var f = this.S(g ? g.target : this.scope).closest(".off-canvas-wrap"); 2862 if (f.length === 0) { 2863 f = this.S(".off-canvas-wrap") 2864 } 2865 return f 2866 }, 2867 reflow: function() {} 2868 } 2869}(jQuery, window, window.document)); 2870(function(c, b, a, d) { 2871 Foundation.libs.alert = { 2872 name: "alert", 2873 version: "5.5.2", 2874 settings: { 2875 callback: function() {} 2876 }, 2877 init: function(f, g, e) { 2878 this.bindings(g, e) 2879 }, 2880 events: function() { 2881 var e = this, 2882 f = this.S; 2883 c(this.scope).off(".alert").on("click.fndtn.alert", "[" + this.attr_name() + "] .close", function(i) { 2884 var g = f(this).closest("[" + e.attr_name() + "]"), 2885 h = g.data(e.attr_name(true) + "-init") || e.settings; 2886 i.preventDefault(); 2887 if (Modernizr.csstransitions) { 2888 g.addClass("alert-close"); 2889 g.on("transitionend webkitTransitionEnd oTransitionEnd", function(j) { 2890 f(this).trigger("close.fndtn.alert").remove(); 2891 h.callback() 2892 }) 2893 } else { 2894 g.fadeOut(300, function() { 2895 f(this).trigger("close.fndtn.alert").remove(); 2896 h.callback() 2897 }) 2898 } 2899 }) 2900 }, 2901 reflow: function() {} 2902 } 2903}(jQuery, window, window.document)); 2904(function(d, c, a, e) { 2905 Foundation.libs.reveal = { 2906 name: "reveal", 2907 version: "5.5.2",
2908 locked: false, 2909 settings: { 2910 animation: "fadeAndPop", 2911 animation_speed: 250, 2912 close_on_background_click: true, 2913 close_on_esc: true, 2914 dismiss_modal_class: "close-reveal-modal", 2915 multiple_opened: false, 2916 bg_class: "reveal-modal-bg", 2917 root_element: "body", 2918 open: function() {}, 2919 opened: function() {}, 2920 close: function() {}, 2921 closed: function() {}, 2922 on_ajax_error: d.noop, 2923 bg: d(".reveal-modal-bg"), 2924 css: { 2925 open: { 2926 opacity: 0, 2927 visibility: "visible", 2928 display: "block" 2929 }, 2930 close: { 2931 opacity: 1, 2932 visibility: "hidden", 2933 display: "none" 2934 } 2935 } 2936 }, 2937 init: function(g, h, f) { 2938 d.extend(true, this.settings, h, f); 2939 this.bindings(h, f) 2940 }, 2941 events: function(h) { 2942 var f = this, 2943 g = f.S; 2944 g(this.scope).off(".reveal").on("click.fndtn.reveal", "[" + this.add_namespace("data-reveal-id") + "]:not([disabled])", function(l) { 2945 l.preventDefault(); 2946 if (!f.locked) { 2947 var j = g(this), 2948 k = j.data(f.data_attr("reveal-ajax")), 2949 m = j.data(f.data_attr("reveal-replace-content")); 2950 f.locked = true; 2951 if (typeof k === "undefined") { 2952 f.open.call(f, j) 2953 } else { 2954 var i = k === true ? j.attr("href") : k; 2955 f.open.call(f, j, { 2956 url: i 2957 }, { 2958 replaceContentSel: m 2959 }) 2960 } 2961 } 2962 }); 2963 g(a).on("click.fndtn.reveal", this.close_targets(), function(j) { 2964 j.preventDefault(); 2965 if (!f.locked) { 2966 var i = g("[" + f.attr_name() + "].open").data(f.attr_name(true) + "-init") || f.settings, 2967 k = g(j.target)[0] === g("." + i.bg_class)[0]; 2968 if (k) { 2969 if (i.close_on_background_click) { 2970 j.stopPropagation() 2971 } else { 2972 return 2973 } 2974 } 2975 f.locked = true; 2976 f.close.call(f, k ? g("[" + f.attr_name() + "].open:not(.toback)") : g(this).closest("[" + f.attr_name() + "]")) 2977 } 2978 }); 2979 if (g("[" + f.attr_name() + "]", this.scope).length > 0) { 2980 g(this.scope).on("open.fndtn.reveal", this.settings.open).on("opened.fndtn.reveal", this.settings.opened).on("opened.fndtn.reveal", this.open_video).on("close.fndtn.reveal", this.settings.close).on("closed.fndtn.reveal", this.settings.closed).on("closed.fndtn.reveal", this.close_video) 2981 } else { 2982 g(this.scope).on("open.fndtn.reveal", "[" + f.attr_name() + "]", this.settings.open).on("opened.fndtn.reveal", "[" + f.attr_name() + "]", this.settings.opened).on("opened.fndtn.reveal", "[" + f.attr_name() + "]", this.open_video).on("close.fndtn.reveal", "[" + f.attr_name() + "]", this.settings.close).on("closed.fndtn.reveal", "[" + f.attr_name() + "]", this.settings.closed).on("closed.fndtn.reveal", "[" + f.attr_name() + "]", this.close_video) 2983 } 2984 return true 2985 }, 2986 key_up_on: function(g) { 2987 var f = this; 2988 f.S("body").off("keyup.fndtn.reveal").on("keyup.fndtn.reveal", function(j) { 2989 var h = f.S("[" + f.attr_name() + "].open"), 2990 i = h.data(f.attr_name(true) + "-init") || f.settings; 2991 if (i && j.which === 27 && i.close_on_esc && !f.locked) { 2992 f.close.call(f, h) 2993 } 2994 }); 2995 return true 2996 }, 2997 key_up_off: function(f) { 2998 this.S("body").off("keyup.fndtn.reveal"); 2999 return true 3000 }, 3001 open: function(j, k) { 3002 var g = this, 3003 i; 3004 if (j) { 3005 if (typeof j.selector !== "undefined") { 3006 i = g.S("#" + j.data(g.data_attr("reveal-id"))).first() 3007 } else { 3008 i = g.S(this.scope); 3009 k = j 3010 } 3011 } else { 3012 i = g.S(this.scope) 3013 } 3014 var h = i.data(g.attr_name(true) + "-init"); 3015 h = h || this.settings; 3016 if (i.hasClass("open") && j.attr("data-reveal-id") == i.attr("id")) { 3017 return g.close(i) 3018 } 3019 if (!i.hasClass("open")) { 3020 var f = g.S("[" + g.attr_name() + "].open"); 3021 if (typeof i.data("css-top") === "undefined") { 3022 i.data("css-top", parseInt(i.css("top"), 10)).data("offset", this.cache_offset(i)) 3023 } 3024 i.attr("tabindex", "0").attr("aria-hidden", "false"); 3025 this.key_up_on(i); 3026 i.on("open.fndtn.reveal", function(m) { 3027 if (m.namespace !== "fndtn.reveal") { 3028 return 3029 } 3030 }); 3031 i.on("open.fndtn.reveal").trigger("open.fndtn.reveal"); 3032 if (f.length < 1) { 3033 this.toggle_bg(i, true) 3034 } 3035 if (typeof k === "string") { 3036 k = { 3037 url: k 3038 } 3039 } 3040 if (typeof k === "undefined" || !k.url) { 3041 if (f.length > 0) { 3042 if (h.multiple_opened) { 3043 g.to_back(f) 3044 } else {
3045 g.hide(f, h.css.close) 3046 } 3047 } 3048 this.show(i, h.css.open) 3049 } else { 3050 var l = typeof k.success !== "undefined" ? k.success : null; 3051 d.extend(k, { 3052 success: function(o, p, n) { 3053 if (d.isFunction(l)) { 3054 var m = l(o, p, n); 3055 if (typeof m == "string") { 3056 o = m 3057 } 3058 } 3059 if (typeof options !== "undefined" && typeof options.replaceContentSel !== "undefined") { 3060 i.find(options.replaceContentSel).html(o) 3061 } else { 3062 i.html(o) 3063 } 3064 g.S(i).foundation("section", "reflow"); 3065 g.S(i).children().foundation(); 3066 if (f.length > 0) { 3067 if (h.multiple_opened) { 3068 g.to_back(f) 3069 } else { 3070 g.hide(f, h.css.close) 3071 } 3072 } 3073 g.show(i, h.css.open) 3074 } 3075 }); 3076 if (h.on_ajax_error !== d.noop) { 3077 d.extend(k, { 3078 error: h.on_ajax_error 3079 }) 3080 } 3081 d.ajax(k) 3082 } 3083 } 3084 g.S(c).trigger("resize") 3085 }, 3086 close: function(i) { 3087 var i = i && i.length ? i : this.S(this.scope), 3088 h = this.S("[" + this.attr_name() + "].open"), 3089 g = i.data(this.attr_name(true) + "-init") || this.settings, 3090 f = this; 3091 if (h.length > 0) { 3092 i.removeAttr("tabindex", "0").attr("aria-hidden", "true"); 3093 this.locked = true; 3094 this.key_up_off(i); 3095 i.trigger("close.fndtn.reveal"); 3096 if ((g.multiple_opened && h.length === 1) || !g.multiple_opened || i.length > 1) { 3097 f.toggle_bg(i, false); 3098 f.to_front(i) 3099 } 3100 if (g.multiple_opened) { 3101 f.hide(i, g.css.close, g); 3102 f.to_front(d(d.makeArray(h).reverse()[1])) 3103 } else { 3104 f.hide(h, g.css.close, g) 3105 } 3106 } 3107 }, 3108 close_targets: function() { 3109 var f = "." + this.settings.dismiss_modal_class; 3110 if (this.settings.close_on_background_click) { 3111 return f + ", ." + this.settings.bg_class 3112 } 3113 return f 3114 }, 3115 toggle_bg: function(f, g) { 3116 if (this.S("." + this.settings.bg_class).length === 0) { 3117 this.settings.bg = d("<div />", { 3118 "class": this.settings.bg_class 3119 }).appendTo("body").hide() 3120 } 3121 var h = this.settings.bg.filter(":visible").length > 0; 3122 if (g != h) { 3123 if (g == e ? h : !g) { 3124 this.hide(this.settings.bg) 3125 } else { 3126 this.show(this.settings.bg) 3127 } 3128 } 3129 }, 3130 show: function(l, j) { 3131 if (j) { 3132 var k = l.data(this.attr_name(true) + "-init") || this.settings, 3133 i = k.root_element, 3134 h = this; 3135 if (l.parent(i).length === 0) { 3136 var m = l.wrap('<div style="display: none;" />').parent(); 3137 l.on("closed.fndtn.reveal.wrapped", function() { 3138 l.detach().appendTo(m); 3139 l.unwrap().unbind("closed.fndtn.reveal.wrapped") 3140 }); 3141 l.detach().appendTo(i) 3142 } 3143 var g = b(k.animation); 3144 if (!g.animate) { 3145 this.locked = false 3146 } 3147 if (g.pop) { 3148 j.top = d(c).scrollTop() - l.data("offset") + "px"; 3149 var f = { 3150 top: d(c).scrollTop() + l.data("css-top") + "px", 3151 opacity: 1 3152 }; 3153 return setTimeout(function() { 3154 return l.css(j).animate(f, k.animation_speed, "linear", function() { 3155 h.locked = false; 3156 l.trigger("opened.fndtn.reveal") 3157 }).addClass("open") 3158 }, k.animation_speed / 2) 3159 } 3160 if (g.fade) { 3161 j.top = d(c).scrollTop() + l.data("css-top") + "px"; 3162 var f = { 3163 opacity: 1 3164 }; 3165 return setTimeout(function() { 3166 return l.css(j).animate(f, k.animation_speed, "linear", function() { 3167 h.locked = false; 3168 l.trigger("opened.fndtn.reveal") 3169 }).addClass("open") 3170 }, k.animation_speed / 2) 3171 } 3172 return l.css(j).show().css({ 3173 opacity: 1 3174 }).addClass("open").trigger("opened.fndtn.reveal") 3175 } 3176 var k = this.settings; 3177 if (b(k.animation).fade) { 3178 return l.fadeIn(k.animation_speed / 2) 3179 } 3180 this.locked = false; 3181 return l.show() 3182 }, 3183 to_back: function(f) { 3184 f.addClass("toback") 3185 }, 3186 to_front: function(f) { 3187 f.removeClass("toback") 3188 }, 3189 hide: function(k, i) { 3190 if (i) { 3191 var j = k.data(this.attr_name(true) + "-init"), 3192 h = this; 3193 j = j || this.settings; 3194 var g = b(j.animation); 3195 if (!g.animate) { 3196 this.locked = false 3197 } 3198 if (g.pop) { 3199 var f = { 3200 top: -d(c).scrollTop() - k.data("offset") + "px", 3201 opacity: 0 3202 }; 3203 return setTimeout(function() { 3204 return k.animate(f, j.animation_speed, "linear", function() { 3205 h.locked = false; 3206 k.css(i).trigger("closed.fndtn.reveal") 3207 }).removeClass("open") 3208 }, j.animation_speed / 2) 3209 } 3210 if (g.fade) { 3211 var f = { 3212 opacity: 0 3213 }; 3214 return setTimeout(function() { 3215 return k.animate(f, j.animation_speed, "linear", function() { 3216 h.locked = false; 3217 k.css(i).trigger("closed.fndtn.reveal") 3218 }).removeClass("open") 3219 }, j.animation_speed / 2) 3220 } 3221 return k.hide().css(i).removeClass("open").trigger("closed.fndtn.reveal") 3222 } 3223 var j = this.settings; 3224 if (b(j.animation).fade) { 3225 return k.fadeOut(j.animation_speed / 2) 3226 } 3227 return k.hide() 3228 }, 3229 close_video: function(h) { 3230 var g = d(".flex-video", h.target), 3231 f = d("iframe", g); 3232 if (f.length > 0) { 3233 f.attr("data-src", f[0].src); 3234 f.attr("src", f.attr("src")); 3235 g.hide() 3236 } 3237 }, 3238 open_video: function(h) { 3239 var g = d(".flex-video", h.target), 3240 f = g.find("iframe"); 3241 if (f.length > 0) { 3242 var j = f.attr("data-src"); 3243 if (typeof j === "string") { 3244 f[0].src = f.attr("data-src") 3245 } else { 3246 var i = f[0].src; 3247 f[0].src = e; 3248 f[0].src = i 3249 } 3250 g.show() 3251 } 3252 }, 3253 data_attr: function(f) { 3254 if (this.namespace.length > 0) { 3255 return this.namespace + "-" + f 3256 } 3257 return f 3258 }, 3259 cache_offset: function(f) { 3260 var g = f.show().height() + parseInt(f.css("top"), 10) + f.scrollY; 3261 f.hide(); 3262 return g 3263 }, 3264 off: function() { 3265 d(this.scope).off(".fndtn.reveal") 3266 }, 3267 reflow: function() {} 3268 }; 3269 3270 function b(h) { 3271 var g = /fade/i.test(h); 3272 var f = /pop/i.test(h); 3273 return { 3274 animate: g || f, 3275 pop: f, 3276 fade: g 3277 } 3278 } 3279}(jQuery, window, window.document)); 3280(function(c, b, a, d) { 3281 Foundation.libs.interchange = { 3282 name: "interchange", 3283 version: "5.5.2", 3284 cache: {}, 3285 images_loaded: false, 3286 nodes_loaded: false, 3287 settings: { 3288 load_attr: "interchange", 3289 named_queries: { 3290 "default": "only screen", 3291 small: Foundation.media_queries.small, 3292 "small-only": Foundation.media_queries["small-only"], 3293 medium: Foundation.media_queries.medium, 3294 "medium-only": Foundation.media_queries["medium-only"], 3295 large: Foundation.media_queries.large, 3296 "large-only": Foundation.media_queries["large-only"], 3297 xlarge: Foundation.media_queries.xlarge, 3298 "xlarge-only": Foundation.media_queries["xlarge-only"], 3299 xxlarge: Foundation.media_queries.xxlarge, 3300 landscape: "only screen and (orientation: landscape)", 3301 portrait: "only screen and (orientation: portrait)", 3302 retina: "only screen and (-webkit-min-device-pixel-ratio: 2),only screen and (min--moz-device-pixel-ratio: 2),only screen and (-o-min-device-pixel-ratio: 2/1),only screen and (min-device-pixel-ratio: 2),only screen and (min-resolution: 192dpi),only screen and (min-resolution: 2dppx)" 3303 }, 3304 directives: { 3305 replace: function(h, j, f) { 3306 if (h !== null && /IMG/.test(h[0].nodeName)) { 3307 var g = h[0].src; 3308 if (new RegExp(j, "i").test(g)) { 3309 return 3310 } 3311 h.attr("src", j); 3312 return f(h[0].src) 3313 } 3314 var i = h.data(this.data_attr + "-last-path"), 3315 e = this; 3316 if (i == j) { 3317 return 3318 } 3319 if (/\.(gif|jpg|jpeg|tiff|png)([?#].*)?/i.test(j)) { 3320 c(h).css("background-image", "url(" + j + ")"); 3321 h.data("interchange-last-path", j); 3322 return f(j) 3323 } 3324 return c.get(j, function(k) { 3325 h.html(k);
3326 h.data(e.data_attr + "-last-path", j); 3327 f() 3328 }) 3329 } 3330 } 3331 }, 3332 init: function(f, g, e) { 3333 Foundation.inherit(this, "throttle random_str"); 3334 this.data_attr = this.set_data_attr(); 3335 c.extend(true, this.settings, g, e); 3336 this.bindings(g, e); 3337 this.reflow() 3338 }, 3339 get_media_hash: function() { 3340 var e = ""; 3341 for (var f in this.settings.named_queries) { 3342 e += matchMedia(this.settings.named_queries[f]).matches.toString() 3343 } 3344 return e 3345 }, 3346 events: function() { 3347 var f = this, 3348 e; 3349 c(b).off(".interchange").on("resize.fndtn.interchange", f.throttle(function() { 3350 var g = f.get_media_hash(); 3351 if (g !== e) { 3352 f.resize() 3353 } 3354 e = g 3355 }, 50)); 3356 return this 3357 }, 3358 resize: function() { 3359 var e = this.cache; 3360 if (!this.images_loaded || !this.nodes_loaded) { 3361 setTimeout(c.proxy(this.resize, this), 50); 3362 return 3363 } 3364 for (var f in e) { 3365 if (e.hasOwnProperty(f)) { 3366 var g = this.results(f, e[f]); 3367 if (g) { 3368 this.settings.directives[g.scenario[1]].call(this, g.el, g.scenario[0], (function(i) { 3369 if (arguments[0] instanceof Array) { 3370 var h = arguments[0] 3371 } else { 3372 var h = Array.prototype.slice.call(arguments, 0) 3373 } 3374 return function() { 3375 i.el.trigger(i.scenario[1], h) 3376 } 3377 }(g))) 3378 } 3379 } 3380 } 3381 }, 3382 results: function(g, j) { 3383 var h = j.length; 3384 if (h > 0) { 3385 var f = this.S("[" + this.add_namespace("data-uuid") + '="' + g + '"]'); 3386 while (h--) { 3387 var e, i = j[h][2]; 3388 if (this.settings.named_queries.hasOwnProperty(i)) { 3389 e = matchMedia(this.settings.named_queries[i]) 3390 } else { 3391 e = matchMedia(i) 3392 } 3393 if (e.matches) { 3394 return { 3395 el: f, 3396 scenario: j[h] 3397 } 3398 } 3399 } 3400 } 3401 return false 3402 }, 3403 load: function(f, e) { 3404 if (typeof this["cached_" + f] === "undefined" || e) { 3405 this["update_" + f]() 3406 } 3407 return this["cached_" + f] 3408 }, 3409 update_images: function() { 3410 var e = this.S("img[" + this.data_attr + "]"), 3411 j = e.length, 3412 h = j, 3413 g = 0, 3414 f = this.data_attr; 3415 this.cache = {}; 3416 this.cached_images = []; 3417 this.images_loaded = (j === 0); 3418 while (h--) { 3419 g++; 3420 if (e[h]) { 3421 var k = e[h].getAttribute(f) || ""; 3422 if (k.length > 0) { 3423 this.cached_images.push(e[h]) 3424 } 3425 } 3426 if (g === j) { 3427 this.images_loaded = true; 3428 this.enhance("images") 3429 } 3430 } 3431 return this 3432 }, 3433 update_nodes: function() { 3434 var e = this.S("[" + this.data_attr + "]").not("img"), 3435 j = e.length, 3436 h = j, 3437 g = 0, 3438 f = this.data_attr; 3439 this.cached_nodes = []; 3440 this.nodes_loaded = (j === 0); 3441 while (h--) { 3442 g++; 3443 var k = e[h].getAttribute(f) || ""; 3444 if (k.length > 0) { 3445 this.cached_nodes.push(e[h]) 3446 } 3447 if (g === j) { 3448 this.nodes_loaded = true; 3449 this.enhance("nodes") 3450 } 3451 } 3452 return this 3453 }, 3454 enhance: function(f) { 3455 var e = this["cached_" + f].length; 3456 while (e--) { 3457 this.object(c(this["cached_" + f][e])) 3458 } 3459 return c(b).trigger("resize.fndtn.interchange") 3460 }, 3461 convert_directive: function(f) { 3462 var e = this.trim(f); 3463 if (e.length > 0) { 3464 return e 3465 } 3466 return "replace" 3467 }, 3468 parse_scenario: function(g) { 3469 var e = g[0].match(/(.+),\s*(\w+)\s*$/), 3470 j = g[1].match(/(.*)\)/); 3471 if (e) { 3472 var h = e[1], 3473 i = e[2] 3474 } else { 3475 var f = g[0].split(/,\s*$/), 3476 h = f[0], 3477 i = "" 3478 } 3479 return [this.trim(h), this.convert_directive(i), this.trim(j[1])] 3480 }, 3481 object: function(g) { 3482 var h = this.parse_data_attr(g), 3483 k = [], 3484 e = h.length; 3485 if (e > 0) { 3486 while (e--) { 3487 var f = h[e].split(/,\s?\(/); 3488 if (f.length > 1) { 3489 var j = this.parse_scenario(f); 3490 k.push(j) 3491 } 3492 } 3493 } 3494 return this.store(g, k) 3495 }, 3496 store: function(f, h) { 3497 var e = this.random_str(), 3498 g = f.data(this.add_namespace("uuid", true)); 3499 if (this.cache[g]) { 3500 return this.cache[g] 3501 } 3502 f.attr(this.add_namespace("data-uuid"), e); 3503 return this.cache[e] = h 3504 }, 3505 trim: function(e) { 3506 if (typeof e === "string") { 3507 return c.trim(e) 3508 } 3509 return e 3510 }, 3511 set_data_attr: function(e) { 3512 if (e) { 3513 if (this.namespace.length > 0) { 3514 return this.namespace + "-" + this.settings.load_attr 3515 } 3516 return this.settings.load_attr 3517 } 3518 if (this.namespace.length > 0) { 3519 return "data-" + this.namespace + "-" + this.settings.load_attr 3520 } 3521 return "data-" + this.settings.load_attr 3522 }, 3523 parse_data_attr: function(h) { 3524 var f = h.attr(this.attr_name()).split(/\[(.*?)\]/), 3525 g = f.length, 3526 e = []; 3527 while (g--) { 3528 if (f[g].replace(/[\W\d]+/, "").length > 4) { 3529 e.push(f[g]) 3530 } 3531 } 3532 return e 3533 }, 3534 reflow: function() { 3535 this.load("images", true); 3536 this.load("nodes", true) 3537 } 3538 } 3539}(jQuery, window, window.document)); 3540(function(c, b, a, d) { 3541 Foundation.libs["magellan-expedition"] = { 3542 name: "magellan-expedition", 3543 version: "5.5.2", 3544 settings: { 3545 active_class: "active", 3546 threshold: 0, 3547 destination_threshold: 20, 3548 throttle_delay: 30, 3549 fixed_top: 0, 3550 offset_by_height: true, 3551 duration: 700, 3552 easing: "swing" 3553 }, 3554 init: function(f, g, e) { 3555 Foundation.inherit(this, "throttle"); 3556 this.bindings(g, e) 3557 }, 3558 events: function() { 3559 var e = this, 3560 f = e.S, 3561 g = e.settings; 3562 e.set_expedition_position(); 3563 f(e.scope).off(".magellan").on("click.fndtn.magellan", "[" + e.add_namespace("data-magellan-arrival") + "] a[href*=#]", function(l) { 3564 var o = ((this.hostname === location.hostname) || !this.hostname), 3565 p = e.filterPathname(location.pathname) === e.filterPathname(this.pathname), 3566 q = this.hash.replace(/(:|\.|\/)/g, "\\$1"), 3567 j = this; 3568 if (o && p && q) { 3569 l.preventDefault(); 3570 var n = c(this).closest("[" + e.attr_name() + "]"), 3571 h = n.data("magellan-expedition-init"), 3572 i = this.hash.split("#").join(""), 3573 k = c('a[name="' + i + '"]'); 3574 if (k.length === 0) { 3575 k = c("#" + i) 3576 } 3577 var m = k.offset().top - h.destination_threshold + 1; 3578 if (h.offset_by_height) { 3579 m = m - n.outerHeight() 3580 } 3581 c("html, body").stop().animate({ 3582 scrollTop: m 3583 }, h.duration, h.easing, function() { 3584 if (history.pushState) { 3585 history.pushState(null, null, j.pathname + "#" + i) 3586 } else { 3587 location.hash = j.pathname + "#" + i 3588 } 3589 }) 3590 } 3591 }).on("scroll.fndtn.magellan", e.throttle(this.check_for_arrivals.bind(this), g.throttle_delay)) 3592 }, 3593 check_for_arrivals: function() { 3594 var e = this; 3595 e.update_arrivals(); 3596 e.update_expedition_positions() 3597 }, 3598 set_expedition_position: function() { 3599 var e = this; 3600 c("[" + this.attr_name() + "=fixed]", e.scope).each(function(f, j) { 3601 var l = c(this), 3602 i = l.data("magellan-expedition-init"), 3603 k = l.attr("styles"), 3604 g, h; 3605 l.attr("style", ""); 3606 g = l.offset().top + i.threshold; 3607 g = 0; 3608 h = parseInt(l.data("magellan-fixed-top")); 3609 if (!isNaN(h)) { 3610 e.settings.fixed_top = h 3611 } 3612 l.data(e.data_attr("magellan-top-offset"), g); 3613 l.attr("style", k) 3614 }) 3615 }, 3616 update_expedition_positions: function() { 3617 var f = this, 3618 e = c(b).scrollTop(); 3619 c("[" + this.attr_name() + "=fixed]", f.scope).each(function() { 3620 var j = c(this), 3621 h = j.data("magellan-expedition-init"), 3622 i = j.attr("style"), 3623 g = j.data("magellan-top-offset"); 3624 if (e + f.settings.fixed_top >= g) { 3625 var k = j.prev("[" + f.add_namespace("data-magellan-expedition-clone") + "]"); 3626 if (k.length === 0) { 3627 k = j.clone(); 3628 k.removeAttr(f.attr_name()); 3629 k.attr(f.add_namespace("data-magellan-expedition-clone"), ""); 3630 j.before(k) 3631 } 3632 j.css({ 3633 position: "fixed", 3634 top: h.fixed_top 3635 }).addClass("fixed") 3636 } else { 3637 j.prev("[" + f.add_namespace("data-magellan-expedition-clone") + "]").remove(); 3638 j.attr("style", i).css("position", "").css("top", "").removeClass("fixed") 3639 } 3640 }) 3641 }, 3642 update_arrivals: function() { 3643 var f = this, 3644 e = c(b).scrollTop(); 3645 c("[" + this.attr_name() + "]", f.scope).each(function() { 3646 var k = c(this), 3647 g = k.data(f.attr_name(true) + "-init"), 3648 i = f.offsets(k, e), 3649 j = k.find("[" + f.add_namespace("data-magellan-arrival") + "]"), 3650 h = false; 3651 i.each(function(l, m) { 3652 if (m.viewport_offset >= m.top_offset) { 3653 var n = k.find("[" + f.add_namespace("data-magellan-arrival") + "]"); 3654 n.not(m.arrival).removeClass(g.active_class); 3655 m.arrival.addClass(g.active_class); 3656 h = true; 3657 return true 3658 } 3659 }); 3660 if (!h) { 3661 j.removeClass(g.active_class) 3662 } 3663 }) 3664 }, 3665 offsets: function(i, e) { 3666 var f = this, 3667 g = i.data(f.attr_name(true) + "-init"), 3668 h = e; 3669 return i.find("[" + f.add_namespace("data-magellan-arrival") + "]").map(function(j, n) { 3670 var m = c(this).data(f.data_attr("magellan-arrival")), 3671 l = c("[" + f.add_namespace("data-magellan-destination") + "=" + m + "]"); 3672 if (l.length > 0) { 3673 var k = l.offset().top - g.destination_threshold; 3674 if (g.offset_by_height) { 3675 k = k - i.outerHeight() 3676 } 3677 k = Math.floor(k);
3678 return { 3679 destination: l, 3680 arrival: c(this), 3681 top_offset: k, 3682 viewport_offset: h 3683 } 3684 } 3685 }).sort(function(k, j) { 3686 if (k.top_offset < j.top_offset) { 3687 return -1 3688 } 3689 if (k.top_offset > j.top_offset) { 3690 return 1 3691 } 3692 return 0 3693 }) 3694 }, 3695 data_attr: function(e) { 3696 if (this.namespace.length > 0) { 3697 return this.namespace + "-" + e 3698 } 3699 return e 3700 }, 3701 off: function() { 3702 this.S(this.scope).off(".magellan"); 3703 this.S(b).off(".magellan") 3704 }, 3705 filterPathname: function(e) { 3706 e = e || ""; 3707 return e.replace(/^\//, "").replace(/(?:index|default).[a-zA-Z]{3,4}$/, "").replace(/\/$/, "") 3708 }, 3709 reflow: function() { 3710 var e = this; 3711 c("[" + e.add_namespace("data-magellan-expedition-clone") + "]", e.scope).remove() 3712 } 3713 } 3714}(jQuery, window, window.document)); 3715(function(c, b, a, d) { 3716 Foundation.libs.accordion = { 3717 name: "accordion", 3718 version: "5.5.2", 3719 settings: { 3720 content_class: "content", 3721 active_class: "active", 3722 multi_expand: false, 3723 toggleable: true, 3724 callback: function() {} 3725 }, 3726 init: function(f, g, e) { 3727 this.bindings(g, e) 3728 }, 3729 events: function(e) { 3730 var f = this; 3731 var g = this.S; 3732 f.create(this.S(e)); 3733 g(this.scope).off(".fndtn.accordion").on("click.fndtn.accordion", "[" + this.attr_name() + "] > dd > a, [" + this.attr_name() + "] > li > a", function(n) { 3734 var h = g(this).closest("[" + f.attr_name() + "]"), 3735 i = f.attr_name() + "=" + h.attr(f.attr_name()), 3736 k = h.data(f.attr_name(true) + "-init") || f.settings, 3737 m = g("#" + this.href.split("#")[1]), 3738 l = c("> dd, > li", h), 3739 o = l.children("." + k.content_class), 3740 j = o.filter("." + k.active_class); 3741 n.preventDefault(); 3742 if (h.attr(f.attr_name())) { 3743 o = o.add("[" + i + "] dd > ." + k.content_class + ", [" + i + "] li > ." + k.content_class); 3744 l = l.add("[" + i + "] dd, [" + i + "] li") 3745 } 3746 if (k.toggleable && m.is(j)) { 3747 m.parent("dd, li").toggleClass(k.active_class, false); 3748 m.toggleClass(k.active_class, false); 3749 g(this).attr("aria-expanded", function(q, p) { 3750 return p === "true" ? "false" : "true" 3751 }); 3752 k.callback(m); 3753 m.triggerHandler("toggled", [h]); 3754 h.triggerHandler("toggled", [m]); 3755 return 3756 } 3757 if (!k.multi_expand) { 3758 o.removeClass(k.active_class); 3759 l.removeClass(k.active_class); 3760 l.children("a").attr("aria-expanded", "false") 3761 } 3762 m.addClass(k.active_class).parent().addClass(k.active_class); 3763 k.callback(m); 3764 m.triggerHandler("toggled", [h]); 3765 h.triggerHandler("toggled", [m]); 3766 g(this).attr("aria-expanded", "true") 3767 }) 3768 }, 3769 create: function(i) { 3770 var f = this, 3771 e = i, 3772 h = c("> .accordion-navigation", e), 3773 g = e.data(f.attr_name(true) + "-init") || f.settings; 3774 h.children("a").attr("aria-expanded", "false"); 3775 h.has("." + g.content_class + "." + g.active_class).children("a").attr("aria-expanded", "true"); 3776 if (g.multi_expand) { 3777 i.attr("aria-multiselectable", "true") 3778 } 3779 }, 3780 off: function() {}, 3781 reflow: function() {} 3782 } 3783}(jQuery, window, window.document)); 3784(function(c, b, a, d) { 3785 Foundation.libs.topbar = { 3786 name: "topbar", 3787 version: "5.5.2", 3788 settings: { 3789 index: 0, 3790 start_offset: 0, 3791 sticky_class: "sticky", 3792 custom_back_text: true, 3793 back_text: "Back", 3794 mobile_show_parent_link: true, 3795 is_hover: true, 3796 scrolltop: true, 3797 sticky_on: "all", 3798 dropdown_autoclose: true 3799 }, 3800 init: function(g, h, f) { 3801 Foundation.inherit(this, "add_custom_rule register_media throttle"); 3802 var e = this; 3803 e.register_media("topbar", "foundation-mq-topbar"); 3804 this.bindings(h, f); 3805 e.S("[" + this.attr_name() + "]", this.scope).each(function() { 3806 var i = c(this), 3807 j = i.data(e.attr_name(true) + "-init"), 3808 l = e.S("section, .top-bar-section", this); 3809 i.data("index", 0); 3810 var k = i.parent(); 3811 if (k.hasClass("fixed") || e.is_sticky(i, k, j)) { 3812 e.settings.sticky_class = j.sticky_class; 3813 e.settings.sticky_topbar = i; 3814 i.data("height", k.outerHeight()); 3815 i.data("stickyoffset", k.offset().top) 3816 } else { 3817 i.data("height", i.outerHeight()) 3818 } 3819 if (!j.assembled) { 3820 e.assemble(i) 3821 } 3822 if (j.is_hover) { 3823 e.S(".has-dropdown", i).addClass("not-click") 3824 } else { 3825 e.S(".has-dropdown", i).removeClass("not-click") 3826 } 3827 e.add_custom_rule(".f-topbar-fixed { padding-top: " + i.data("height") + "px }"); 3828 if (k.hasClass("fixed")) { 3829 e.S("body").addClass("f-topbar-fixed") 3830 } 3831 }) 3832 }, 3833 is_sticky: function(f, j, i) { 3834 // var k = j.hasClass(i.sticky_class); 3835 var h = matchMedia(Foundation.media_queries.small).matches; 3836 var e = matchMedia(Foundation.media_queries.medium).matches; 3837 var g = matchMedia(Foundation.media_queries.large).matches; 3838 // if (k && i.sticky_on === "all") { 3839 // return true 3840 // }
3841 // if (k && this.small() && i.sticky_on.indexOf("small") !== -1) { 3842 // if (h && !e && !g) { 3843 // return true 3844 // } 3845 // } 3846 // if (k && this.medium() && i.sticky_on.indexOf("medium") !== -1) { 3847 // if (h && e && !g) { 3848 // return true 3849 // } 3850 // } 3851 // if (k && this.large() && i.sticky_on.indexOf("large") !== -1) { 3852 // if (h && e && g) { 3853 // return true 3854 // } 3855 // } 3856 return false 3857 }, 3858 toggle: function(e) { 3859 var g = this, 3860 f; 3861 if (e) { 3862 f = g.S(e).closest("[" + this.attr_name() + "]") 3863 } else { 3864 f = g.S("[" + this.attr_name() + "]") 3865 } 3866 var h = f.data(this.attr_name(true) + "-init"); 3867 var i = g.S("section, .top-bar-section", f); 3868 if (g.breakpoint()) { 3869 if (!g.rtl) { 3870 i.css({ 3871 left: "0%" 3872 }); 3873 c(">.name", i).css({ 3874 left: "100%" 3875 }) 3876 } else { 3877 i.css({ 3878 right: "0%" 3879 }); 3880 c(">.name", i).css({ 3881 right: "100%" 3882 }) 3883 } 3884 g.S("li.moved", i).removeClass("moved"); 3885 f.data("index", 0); 3886 f.toggleClass("expanded").css("height", "") 3887 } 3888 if (h.scrolltop) { 3889 if (!f.hasClass("expanded")) { 3890 if (f.hasClass("fixed")) { 3891 f.parent().addClass("fixed"); 3892 f.removeClass("fixed"); 3893 g.S("body").addClass("f-topbar-fixed") 3894 } 3895 } else { 3896 if (f.parent().hasClass("fixed")) { 3897 if (h.scrolltop) { 3898 f.parent().removeClass("fixed"); 3899 f.addClass("fixed"); 3900 g.S("body").removeClass("f-topbar-fixed"); 3901 b.scrollTo(0, 0) 3902 } else { 3903 f.parent().removeClass("expanded") 3904 } 3905 } 3906 } 3907 } else { 3908 if (g.is_sticky(f, f.parent(), h)) { 3909 f.parent().addClass("fixed") 3910 } 3911 if (f.parent().hasClass("fixed")) { 3912 if (!f.hasClass("expanded")) { 3913 f.removeClass("fixed"); 3914 f.parent().removeClass("expanded"); 3915 g.update_sticky_positioning() 3916 } else { 3917 f.addClass("fixed"); 3918 f.parent().addClass("expanded"); 3919 g.S("body").addClass("f-topbar-fixed") 3920 } 3921 } 3922 } 3923 }, 3924 timer: null, 3925 events: function(g) { 3926 var e = this, 3927 f = this.S; 3928 f(this.scope).off(".topbar").on("click.fndtn.topbar", "[" + this.attr_name() + "] .toggle-topbar", function(h) { 3929 h.preventDefault(); 3930 e.toggle(this) 3931 }).on("click.fndtn.topbar contextmenu.fndtn.topbar", '.top-bar .top-bar-section li a[href^="#"],[' + this.attr_name() + '] .top-bar-section li a[href^="#"]', function(l) { 3932 var h = c(this).closest("li"), 3933 i = h.closest("[" + e.attr_name() + "]"), 3934 k = i.data(e.attr_name(true) + "-init"); 3935 if (k.dropdown_autoclose && k.is_hover) { 3936 var j = c(this).closest(".hover"); 3937 j.removeClass("hover") 3938 } 3939 if (e.breakpoint() && !h.hasClass("back") && !h.hasClass("has-dropdown")) { 3940 e.toggle() 3941 } 3942 }).on("click.fndtn.topbar", "[" + this.attr_name() + "] li.has-dropdown", function(l) { 3943 var h = f(this), 3944 k = f(l.target), 3945 i = h.closest("[" + e.attr_name() + "]"), 3946 j = i.data(e.attr_name(true) + "-init"); 3947 if (k.data("revealId")) { 3948 e.toggle(); 3949 return 3950 } 3951 if (e.breakpoint()) { 3952 return 3953 } 3954 if (j.is_hover && !Modernizr.touch) { 3955 return 3956 } 3957 l.stopImmediatePropagation(); 3958 if (h.hasClass("hover")) { 3959 h.removeClass("hover").find("li").removeClass("hover"); 3960 h.parents("li.hover").removeClass("hover") 3961 } else { 3962 h.addClass("hover"); 3963 c(h).siblings().removeClass("hover"); 3964 if (k[0].nodeName === "A" && k.parent().hasClass("has-dropdown")) { 3965 l.preventDefault() 3966 } 3967 } 3968 }).on("click.fndtn.topbar", "[" + this.attr_name() + "] .has-dropdown>a", function(m) { 3969 if (e.breakpoint()) { 3970 m.preventDefault(); 3971 var l = f(this), 3972 i = l.closest("[" + e.attr_name() + "]"), 3973 k = i.find("section, .top-bar-section"), 3974 j = l.next(".dropdown").outerHeight(), 3975 h = l.closest("li"); 3976 i.data("index", i.data("index") + 1); 3977 h.addClass("moved"); 3978 if (!e.rtl) { 3979 k.css({ 3980 left: -(100 * i.data("index")) + "%" 3981 });
3982 k.find(">.name").css({ 3983 left: 100 * i.data("index") + "%" 3984 }) 3985 } else { 3986 k.css({ 3987 right: -(100 * i.data("index")) + "%" 3988 }); 3989 k.find(">.name").css({ 3990 right: 100 * i.data("index") + "%" 3991 }) 3992 } 3993 i.css("height", l.siblings("ul").outerHeight(true) + i.data("height")) 3994 } 3995 }); 3996 f(b).off(".topbar").on("resize.fndtn.topbar", e.throttle(function() { 3997 e.resize.call(e) 3998 }, 50)).trigger("resize.fndtn.topbar").load(function() { 3999 f(this).trigger("resize.fndtn.topbar") 4000 }); 4001 f("body").off(".topbar").on("click.fndtn.topbar", function(i) { 4002 var h = f(i.target).closest("li").closest("li.hover"); 4003 if (h.length > 0) { 4004 return 4005 } 4006 f("[" + e.attr_name() + "] li.hover").removeClass("hover") 4007 }); 4008 f(this.scope).on("click.fndtn.topbar", "[" + this.attr_name() + "] .has-dropdown .back", function(n) { 4009 n.preventDefault(); 4010 var m = f(this), 4011 i = m.closest("[" + e.attr_name() + "]"), 4012 l = i.find("section, .top-bar-section"), 4013 k = i.data(e.attr_name(true) + "-init"), 4014 j = m.closest("li.moved"), 4015 h = j.parent(); 4016 i.data("index", i.data("index") - 1); 4017 if (!e.rtl) { 4018 l.css({ 4019 left: -(100 * i.data("index")) + "%" 4020 }); 4021 l.find(">.name").css({ 4022 left: 100 * i.data("index") + "%" 4023 }) 4024 } else { 4025 l.css({ 4026 right: -(100 * i.data("index")) + "%" 4027 }); 4028 l.find(">.name").css({ 4029 right: 100 * i.data("index") + "%" 4030 }) 4031 } 4032 if (i.data("index") === 0) { 4033 i.css("height", "") 4034 } else { 4035 i.css("height", h.outerHeight(true) + i.data("height")) 4036 } 4037 setTimeout(function() { 4038 j.removeClass("moved") 4039 }, 300) 4040 }); 4041 f(this.scope).find(".dropdown a").focus(function() { 4042 c(this).parents(".has-dropdown").addClass("hover") 4043 }).blur(function() { 4044 c(this).parents(".has-dropdown").removeClass("hover") 4045 }) 4046 }, 4047 resize: function() { 4048 var e = this; 4049 e.S("[" + this.attr_name() + "]").each(function() { 4050 var g = e.S(this), 4051 i = g.data(e.attr_name(true) + "-init"); 4052 var h = g.parent("." + e.settings.sticky_class); 4053 var j; 4054 if (!e.breakpoint()) { 4055 var f = g.hasClass("expanded"); 4056 g.css("height", "").removeClass("expanded").find("li").removeClass("hover"); 4057 if (f) { 4058 e.toggle(g) 4059 } 4060 } 4061 if (e.is_sticky(g, h, i)) { 4062 if (h.hasClass("fixed")) { 4063 h.removeClass("fixed"); 4064 j = h.offset().top; 4065 if (e.S(a.body).hasClass("f-topbar-fixed")) { 4066 j -= g.data("height") 4067 } 4068 g.data("stickyoffset", j); 4069 h.addClass("fixed") 4070 } else { 4071 j = h.offset().top; 4072 g.data("stickyoffset", j) 4073 } 4074 } 4075 }) 4076 }, 4077 breakpoint: function() { 4078 return !matchMedia(Foundation.media_queries.topbar).matches 4079 }, 4080 small: function() { 4081 return matchMedia(Foundation.media_queries.small).matches 4082 }, 4083 medium: function() { 4084 return matchMedia(Foundation.media_queries.medium).matches 4085 }, 4086 large: function() { 4087 return matchMedia(Foundation.media_queries.large).matches 4088 }, 4089 assemble: function(f) { 4090 var e = this, 4091 g = f.data(this.attr_name(true) + "-init"), 4092 h = e.S("section, .top-bar-section", f); 4093 h.detach(); 4094 e.S(".has-dropdown>a", h).each(function() { 4095 var i = e.S(this), 4096 l = i.siblings(".dropdown"), 4097 j = i.attr("href"), 4098 k; 4099 if (!l.find(".title.back").length) { 4100 if (g.mobile_show_parent_link == true && j) { 4101 k = c('<li class="title back js-generated"><h5><a href="javascript:void(0)"></a></h5></li><li class="parent-link hide-for-medium-up"><a class="parent-link js-generated" href="' + j + '">' + i.html() + "</a></li>") 4102 } else { 4103 k = c('<li class="title back js-generated"><h5><a href="javascript:void(0)"></a></h5>') 4104 } 4105 if (g.custom_back_text == true) { 4106 c("h5>a", k).html(g.back_text) 4107 } else { 4108 c("h5>a", k).html("« " + i.html()) 4109 } 4110 l.prepend(k) 4111 } 4112 }); 4113 h.appendTo(f); 4114 this.sticky(); 4115 this.assembled(f) 4116 }, 4117 assembled: function(e) { 4118 e.data(this.attr_name(true), c.extend({}, e.data(this.attr_name(true)), { 4119 assembled: true 4120 })) 4121 }, 4122 height: function(f) { 4123 var g = 0, 4124 e = this; 4125 c("> li", f).each(function() { 4126 g += e.S(this).outerHeight(true) 4127 }); 4128 return g 4129 }, 4130 sticky: function() { 4131 var e = this; 4132 this.S(b).on("scroll", function() { 4133 e.update_sticky_positioning() 4134 }) 4135 }, 4136 update_sticky_positioning: function() { 4137 var e = "." + this.settings.sticky_class, 4138 g = this.S(b), 4139 f = this; 4140 if (f.settings.sticky_topbar && f.is_sticky(this.settings.sticky_topbar, this.settings.sticky_topbar.parent(), this.settings)) { 4141 var h = this.settings.sticky_topbar.data("stickyoffset") + this.settings.start_offset; 4142 if (!f.S(e).hasClass("expanded")) { 4143 if (g.scrollTop() > (h)) { 4144 if (!f.S(e).hasClass("fixed")) { 4145 f.S(e).addClass("fixed"); 4146 f.S("body").addClass("f-topbar-fixed") 4147 } 4148 } else { 4149 if (g.scrollTop() <= h) { 4150 if (f.S(e).hasClass("fixed")) { 4151 f.S(e).removeClass("fixed"); 4152 f.S("body").removeClass("f-topbar-fixed") 4153 } 4154 } 4155 } 4156 } 4157 } 4158 }, 4159 off: function() { 4160 this.S(this.scope).off(".fndtn.topbar"); 4161 this.S(b).off(".fndtn.topbar") 4162 }, 4163 reflow: function() {} 4164 } 4165}(jQuery, window, window.document)); 4166(function(c, b, a, d) { 4167 Foundation.libs.tab = { 4168 name: "tab", 4169 version: "5.5.2", 4170 settings: { 4171 active_class: "active", 4172 callback: function() {}, 4173 deep_linking: false, 4174 scroll_to_content: true, 4175 is_hover: false 4176 }, 4177 default_tab_hashes: [], 4178 init: function(h, i, f) { 4179 var e = this, 4180 g = this.S; 4181 g("[" + this.attr_name() + "] > .active > a", this.scope).each(function() { 4182 e.default_tab_hashes.push(this.hash) 4183 }); 4184 e.entry_location = b.location.href; 4185 this.bindings(i, f); 4186 this.handle_location_hash_change() 4187 }, 4188 events: function() { 4189 var f = this, 4190 g = this.S; 4191 var e = function(j, i) { 4192 var h = g(i).closest("[" + f.attr_name() + "]").data(f.attr_name(true) + "-init"); 4193 if (!h.is_hover || Modernizr.touch) { 4194 j.preventDefault(); 4195 j.stopPropagation(); 4196 f.toggle_active_tab(g(i).parent()) 4197 } 4198 }; 4199 g(this.scope).off(".tab").on("keydown.fndtn.tab", "[" + this.attr_name() + "] > * > a", function(j) { 4200 var h = this; 4201 var i = j.keyCode || j.which; 4202 if (i == 9) { 4203 j.preventDefault(); 4204 e(j, h) 4205 } 4206 }).on("click.fndtn.tab", "[" + this.attr_name() + "] > * > a", function(i) { 4207 var h = this; 4208 e(i, h) 4209 }).on("mouseenter.fndtn.tab", "[" + this.attr_name() + "] > * > a", function(i) { 4210 var h = g(this).closest("[" + f.attr_name() + "]").data(f.attr_name(true) + "-init"); 4211 if (h.is_hover) { 4212 f.toggle_active_tab(g(this).parent()) 4213 } 4214 }); 4215 g(b).on("hashchange.fndtn.tab", function(h) { 4216 h.preventDefault(); 4217 f.handle_location_hash_change() 4218 }) 4219 }, 4220 handle_location_hash_change: function() { 4221 var e = this, 4222 f = this.S; 4223 f("[" + this.attr_name() + "]", this.scope).each(function() { 4224 var i = f(this).data(e.attr_name(true) + "-init"); 4225 if (i.deep_linking) { 4226 var k; 4227 if (i.scroll_to_content) { 4228 k = e.scope.location.hash 4229 } else { 4230 k = e.scope.location.hash.replace("fndtn-", "") 4231 } 4232 if (k != "") { 4233 var h = f(k); 4234 if (h.hasClass("content") && h.parent().hasClass("tabs-content")) { 4235 e.toggle_active_tab(c("[" + e.attr_name() + "] > * > a[href=" + k + "]").parent()) 4236 } else { 4237 var g = h.closest(".content").attr("id"); 4238 if (g != d) { 4239 e.toggle_active_tab(c("[" + e.attr_name() + "] > * > a[href=#" + g + "]").parent(), k) 4240 } 4241 } 4242 } else { 4243 for (var j = 0; j < e.default_tab_hashes.length; j++) { 4244 e.toggle_active_tab(c("[" + e.attr_name() + "] > * > a[href=" + e.default_tab_hashes[j] + "]").parent()) 4245 } 4246 } 4247 } 4248 }) 4249 }, 4250 toggle_active_tab: function(f, l) { 4251 var p = this, 4252 j = p.S, 4253 n = f.closest("[" + this.attr_name() + "]"),
4254 h = f.find("a"), 4255 k = f.children("a").first(), 4256 q = "#" + k.attr("href").split("#")[1], 4257 m = j(q), 4258 o = f.siblings(), 4259 g = n.data(this.attr_name(true) + "-init"), 4260 e = function(v) { 4261 var u = c(this); 4262 var t = c(this).parents("li").prev().children('[role="tab"]'); 4263 var s = c(this).parents("li").next().children('[role="tab"]'); 4264 var r; 4265 switch (v.keyCode) { 4266 case 37: 4267 r = t; 4268 break; 4269 case 39: 4270 r = s; 4271 break; 4272 default: 4273 r = false; 4274 break 4275 } 4276 if (r.length) { 4277 u.attr({ 4278 tabindex: "-1", 4279 "aria-selected": null 4280 }); 4281 r.attr({ 4282 tabindex: "0", 4283 "aria-selected": true 4284 }).focus() 4285 } 4286 c('[role="tabpanel"]').attr("aria-hidden", "true"); 4287 c("#" + c(a.activeElement).attr("href").substring(1)).attr("aria-hidden", null) 4288 }, 4289 i = function(t) { 4290 var r = b.location.href === p.entry_location, 4291 s = g.scroll_to_content ? p.default_tab_hashes[0] : r ? b.location.hash : "fndtn-" + p.default_tab_hashes[0].replace("#", ""); 4292 if (!(r && t === s)) { 4293 b.location.hash = t 4294 } 4295 }; 4296 if (k.data("tab-content")) { 4297 q = "#" + k.data("tab-content").split("#")[1]; 4298 m = j(q) 4299 } 4300 if (g.deep_linking) { 4301 if (g.scroll_to_content) { 4302 i(l || q); 4303 if (l == d || l == q) { 4304 f.parent()[0].scrollIntoView() 4305 } else { 4306 j(q)[0].scrollIntoView() 4307 } 4308 } else { 4309 if (l != d) { 4310 i("fndtn-" + l.replace("#", "")) 4311 } else { 4312 i("fndtn-" + q.replace("#", "")) 4313 } 4314 } 4315 } 4316 f.addClass(g.active_class).triggerHandler("opened"); 4317 h.attr({ 4318 "aria-selected": "true", 4319 tabindex: 0 4320 }); 4321 o.removeClass(g.active_class); 4322 o.find("a").attr({ 4323 "aria-selected": "false", 4324 tabindex: -1 4325 }); 4326 m.siblings().removeClass(g.active_class).attr({ 4327 "aria-hidden": "true", 4328 tabindex: -1 4329 }); 4330 m.addClass(g.active_class).attr("aria-hidden", "false").removeAttr("tabindex"); 4331 g.callback(f); 4332 m.triggerHandler("toggled", [m]); 4333 n.triggerHandler("toggled", [f]); 4334 h.off("keydown").on("keydown", e) 4335 }, 4336 data_attr: function(e) { 4337 if (this.namespace.length > 0) { 4338 return this.namespace + "-" + e 4339 } 4340 return e 4341 }, 4342 off: function() {}, 4343 reflow: function() {} 4344 } 4345}(jQuery, window, window.document)); 4346(function(c, b, a, d) { 4347 Foundation.libs.abide = { 4348 name: "abide", 4349 version: "5.5.2", 4350 settings: { 4351 live_validate: true, 4352 validate_on_blur: true, 4353 focus_on_invalid: true, 4354 error_labels: true, 4355 error_class: "error", 4356 timeout: 1000, 4357 patterns: { 4358 alpha: /^[a-zA-Z]+$/, 4359 alpha_numeric: /^[a-zA-Z0-9]+$/, 4360 integer: /^[-+]?\d+$/, 4361 number: /^[-+]?\d*(?:[\.\,]\d+)?$/, 4362 card: /^(?:4[0-9]{12}(?:[0-9]{3})?|5[1-5][0-9]{14}|6(?:011|5[0-9][0-9])[0-9]{12}|3[47][0-9]{13}|3(?:0[0-5]|[68][0-9])[0-9]{11}|(?:2131|1800|35\d{3})\d{11})$/, 4363 cvv: /^([0-9]){3,4}$/, 4364 email: /^[a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+$/, 4365 url: /^(https?|ftp|file|ssh):\/\/([-;:&=\+\$,\w]+@{1})?([-A-Za-z0-9\.]+)+:?(\d+)?((\/[-\+~%\/\.\w]+)?\??([-\+=&;%@\.\w]+)?#?([\w]+)?)?/, 4366 domain: /^([a-zA-Z0-9]([a-zA-Z0-9\-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,8}$/, 4367 datetime: /^([0-2][0-9]{3})\-([0-1][0-9])\-([0-3][0-9])T([0-5][0-9])\:([0-5][0-9])\:([0-5][0-9])(Z|([\-\+]([0-1][0-9])\:00))$/, 4368 date: /(?:19|20)[0-9]{2}-(?:(?:0[1-9]|1[0-2])-(?:0[1-9]|1[0-9]|2[0-9])|(?:(?!02)(?:0[1-9]|1[0-2])-(?:30))|(?:(?:0[13578]|1[02])-31))$/, 4369 time: /^(0[0-9]|1[0-9]|2[0-3])(:[0-5][0-9]){2}$/, 4370 dateISO: /^\d{4}[\/\-]\d{1,2}[\/\-]\d{1,2}$/, 4371 month_day_year: /^(0[1-9]|1[012])[- \/.](0[1-9]|[12][0-9]|3[01])[- \/.]\d{4}$/, 4372 day_month_year: /^(0[1-9]|[12][0-9]|3[01])[- \/.](0[1-9]|1[012])[- \/.]\d{4}$/, 4373 color: /^#?([a-fA-F0-9]{6}|[a-fA-F0-9]{3})$/ 4374 }, 4375 validators: { 4376 equalTo: function(f, h, e) { 4377 var j = a.getElementById(f.getAttribute(this.add_namespace("data-equalto"))).value, 4378 i = f.value, 4379 g = (j === i); 4380 return g 4381 } 4382 } 4383 }, 4384 timer: null, 4385 init: function(f, g, e) { 4386 this.bindings(g, e) 4387 }, 4388 events: function(g) { 4389 var e = this, 4390 h = e.S(g).attr("novalidate", "novalidate"), 4391 f = h.data(this.attr_name(true) + "-init") || {}; 4392 this.invalid_attr = this.add_namespace("data-invalid"); 4393 4394 function i(j, k) { 4395 clearTimeout(e.timer); 4396 e.timer = setTimeout(function() { 4397 e.validate([j], k) 4398 }.bind(j), f.timeout) 4399 } 4400 h.off(".abide").on("submit.fndtn.abide", function(k) { 4401 var j = /ajax/i.test(e.S(this).attr(e.attr_name())); 4402 return e.validate(e.S(this).find("input, textarea, select").not(":hidden, [data-abide-ignore]").get(), k, j) 4403 }).on("validate.fndtn.abide", function(j) { 4404 if (f.validate_on === "manual") { 4405 e.validate([j.target], j) 4406 } 4407 }).on("reset", function(j) { 4408 return e.reset(c(this), j) 4409 }).find("input, textarea, select").not(":hidden, [data-abide-ignore]").off(".abide").on("blur.fndtn.abide change.fndtn.abide", function(j) { 4410 if (f.validate_on_blur && f.validate_on_blur === true) { 4411 i(this, j) 4412 } 4413 if (f.validate_on === "change") { 4414 i(this, j) 4415 } 4416 }).on("keydown.fndtn.abide", function(j) {
4417 if (f.live_validate && f.live_validate === true && j.which != 9) { 4418 i(this, j) 4419 } 4420 if (f.validate_on === "tab" && j.which === 9) { 4421 i(this, j) 4422 } else { 4423 if (f.validate_on === "change") { 4424 i(this, j) 4425 } 4426 } 4427 }).on("focus", function(j) { 4428 if (navigator.userAgent.match(/iPad|iPhone|Android|BlackBerry|Windows Phone|webOS/i)) { 4429 c("html, body").animate({ 4430 scrollTop: c(j.target).offset().top 4431 }, 100) 4432 } 4433 }) 4434 }, 4435 reset: function(g, h) { 4436 var f = this; 4437 g.removeAttr(f.invalid_attr); 4438 c("[" + f.invalid_attr + "]", g).removeAttr(f.invalid_attr); 4439 c("." + f.settings.error_class, g).not("small").removeClass(f.settings.error_class); 4440 c(":input", g).not(":button, :submit, :reset, :hidden, [data-abide-ignore]").val("").removeAttr(f.invalid_attr) 4441 }, 4442 validate: function(l, n, f) { 4443 var k = this.parse_patterns(l), 4444 j = k.length, 4445 m = this.S(l[0]).closest("form"), 4446 g = /submit/.test(n.type); 4447 for (var h = 0; h < j; h++) { 4448 if (!k[h] && (g || f)) { 4449 if (this.settings.focus_on_invalid) { 4450 l[h].focus() 4451 } 4452 m.trigger("invalid.fndtn.abide"); 4453 this.S(l[h]).closest("form").attr(this.invalid_attr, ""); 4454 return false 4455 } 4456 } 4457 if (g || f) { 4458 m.trigger("valid.fndtn.abide") 4459 } 4460 m.removeAttr(this.invalid_attr); 4461 if (f) { 4462 return false 4463 } 4464 return true 4465 }, 4466 parse_patterns: function(g) { 4467 var f = g.length, 4468 e = []; 4469 while (f--) { 4470 e.push(this.pattern(g[f])) 4471 } 4472 return this.check_validation_and_apply_styles(e) 4473 }, 4474 pattern: function(f) { 4475 var e = f.getAttribute("type"), 4476 h = typeof f.getAttribute("required") === "string"; 4477 var g = f.getAttribute("pattern") || ""; 4478 if (this.settings.patterns.hasOwnProperty(g) && g.length > 0) { 4479 return [f, this.settings.patterns[g], h] 4480 } else { 4481 if (g.length > 0) { 4482 return [f, new RegExp(g), h] 4483 } 4484 } 4485 if (this.settings.patterns.hasOwnProperty(e)) { 4486 return [f, this.settings.patterns[e], h] 4487 } 4488 g = /.*/; 4489 return [f, g, h] 4490 }, 4491 check_validation_and_apply_styles: function(r) { 4492 var x = r.length, 4493 j = [], 4494 g = this.S(r[0][0]).closest("[data-" + this.attr_name(true) + "]"), 4495 A = g.data(this.attr_name(true) + "-init") || {}; 4496 while (x--) { 4497 var f = r[x][0], 4498 s = r[x][2], 4499 v = f.value.trim(), 4500 y = this.S(f).parent(), 4501 m = f.getAttribute(this.add_namespace("data-abide-validator")), 4502 e = f.type === "radio", 4503 t = f.type === "checkbox", 4504 p = this.S('label[for="' + f.getAttribute("id") + '"]'), 4505 h = (s) ? (f.value.length > 0) : true, 4506 o = []; 4507 var q, u; 4508 if (f.getAttribute(this.add_namespace("data-equalto"))) { 4509 m = "equalTo" 4510 } 4511 if (!y.is("label")) { 4512 q = y 4513 } else { 4514 q = y.parent() 4515 } 4516 if (e && s) { 4517 o.push(this.valid_radio(f, s)) 4518 } else { 4519 if (t && s) { 4520 o.push(this.valid_checkbox(f, s)) 4521 } else { 4522 if (m) { 4523 var w = m.split(" "); 4524 var B = true, 4525 n = true; 4526 for (var l = 0; l < w.length; l++) { 4527 u = this.settings.validators[w[l]].apply(this, [f, s, q]); 4528 o.push(u); 4529 n = u && B; 4530 B = u 4531 } 4532 if (n) { 4533 this.S(f).removeAttr(this.invalid_attr); 4534 q.removeClass("error"); 4535 if (p.length > 0 && this.settings.error_labels) { 4536 p.removeClass(this.settings.error_class).removeAttr("role") 4537 } 4538 c(f).triggerHandler("valid") 4539 } else { 4540 this.S(f).attr(this.invalid_attr, ""); 4541 q.addClass("error"); 4542 if (p.length > 0 && this.settings.error_labels) { 4543 p.addClass(this.settings.error_class).attr("role", "alert") 4544 } 4545 c(f).triggerHandler("invalid") 4546 } 4547 } else { 4548 if (r[x][1].test(v) && h || !s && f.value.length < 1 || c(f).attr("disabled")) { 4549 o.push(true) 4550 } else { 4551 o.push(false) 4552 } 4553 o = [o.every(function(i) { 4554 return i 4555 })]; 4556 if (o[0]) { 4557 this.S(f).removeAttr(this.invalid_attr); 4558 f.setAttribute("aria-invalid", "false"); 4559 f.removeAttribute("aria-describedby"); 4560 q.removeClass(this.settings.error_class); 4561 if (p.length > 0 && this.settings.error_labels) { 4562 p.removeClass(this.settings.error_class).removeAttr("role") 4563 } 4564 c(f).triggerHandler("valid") 4565 } else { 4566 this.S(f).attr(this.invalid_attr, ""); 4567 f.setAttribute("aria-invalid", "true"); 4568 var k = q.find("small." + this.settings.error_class, "span." + this.settings.error_class); 4569 var z = k.length >
4569 0 ? k[0].id : ""; 4570 if (z.length > 0) { 4571 f.setAttribute("aria-describedby", z) 4572 } 4573 q.addClass(this.settings.error_class); 4574 if (p.length > 0 && this.settings.error_labels) { 4575 p.addClass(this.settings.error_class).attr("role", "alert") 4576 } 4577 c(f).triggerHandler("invalid") 4578 } 4579 } 4580 } 4581 } 4582 j = j.concat(o) 4583 } 4584 return j 4585 }, 4586 valid_checkbox: function(e, g) { 4587 var e = this.S(e), 4588 f = (e.is(":checked") || !g || e.get(0).getAttribute("disabled")); 4589 if (f) { 4590 e.removeAttr(this.invalid_attr).parent().removeClass(this.settings.error_class); 4591 c(e).triggerHandler("valid") 4592 } else { 4593 e.attr(this.invalid_attr, "").parent().addClass(this.settings.error_class); 4594 c(e).triggerHandler("invalid") 4595 } 4596 return f 4597 }, 4598 valid_radio: function(h, m) { 4599 var e = h.getAttribute("name"), 4600 l = this.S(h).closest("[data-" + this.attr_name(true) + "]").find("[name='" + e + "']"), 4601 k = l.length, 4602 j = false, 4603 g = false; 4604 for (var f = 0; f < k; f++) { 4605 if (l[f].getAttribute("disabled")) { 4606 g = true; 4607 j = true 4608 } else { 4609 if (l[f].checked) { 4610 j = true 4611 } else { 4612 if (g) { 4613 j = false 4614 } 4615 } 4616 } 4617 } 4618 for (var f = 0; f < k; f++) { 4619 if (j) { 4620 this.S(l[f]).removeAttr(this.invalid_attr).parent().removeClass(this.settings.error_class); 4621 c(l[f]).triggerHandler("valid") 4622 } else { 4623 this.S(l[f]).attr(this.invalid_attr, "").parent().addClass(this.settings.error_class); 4624 c(l[f]).triggerHandler("invalid") 4625 } 4626 } 4627 return j 4628 }, 4629 valid_equal: function(f, h, e) { 4630 var j = a.getElementById(f.getAttribute(this.add_namespace("data-equalto"))).value, 4631 i = f.value, 4632 g = (j === i); 4633 if (g) { 4634 this.S(f).removeAttr(this.invalid_attr); 4635 e.removeClass(this.settings.error_class); 4636 if (label.length > 0 && settings.error_labels) { 4637 label.removeClass(this.settings.error_class) 4638 } 4639 } else { 4640 this.S(f).attr(this.invalid_attr, ""); 4641 e.addClass(this.settings.error_class); 4642 if (label.length > 0 && settings.error_labels) { 4643 label.addClass(this.settings.error_class) 4644 } 4645 } 4646 return g 4647 }, 4648 valid_oneof: function(h, j, g, e) { 4649 var h = this.S(h), 4650 f = this.S("[" + this.add_namespace("data-oneof") + "]"), 4651 i = f.filter(":checked").length > 0; 4652 if (i) { 4653 h.removeAttr(this.invalid_attr).parent().removeClass(this.settings.error_class) 4654 } else { 4655 h.attr(this.invalid_attr, "").parent().addClass(this.settings.error_class) 4656 } 4657 if (!e) { 4658 var k = this; 4659 f.each(function() { 4660 k.valid_oneof.call(k, this, null, null, true) 4661 }) 4662 } 4663 return i 4664 }, 4665 reflow: function(g, f) { 4666 var e = this, 4667 h = e.S("[" + this.attr_name() + "]").attr("novalidate", "novalidate"); 4668 e.S(h).each(function(i, j) { 4669 e.events(j) 4670 }) 4671 } 4672 } 4673}(jQuery, window, window.document)); 4674(function(c, b, a, d) { 4675 Foundation.libs.tooltip = { 4676 name: "tooltip", 4677 version: "5.5.2", 4678 settings: { 4679 additional_inheritable_classes: [], 4680 tooltip_class: ".tooltip", 4681 append_to: "body", 4682 touch_close_text: "Tap To Close", 4683 disable_for_touch: false, 4684 hover_delay: 200, 4685 show_on: "all", 4686 tip_template: function(e, f) { 4687 return '<span data-selector="' + e + '" id="' + e + '" class="' + Foundation.libs.tooltip.settings.tooltip_class.substring(1) + '" role="tooltip">' + f + '<span class="nub"></span></span>' 4688 } 4689 }, 4690 cache: {}, 4691 init: function(f, g, e) { 4692 Foundation.inherit(this, "random_str"); 4693 this.bindings(g, e) 4694 }, 4695 should_show: function(g, f) { 4696 var e = c.extend({}, this.settings, this.data_options(g)); 4697 if (e.show_on === "all") { 4698 return true 4699 } else { 4700 if (this.small() && e.show_on === "small") { 4701 return true 4702 } else { 4703 if (this.medium() && e.show_on === "medium") { 4704 return true 4705 } else { 4706 if (this.large() && e.show_on === "large") { 4707 return true 4708 } 4709 } 4710 } 4711 } 4712 return false 4713 }, 4714 medium: function() { 4715 return matchMedia(Foundation.media_queries.medium).matches 4716 }, 4717 large: function() { 4718 return matchMedia(Foundation.media_queries.large).matches 4719 }, 4720 events: function(e) { 4721 var g = this, 4722 h = g.S; 4723 g.create(this.S(e)); 4724 4725 function i(k, l, j) { 4726 if (k.timer) { 4727 return 4728 } 4729 if (j) { 4730 k.timer = null; 4731 g.showTip(l) 4732 } else { 4733 k.timer = setTimeout(function() { 4734 k.timer = null; 4735 g.showTip(l) 4736 }.bind(k), g.settings.hover_delay) 4737 } 4738 } 4739 function f(j, k) { 4740 if (j.timer) { 4741 clearTimeout(j.timer); 4742 j.timer = null 4743 } 4744 g.hide(k) 4745 } 4746 c(this.scope).off(".tooltip").on("mouseenter.fndtn.tooltip mouseleave.fndtn.tooltip touchstart.fndtn.tooltip MSPointerDown.fndtn.tooltip", "[" + this.attr_name() + "]", function(m) { 4747 var l = h(this), 4748 k = c.extend({}, g.settings, g.data_options(l)), 4749 j = false; 4750 if (Modernizr.touch && /touchstart|MSPointerDown/i.test(m.type) && h(m.target).is("a")) { 4751 return false 4752 } 4753 if (/mouse/i.test(m.type) && g.ie_touch(m)) { 4754 return false 4755 } 4756 if (l.hasClass("open")) { 4757 if (Modernizr.touch && /touchstart|MSPointerDown/i.test(m.type)) { 4758 m.preventDefault() 4759 } 4760 g.hide(l) 4761 } else { 4762 if (k.disable_for_touch && Modernizr.touch && /touchstart|MSPointerDown/i.test(m.type)) { 4763 return 4764 } else { 4765 if (!k.disable_for_touch && Modernizr.touch && /touchstart|MSPointerDown/i.test(m.type)) { 4766 m.preventDefault(); 4767 h(k.tooltip_class + ".open").hide(); 4768 j = true; 4769 if (c(".open[" + g.attr_name() + "]").length > 0) { 4770 var n = h(c(".open[" + g.attr_name() + "]")[0]); 4771 g.hide(n) 4772 } 4773 } 4774 } 4775 if (/enter|over/i.test(m.type)) { 4776 i(this, l) 4777 } else { 4778 if (m.type === "mouseout" || m.type === "mouseleave") { 4779 f(this, l) 4780 } else { 4781 i(this, l, true) 4782 } 4783 } 4784 } 4785 }).on("mouseleave.fndtn.tooltip touchstart.fndtn.tooltip MSPointerDown.fndtn.tooltip", "[" + this.attr_name() + "].open", function(j) { 4786 if (/mouse/i.test(j.type) && g.ie_touch(j)) { 4787 return false 4788 } 4789 if (c(this).data("tooltip-open-event-type") == "touch" && j.type == "mouseleave") { 4790 return 4791 } else { 4792 if (c(this).data("tooltip-open-event-type") == "mouse" && /MSPointerDown|touchstart/i.test(j.type)) { 4793 g.convert_to_touch(c(this)) 4794 } else { 4795 f(this, c(this)) 4796 } 4797 } 4798 }).on("DOMNodeRemoved DOMAttrModified", "[" + this.attr_name() + "]:not(a)", function(j) { 4799 f(this, h(this)) 4800 }) 4801 }, 4802 ie_touch: function(f) { 4803 return false 4804 }, 4805 showTip: function(e) { 4806 var f = this.getTip(e); 4807 if (this.should_show(e, f)) { 4808 return this.show(e) 4809 } 4810 return 4811 }, 4812 getTip: function(f) { 4813 var e = this.selector(f), 4814 g = c.extend({}, this.settings, this.data_options(f)), 4815 h = null; 4816 if (e) { 4817 h = this.S('span[data-selector="' + e + '"]' + g.tooltip_class) 4818 } 4819 return (typeof h === "object") ? h : false 4820 }, 4821 selector: function(e) { 4822 var f = e.attr(this.attr_name()) || e.attr("data-selector"); 4823 if (typeof f != "string") { 4824 f = this.random_str(6); 4825 e.attr("data-selector", f).attr("aria-describedby", f) 4826 } 4827 return f 4828 }, 4829 create: function(e) { 4830 var g = this, 4831 i = c.extend({}, this.settings, this.data_options(e)), 4832 f = this.settings.tip_template; 4833 if (typeof i.tip_template === "string" && b.hasOwnProperty(i.tip_template)) { 4834 f = b[i.tip_template] 4835 } 4836 var j = c(f(this.selector(e), c("<div></div>").html(e.attr("title")).html())), 4837 h = this.inheritable_classes(e); 4838 j.addClass(h).appendTo(i.append_to); 4839 if (Modernizr.touch) { 4840 j.append('<span class="tap-to-close">' + i.touch_close_text + "</span>"); 4841 j.on("touchstart.fndtn.tooltip MSPointerDown.fndtn.tooltip", function(k) { 4842 g.hide(e) 4843 }) 4844 } 4845 e.removeAttr("title").attr("title", "") 4846 }, 4847 reposition: function(j, m, h) { 4848 var e, n, l, i, g, k; 4849 m.css("visibility", "hidden").show(); 4850 e = j.data("width"); 4851 n = m.children(".nub"); 4852 l = n.outerHeight(); 4853 i = n.outerHeight();
4854 if (this.small()) { 4855 m.css({ 4856 width: "100%" 4857 }) 4858 } else { 4859 m.css({ 4860 width: (e) ? e : "auto" 4861 }) 4862 } 4863 k = function(t, s, p, o, r, q) { 4864 return t.css({ 4865 top: (s) ? s : "auto", 4866 bottom: (o) ? o : "auto", 4867 left: (r) ? r : "auto", 4868 right: (p) ? p : "auto" 4869 }).end() 4870 }; 4871 k(m, (j.offset().top + j.outerHeight() + 10), "auto", "auto", j.offset().left); 4872 if (this.small()) { 4873 k(m, (j.offset().top + j.outerHeight() + 10), "auto", "auto", 12.5, c(this.scope).width()); 4874 m.addClass("tip-override"); 4875 k(n, -l, "auto", "auto", j.offset().left) 4876 } else { 4877 var f = j.offset().left; 4878 if (Foundation.rtl) { 4879 n.addClass("rtl"); 4880 f = j.offset().left + j.outerWidth() - m.outerWidth() 4881 } 4882 k(m, (j.offset().top + j.outerHeight() + 10), "auto", "auto", f); 4883 if (n.attr("style")) { 4884 n.removeAttr("style") 4885 } 4886 m.removeClass("tip-override"); 4887 if (h && h.indexOf("tip-top") > -1) { 4888 if (Foundation.rtl) { 4889 n.addClass("rtl") 4890 } 4891 k(m, (j.offset().top - m.outerHeight()), "auto", "auto", f).removeClass("tip-override") 4892 } else { 4893 if (h && h.indexOf("tip-left") > -1) { 4894 k(m, (j.offset().top + (j.outerHeight() / 2) - (m.outerHeight() / 2)), "auto", "auto", (j.offset().left - m.outerWidth() - l)).removeClass("tip-override"); 4895 n.removeClass("rtl") 4896 } else { 4897 if (h && h.indexOf("tip-right") > -1) { 4898 k(m, (j.offset().top + (j.outerHeight() / 2) - (m.outerHeight() / 2)), "auto", "auto", (j.offset().left + j.outerWidth() + l)).removeClass("tip-override"); 4899 n.removeClass("rtl") 4900 } 4901 } 4902 } 4903 } 4904 m.css("visibility", "visible").hide() 4905 }, 4906 small: function() { 4907 return matchMedia(Foundation.media_queries.small).matches && !matchMedia(Foundation.media_queries.medium).matches 4908 }, 4909 inheritable_classes: function(e) { 4910 var h = c.extend({}, this.settings, this.data_options(e)), 4911 i = ["tip-top", "tip-left", "tip-bottom", "tip-right", "radius", "round"].concat(h.additional_inheritable_classes), 4912 g = e.attr("class"), 4913 f = g ? c.map(g.split(" "), function(k, j) { 4914 if (c.inArray(k, i) !== -1) { 4915 return k 4916 } 4917 }).join(" ") : ""; 4918 return c.trim(f) 4919 }, 4920 convert_to_touch: function(e) { 4921 var f = this, 4922 h = f.getTip(e), 4923 g = c.extend({}, f.settings, f.data_options(e)); 4924 if (h.find(".tap-to-close").length === 0) { 4925 h.append('<span class="tap-to-close">' + g.touch_close_text + "</span>"); 4926 h.on("click.fndtn.tooltip.tapclose touchstart.fndtn.tooltip.tapclose MSPointerDown.fndtn.tooltip.tapclose", function(i) { 4927 f.hide(e) 4928 }) 4929 } 4930 e.data("tooltip-open-event-type", "touch") 4931 }, 4932 show: function(e) { 4933 var f = this.getTip(e); 4934 if (e.data("tooltip-open-event-type") == "touch") { 4935 this.convert_to_touch(e) 4936 } 4937 this.reposition(e, f, e.attr("class")); 4938 e.addClass("open"); 4939 f.fadeIn(150) 4940 }, 4941 hide: function(e) { 4942 var f = this.getTip(e); 4943 f.fadeOut(150, function() { 4944 f.find(".tap-to-close").remove(); 4945 f.off("click.fndtn.tooltip.tapclose MSPointerDown.fndtn.tapclose"); 4946 e.removeClass("open") 4947 }) 4948 }, 4949 off: function() { 4950 var e = this; 4951 this.S(this.scope).off(".fndtn.tooltip"); 4952 this.S(this.settings.tooltip_class).each(function(f) { 4953 c("[" + e.attr_name() + "]").eq(f).attr("title", c(this).text()) 4954 }).remove() 4955 }, 4956 reflow: function() {} 4957 } 4958}(jQuery, window, window.document));
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.