vendor: 26,398 bytes, lines 1-391
1/*! 2 Modaal - accessible modals - v0.4.4 3 by Humaan, for all humans. 4 http://humaan.com 5 */ 6! function (a) { 7 function t(a) { 8 var t = {}, 9 o = !1; 10 a.attr("data-modaal-type") && (o = !0, t.type = a.attr("data-modaal-type")), a.attr("data-modaal-content-source") && (o = !0, t.content_source = a.attr("data-modaal-content-source")), a.attr("data-modaal-animation") && (o = !0, t.animation = a.attr("data-modaal-animation")), a.attr("data-modaal-animation-speed") && (o = !0, t.animation_speed = a.attr("data-modaal-animation-speed")), a.attr("data-modaal-after-callback-delay") && (o = !0, t.after_callback_delay = a.attr("data-modaal-after-callback-delay")), a.attr("data-modaal-is-locked") && (o = !0, t.is_locked = "true" === a.attr("data-modaal-is-locked")), a.attr("data-modaal-hide-close") && (o = !0, t.hide_close = "true" === a.attr("data-modaal-hide-close")), a.attr("data-modaal-background") && (o = !0, t.background = a.attr("data-modaal-background")), a.attr("data-modaal-overlay-opacity") && (o = !0, t.overlay_opacity = a.attr("data-modaal-overlay-opacity")), a.attr("data-modaal-overlay-close") && (o = !0, t.overlay_close = "false" !== a.attr("data-modaal-overlay-close")), a.attr("data-modaal-accessible-title") && (o = !0, t.accessible_title = a.attr("data-modaal-accessible-title")), a.attr("data-modaal-start-open") && (o = !0, t.start_open = "true" === a.attr("data-modaal-start-open")), a.attr("data-modaal-fullscreen") && (o = !0, t.fullscreen = "true" === a.attr("data-modaal-fullscreen")), a.attr("data-modaal-custom-class") && (o = !0, t.custom_class = a.attr("data-modaal-custom-class")), a.attr("data-modaal-close-text") && (o = !0, t.close_text = a.attr("data-modaal-close-text")), a.attr("data-modaal-close-aria-label") && (o = !0, t.close_aria_label = a.attr("data-modaal-close-aria-label")), a.attr("data-modaal-background-scroll") && (o = !0, t.background_scroll = "true" === a.attr("data-modaal-background-scroll")), a.attr("data-modaal-width") && (o = !0, t.width = parseInt(a.attr("data-modaal-width"))), a.attr("data-modaal-height") && (o = !0, t.height = parseInt(a.attr("data-modaal-height"))), a.attr("data-modaal-confirm-button-text") && (o = !0, t.confirm_button_text = a.attr("data-modaal-confirm-button-text")), a.attr("data-modaal-confirm-cancel-button-text") && (o = !0, t.confirm_cancel_button_text = a.attr("data-modaal-confirm-cancel-button-text")), a.attr("data-modaal-confirm-title") && (o = !0, t.confirm_title = a.attr("data-modaal-confirm-title")), a.attr("data-modaal-confirm-content") && (o = !0, t.confirm_content = a.attr("data-modaal-confirm-content")), a.attr("data-modaal-gallery-active-class") && (o = !0, t.gallery_active_class = a.attr("data-modaal-gallery-active-class")), a.attr("data-modaal-loading-content") && (o = !0, t.loading_content = a.attr("data-modaal-loading-content")), a.attr("data-modaal-loading-class") && (o = !0, t.loading_class = a.attr("data-modaal-loading-class")), a.attr("data-modaal-ajax-error-class") && (o = !0, t.ajax_error_class = a.attr("data-modaal-ajax-error-class")), a.attr("data-modaal-instagram-id") && (o = !0, t.instagram_id = a.attr("data-modaal-instagram-id")), o && a.modaal(t) 11 } 12 var o = { 13 init: function (t, o) { 14 var e = this; 15 if (e.dom = a("body"), e.$elem = a(o), e.options = a.extend({}, a.fn.modaal.options, e.$elem.data(), t), e.xhr = null, e.scope = { 16 is_open: !1, 17 id: "modaal_" + (new Date).getTime() + Math.random().toString(16).substring(2), 18 source: e.options.content_source ? e.options.content_source : e.$elem.attr("href") 19 }, e.$elem.attr("data-modaal-scope", e.scope.id), e.private_options = { 20 active_class: "is_active" 21 }, e.lastFocus = null, e.options.is_locked || "confirm" == e.options.type || e.options.hide_close ? e.scope.close_btn = "" : e.scope.close_btn = '<button type="button" class="modaal-close" id="modaal-close" aria-label="' + e.options.close_aria_label + '"><span>' + e.options.close_text + "</span></button>", "none" === e.options.animation && (e.options.animation_speed = 0, e.options.after_callback_delay = 0), a(o).on("click.Modaal", function (a) { 22 a.preventDefault(), e.create_modaal(e, a) 23 }), !0 === e.options.outer_controls) var i = "outer"; 24 else var i = "inner"; 25 e.scope.prev_btn = '<button type="button" class="modaal-gallery-control modaal-gallery-prev modaal-gallery-prev-' + i + '" id="modaal-gallery-prev" aria-label="Previous image (use left arrow to change)"><span>Previous Image</span></button>', e.scope.next_btn = '<button type="button" class="modaal-gallery-control modaal-gallery-next modaal-gallery-next-' + i + '" id="modaal-gallery-next" aria-label="Next image (use right arrow to change)"><span>Next Image</span></button>', !0 === e.options.start_open && e.create_modaal(e) 26 }, 27 create_modaal: function (a, t) { 28 var o, a = this; 29 if (a.lastFocus = a.$elem, !1 !== a.options.should_open && ("function" != typeof a.options.should_open || !1 !== a.options.should_open())) { 30 switch (a.options.before_open.call(a, t), a.options.type) { 31 case "inline": 32 a.create_basic(); 33 break; 34 case "ajax": 35 o = a.options.source(a.$elem, a.scope.source), a.fetch_ajax(o); 36 break; 37 case "confirm": 38 a.options.is_locked = !0, a.create_confirm(); 39 break; 40 case "image": 41 a.create_image(); 42 break; 43 case "iframe": 44 o = a.options.source(a.$elem, a.scope.source), a.create_iframe(o); 45 break; 46 case "video": 47 a.create_video(a.scope.source); 48 break; 49 case "instagram": 50 a.create_instagram() 51 } 52 a.watch_events() 53 } 54 }, 55 watch_events: function () { 56 var t = this; 57 t.dom.off("click.Modaal keyup.Modaal keydown.Modaal"), t.dom.on("keydown.Modaal", function (o) { 58 var e = o.keyCode, 59 i = o.target; 60 9 == e && t.scope.is_open && (a.contains(document.getElementById(t.scope.id), i) || a("#" + t.scope.id).find('*[tabindex="0"]').focus()) 61 }), t.dom.on("keyup.Modaal", function (o) { 62 var e = o.keyCode, 63 i = o.target; 64 return o.shiftKey && 9 == o.keyCode && t.scope.is_open && (a.contains(document.getElementById(t.scope.id), i) || a("#" + t.scope.id).find(".modaal-close").focus()), !t.options.is_locked && 27 == e && t.scope.is_open ? !a(document.activeElement).is("input:not(:checkbox):not(:radio)") && void t.modaal_close() : "image" == t.options.type ? (37 == e && t.scope.is_open && !a("#" + t.scope.id + " .modaal-gallery-prev").hasClass("is_hidden") && t.gallery_update("prev"), void(39 == e && t.scope.is_open && !a("#" + t.scope.id + " .modaal-gallery-next").hasClass("is_hidden") && t.gallery_update("next"))) : void 0 65 }), t.dom.on("click.Modaal", function (o) { 66 var e = a(o.target); 67 if (!t.options.is_locked && (t.options.overlay_close && e.is(".modaal-inner-wrapper") || e.is(".modaal-close") || e.closest(".modaal-close").length)) return void t.modaal_close(); 68 if (e.is(".modaal-confirm-btn")) return e.is(".modaal-ok") && t.options.confirm_callback.call(t, t.lastFocus), e.is(".modaal-cancel") && t.options.confirm_cancel_callback.call(t, t.lastFocus), void t.modaal_close(); 69 if (e.is(".modaal-gallery-control")) { 70 if (e.hasClass("is_hidden")) return; 71 return e.is(".modaal-gallery-prev") && t.gallery_update("prev"), void(e.is(".modaal-gallery-next") && t.gallery_update("next")) 72 } 73 }) 74 }, 75 build_modal: function (t) { 76 var o = this, 77 e = ""; 78 "instagram" == o.options.type && (e = " modaal-instagram"); 79 var i, l = "video" == o.options.type ? "modaal-video-wrap" : "modaal-content"; 80 switch (o.options.animation) { 81 case "fade": 82 i = " modaal-start_fade"; 83 break; 84 case "slide-down": 85 i = " modaal-start_slidedown"; 86 break; 87 default: 88 i = " modaal-start_none" 89 } 90 var n = ""; 91 o.options.fullscreen && (n = " modaal-fullscreen"), "" === o.options.custom_class && void 0 === o.options.custom_class || (o.options.custom_class = " " + o.options.custom_class); 92 var s = ""; 93 o.options.width && o.options.height && "number" == typeof o.options.width && "number" == typeof o.options.height ? s = ' style="max-width:' + o.options.width + "px;height:" + o.options.height + 'px;overflow:auto;"' : o.options.width && "number" == typeof o.options.width ? s = ' style="max-width:' + o.options.width + 'px;"' : o.options.height && "number" == typeof o.options.height && (s = ' style="height:' + o.options.height + 'px;overflow:auto;"'), ("image" == o.options.type || "video" == o.options.type || "instagram" == o.options.type || o.options.fullscreen) && (s = ""); 94 var d = ""; 95 o.is_touch() && (d = ' style="cursor:pointer;"'); 96 var r = '<div class="modaal-wrapper modaal-' + o.options.type + i + e + n + o.options.custom_class + '" id="' + o.scope.id + '"><div class="modaal-outer-wrapper"><div class="modaal-inner-wrapper"' + d + ">"; 97 "video" != o.options.type && (r += '<div class="modaal-container"' + s + ">"), r += '<div class="' + l + ' modaal-focus" aria-hidden="false" aria-label="' + o.options.accessible_title + " - " + o.options.close_aria_label + '" role="dialog">', "inline" == o.options.type ? r += '<div class="modaal-content-container" role="document"></div>' : r += t, r += "</div>" + o.scope.close_btn, "video" != o.options.type && (r += "</div>"), r += "</div>", "image" == o.options.type && !0 === o.options.outer_controls && (r += o.scope.prev_btn + o.scope.next_btn), r += "</div></div>", a("#" + o.scope.id + "_overlay").length < 1 && o.dom.append(r), "inline" == o.options.type && t.appendTo("#" + o.scope.id + " .modaal-content-container"), o.modaal_overlay("show") 98 }, 99 create_basic: function () { 100 var t = this, 101 o = a(t.scope.source), 102 e = ""; 103 o.length ? (e = o.contents().detach(), o.empty()) : e = "Content could not be loaded. Please check the source and try again.", t.build_modal(e) 104 }, 105 create_instagram: function () { 106 var t = this, 107 o = t.options.instagram_id, 108 e = "", 109 i = "Instagram photo couldn't be loaded, please check the embed code and try again."; 110 if (t.build_modal('<div class="modaal-content-container' + ("" != t.options.loading_class ? " " + t.options.loading_class : "") + '">' + t.options.loading_content + "</div>"), "" != o && null !== o && void 0 !== o) { 111 var l = "https://api.instagram.com/oembed?url=http://instagr.am/p/" + o + "/"; 112 a.ajax({ 113 url: l, 114 dataType: "jsonp", 115 cache: !1, 116 success: function (o) { 117 t.dom.append('<div id="temp-ig" style="width:0;height:0;overflow:hidden;">' + o.html + "</div>"), t.dom.attr("data-igloaded") ? window.instgrm.Embeds.process() : t.dom.attr("data-igloaded", "true"); 118 var e = "#" + t.scope.id + " .modaal-content-container"; 119 a(e).length > 0 && setTimeout(function () { 120 a("#temp-ig").contents().clone().appendTo(e), a("#temp-ig").remove() 121 }, 1e3) 122 }, 123 error: function () { 124 e = i; 125 var o = a("#" + t.scope.id + " .modaal-content-container"); 126 o.length > 0 && (o.removeClass(t.options.loading_class).addClass(t.options.ajax_error_class), o.html(e)) 127 } 128 }) 129 } else e = i; 130 return !1 131 }, 132 fetch_ajax: function (t) { 133 var o = this; 134 null == o.options.accessible_title && (o.options.accessible_title = "Dialog Window"), null !== o.xhr && (o.xhr.abort(), o.xhr = null), o.build_modal('<div class="modaal-content-container' + ("" != o.options.loading_class ? " " + o.options.loading_class : "") + '">' + o.options.loading_content + "</div>"), o.xhr = a.ajax(t, { 135 success: function (t) { 136 var e = a("#" + o.scope.id).find(".modaal-content-container"); 137 e.length > 0 && (e.removeClass(o.options.loading_class), e.html(t), o.options.ajax_success.call(o, e)) 138 }, 139 error: function (t) { 140 if ("abort" != t.statusText) { 141 var e = a("#" + o.scope.id + " .modaal-content-container"); 142 e.length > 0 && (e.removeClass(o.options.loading_class).addClass(o.options.ajax_error_class), e.html("Content could not be loaded. Please check the source and try again.")) 143 } 144 } 145 }) 146 }, 147 create_confirm: function () { 148 var a, t = this; 149 a = '<div class="modaal-content-container"><h1 id="modaal-title">' + t.options.confirm_title + '</h1><div class="modaal-confirm-content">' + t.options.confirm_content + '</div><div class="modaal-confirm-wrap"><button type="button" class="modaal-confirm-btn modaal-ok" aria-label="Confirm">' + t.options.confirm_button_text + '</button><button type="button" class="modaal-confirm-btn modaal-cancel" aria-label="Cancel">' + t.options.confirm_cancel_button_text + "</button></div></div></div>", t.build_modal(a) 150 }, 151 create_image: function () { 152 var t, o, e = this, 153 i = ""; 154 if (e.$elem.is("[data-group]") || e.$elem.is("[rel]")) { 155 var l = e.$elem.is("[data-group]"), 156 n = l ? e.$elem.attr("data-group") : e.$elem.attr("rel"), 157 s = a(l ? '[data-group="' + n + '"]' : '[rel="' + n + '"]'); 158 s.removeAttr("data-gallery-active", "is_active"), e.$elem.attr("data-gallery-active", "is_active"), o = s.length - 1; 159 var d = []; 160 i = '<div class="modaal-gallery-item-wrap">', s.each(function (t, o) { 161 var e = "", 162 i = "", 163 l = "", 164 n = !1, 165 s = !1, 166 r = o.getAttribute("data-modaal-desc"), 167 c = o.getAttribute("data-gallery-active"); 168 a(o).attr("data-modaal-content-source") ? e = a(o).attr("data-modaal-content-source") : a(o).attr("href") ? e = a(o).attr("href") : a(o).attr("src") ? e = a(o).attr("src") : (e = "trigger requires href or data-modaal-content-source attribute", s = !0), "" != r && null !== r && void 0 !== r ? (i = r, l = '<div class="modaal-gallery-label"><span class="modaal-accessible-hide">Image ' + (t + 1) + " - </span>" + r.replace(/</g, "<").replace(/>/g, ">") + "</div>") : l = '<div class="modaal-gallery-label"><span class="modaal-accessible-hide">Image ' + (t + 1) + "</span></div>", c && (n = !0); 169 var m = { 170 url: e, 171 alt: i, 172 rawdesc: r, 173 desc: l, 174 active: n, 175 src_error: s 176 }; 177 d.push(m) 178 }); 179 for (var r = 0; r < d.length; r++) { 180 var c = "", 181 m = d[r].rawdesc ? "Image: " + d[r].rawdesc : "Image " + r + " no description"; 182 d[r].active && (c = " " + e.private_options.active_class); 183 var p = d[r].src_error ? d[r].url : '<img src="' + d[r].url + '" alt=" " style="width:100%">'; 184 i += '<div class="modaal-gallery-item gallery-item-' + r + c + '" aria-label="' + m + '">' + p + d[r].desc + "</div>" 185 } 186 i += "</div>", 1 != e.options.outer_controls && (i += e.scope.prev_btn + e.scope.next_btn) 187 } else { 188 var u, _ = !1; 189 e.$elem.attr("data-modaal-content-source") ? u = e.$elem.attr("data-modaal-content-source") : e.$elem.attr("href") ? u = e.$elem.attr("href") : e.$elem.attr("src") ? u = e.$elem.attr("src") : (u = "trigger requires href or data-modaal-content-source attribute", _ = !0); 190 var v = "", 191 f = "", 192 m = ""; 193 e.$elem.attr("data-modaal-desc") ? (m = e.$elem.attr("data-modaal-desc"), v = e.$elem.attr("data-modaal-desc"), f = '<div class="modaal-gallery-label"><span class="modaal-accessible-hide">Image - </span>' + v.replace(/</g, "<").replace(/>/g, ">") + "</div>") : m = "Image with no description"; 194 var p = _ ? u : '<img src="' + u + '" alt=" " style="width:100%">'; 195 i = '<div class="modaal-gallery-item is_active" aria-label="' + m + '">' + p + f + "</div>" 196 } 197 t = i, e.build_modal(t), a(".modaal-gallery-item.is_active").is(".gallery-item-0") && a(".modaal-gallery-prev").hide(), a(".modaal-gallery-item.is_active").is(".gallery-item-" + o) && a(".modaal-gallery-next").hide() 198 }, 199 gallery_update: function (t) { 200 var o = this, 201 e = a("#" + o.scope.id), 202 i = e.find(".modaal-gallery-item"), 203 l = i.length - 1; 204 if (0 == l) return !1; 205 var n = e.find(".modaal-gallery-prev"), 206 s = e.find(".modaal-gallery-next"), 207 d = 0, 208 r = 0, 209 c = e.find(".modaal-gallery-item." + o.private_options.active_class), 210 m = "next" == t ? c.next(".modaal-gallery-item") : c.prev(".modaal-gallery-item"); 211 return o.options.before_image_change.call(o, c, m), ("prev" != t || !e.find(".gallery-item-0").hasClass("is_active")) && (("next" != t || !e.find(".gallery-item-" + l).hasClass("is_active")) && void c.stop().animate({ 212 opacity: 0 213 }, 250, function () { 214 m.addClass("is_next").css({ 215 position: "absolute", 216 display: "block", 217 opacity: 0 218 }); 219 var t = a(document).width(), 220 i = t > 1140 ? 280 : 50; 221 d = e.find(".modaal-gallery-item.is_next").width(), r = e.find(".modaal-gallery-item.is_next").height(); 222 var p = e.find(".modaal-gallery-item.is_next img").prop("naturalWidth"), 223 u = e.find(".modaal-gallery-item.is_next img").prop("naturalHeight"); 224 p > t - i ? (d = t - i, e.find(".modaal-gallery-item.is_next").css({ 225 width: d 226 }), e.find(".modaal-gallery-item.is_next img").css({ 227 width: d 228 }), r = e.find(".modaal-gallery-item.is_next").find("img").height()) : (d = p, r = u), e.find(".modaal-gallery-item-wrap").stop().animate({ 229 width: d, 230 height: r 231 }, 250, function () { 232 c.removeClass(o.private_options.active_class + " " + o.options.gallery_active_class).removeAttr("style"), c.find("img").removeAttr("style"), m.addClass(o.private_options.active_class + " " + o.options.gallery_active_class).removeClass("is_next").css("position", ""), m.stop().animate({ 233 opacity: 1 234 }, 250, function () { 235 a(this).removeAttr("style").css({ 236 width: "100%" 237 }), a(this).find("img").css("width", "100%"), e.find(".modaal-gallery-item-wrap").removeAttr("style"), o.options.after_image_change.call(o, m) 238 }), e.find(".modaal-gallery-item").removeAttr("tabindex"), e.find(".modaal-gallery-item." + o.private_options.active_class).attr("tabindex", "0").focus(), e.find(".modaal-gallery-item." + o.private_options.active_class).is(".gallery-item-0") ? n.stop().animate({ 239 opacity: 0 240 }, 150, function () { 241 a(this).hide() 242 }) : n.stop().css({ 243 display: "block", 244 opacity: n.css("opacity") 245 }).animate({ 246 opacity: 1 247 }, 150), e.find(".modaal-gallery-item." + o.private_options.active_class).is(".gallery-item-" + l) ? s.stop().animate({ 248 opacity: 0 249 }, 150, function () { 250 a(this).hide() 251 }) : s.stop().css({ 252 display: "block", 253 opacity: n.css("opacity") 254 }).animate({ 255 opacity: 1 256 }, 150) 257 }) 258 })) 259 }, 260 create_video: function (a) { 261 var t, o = this; 262 t = '<iframe src="' + a + '" class="modaal-video-frame" frameborder="0" allowfullscreen></iframe>', o.build_modal('<div class="modaal-video-container">' + t + "</div>") 263 }, 264 create_iframe: function (a) { 265 var t, o = this; 266 t = null !== o.options.width || void 0 !== o.options.width || null !== o.options.height || void 0 !== o.options.height ? '<iframe src="' + a + '" class="modaal-iframe-elem" frameborder="0" allowfullscreen></iframe>' : '<div class="modaal-content-container">Please specify a width and height for your iframe</div>', o.build_modal(t) 267 }, 268 modaal_open: function () { 269 var t = this, 270 o = a("#" + t.scope.id), 271 e = t.options.animation; 272 "none" === e && (o.removeClass("modaal-start_none"), t.options.after_open.call(t, o)), "fade" === e && o.removeClass("modaal-start_fade"), "slide-down" === e && o.removeClass("modaal-start_slide_down"); 273 var i = o; 274 a(".modaal-wrapper *[tabindex=0]").removeAttr("tabindex"), i = "image" == t.options.type ? a("#" + t.scope.id).find(".modaal-gallery-item." + t.private_options.active_class) : o.find(".modaal-iframe-elem").length ? o.find(".modaal-iframe-elem") : o.find(".modaal-video-wrap").length ? o.find(".modaal-video-wrap") : o.find(".modaal-focus"), i.attr("tabindex", "0").focus(), "none" !== e && setTimeout(function () { 275 t.options.after_open.call(t, o) 276 }, t.options.after_callback_delay) 277 }, 278 modaal_close: function () { 279 var t = this, 280 o = a("#" + t.scope.id); 281 t.options.before_close.call(t, o), null !== t.xhr && (t.xhr.abort(), t.xhr = null), "none" === t.options.animation && o.addClass("modaal-start_none"), "fade" === t.options.animation && o.addClass("modaal-start_fade"), "slide-down" === t.options.animation && o.addClass("modaal-start_slide_down"), setTimeout(function () { 282 "inline" == t.options.type && a("#" + t.scope.id + " .modaal-content-container").contents().detach().appendTo(t.scope.source), o.remove(), t.options.after_close.call(t), t.scope.is_open = !1 283 }, t.options.after_callback_delay), t.modaal_overlay("hide"), null != t.lastFocus && t.lastFocus.focus() 284 }, 285 modaal_overlay: function (t) { 286 var o = this; 287 "show" == t ? (o.scope.is_open = !0, o.options.background_scroll || o.dom.addClass("modaal-noscroll"), a("#" + o.scope.id + "_overlay").length < 1 && o.dom.append('<div class="modaal-overlay" id="' + o.scope.id + '_overlay"></div>'), a("#" + o.scope.id + "_overlay").css("background", o.options.background).stop().animate({ 288 opacity: o.options.overlay_opacity 289 }, o.options.animation_speed, function () { 290 o.modaal_open() 291 })) : "hide" == t && a("#" + o.scope.id + "_overlay").stop().animate({ 292 opacity: 0 293 }, o.options.animation_speed, function () { 294 a(this).remove(), o.dom.removeClass("modaal-noscroll") 295 }) 296 }, 297 is_touch: function () { 298 return "ontouchstart" in window || navigator.maxTouchPoints 299 } 300 }, 301 e = []; 302 a.fn.modaal = function (t) { 303 return this.each(function (i) { 304 var l = a(this).data("modaal"); 305 if (l) { 306 if ("string" == typeof t) switch (t) { 307 case "open": 308 l.create_modaal(l); 309 break; 310 case "close": 311 l.modaal_close() 312 } 313 } else { 314 var n = Object.create(o); 315 n.init(t, this), a.data(this, "modaal", n), e.push({ 316 element: a(this).attr("class"), 317 options: t 318 }) 319 } 320 }) 321 }, a.fn.modaal.options = { 322 type: "inline", 323 content_source: null, 324 animation: "fade", 325 animation_speed: 300, 326 after_callback_delay: 350, 327 is_locked: !1, 328 hide_close: !1, 329 background: "#000", 330 overlay_opacity: "0.8", 331 overlay_close: !0, 332 accessible_title: "Dialog Window", 333 start_open: !1, 334 fullscreen: !1, 335 custom_class: "", 336 background_scroll: !1, 337 should_open: !0, 338 close_text: "Close", 339 close_aria_label: "Close (Press escape to close)", 340 width: null, 341 height: null, 342 before_open: function () {}, 343 after_open: function () {}, 344 before_close: function () {}, 345 after_close: function () {}, 346 source: function (a, t) { 347 return t 348 }, 349 confirm_button_text: "Confirm", 350 confirm_cancel_button_text: "Cancel", 351 confirm_title: "Confirm Title", 352 confirm_content: "<p>This is the default confirm dialog content. Replace me through the options</p>", 353 confirm_callback: function () {}, 354 confirm_cancel_callback: function () {}, 355 gallery_active_class: "gallery_active_item", 356 outer_controls: !1, 357 before_image_change: function (a, t) {}, 358 after_image_change: function (a) {}, 359 loading_content: '<div class="modaal-loading-spinner"><div><div></div></div><div><div></div></div><div><div></div></div><div><div></div></div><div><div></div></div><div><div></div></div><div><div></div></div><div><div></div></div></div>', 360 loading_class: "is_loading", 361 ajax_error_class: "modaal-error", 362 ajax_success: function () {}, 363 instagram_id: null 364 }, a(function () { 365 var o = a(".modaal"); 366 o.length && o.each(function () { 367 t(a(this)) 368 }); 369 var i = new MutationObserver(function (o) { 370 o.forEach(function (o) { 371 if (o.addedNodes && o.addedNodes.length > 0) { 372 [].some.call(o.addedNodes, function (o) { 373 var i = a(o); 374 (i.is("a") || i.is("button")) && (i.hasClass("modaal") ? t(i) : e.forEach(function (t) { 375 if (t.element == i.attr("class")) return a(i).modaal(t.options), !1 376 })) 377 }) 378 } 379 }) 380 }), 381 l = { 382 subtree: !0, 383 attributes: !0, 384 childList: !0, 385 characterData: !0 386 }; 387 setTimeout(function () { 388 i.observe(document.body, l) 389 }, 500) 390 }) 391}(jQuery, 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.