1'use strict'; 2 3jQuery(function () { 4 var $accordionTrigger = jQuery(".js-accordion-trigger"); 5 $accordionTrigger.on("click", function () { 6 jQuery(this) 7 .toggleClass("is-opened") 8 .parent() 9 .next() 10 .stop(true, false) 11 .slideToggle(300, "easeInOutCubic"); 12 }); 13 $accordionTrigger.on("keydown", function (e) { 14 if (e.keyCode === 13) { 15 jQuery(this).trigger("click"); 16 } 17 }); 18}); 19 20jQuery(function () { 21 var $carouselButton = jQuery(".carousel--button"); 22 $carouselButton.on("click", function () { 23 setTimeout(function () { 24 $carouselButton.blur(); 25 }, 3000); 26 }); 27}); 28 29jQuery(function () { 30 var $modalContentLike = jQuery("#modal_content_like"), 31 $likeModalOpen = jQuery(".js-like-modal-open"), 32 $modalOverlay = jQuery("#modal-overlay"), 33 $body = jQuery("body"), 34 $htmlBody = jQuery("html, body"), 35 $modalCloseRound = jQuery(".js-modal--close-round"); 36 37 $likeModalOpen.on({ 38 click: function () { 39 jQuery(function () { 40 var scrollY = window.pageYOffset; 41 var topStyle = "top:-" + scrollY + "px;"; 42 $body.addClass("is-fixed").attr("style", topStyle); 43 $modalOverlay.show(); 44 $modalContentLike.addClass("is-visible").prop("tabindex", "1"); 45 $modalCloseRound.addClass("is-active"); 46 $htmlBody.css("overflow", "hidden"); 47 var $closeTargets = jQuery("#modal-overlay, .js-modal--close"); 48 $closeTargets.on("click", function () { 49 $body.removeClass("is-fixed"); 50 $closeTargets.off("click"); 51 $modalOverlay.hide(); 52 $modalContentLike.blur().removeClass("is-visible").prop("tabindex", "-1"); 53 $modalCloseRound.removeClass("is-active"); 54 $likeModalOpen.focus(); 55 $htmlBody.removeAttr("style"); 56 scrollTo(0, scrollY); 57 }); 58 }); 59 }, 60 keydown: function (e) { 61 if (e.keyCode === 13) { 62 jQuery(this).trigger("click"); 63 } 64 } 65 }); 66});
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.