CoreFiles by mySites.guru
accordion.min.js2 lines, 849 bytes, from wordpress-6.0.zip
Raw History Compare with 5.9.21
md5
9d47e5a993950468642eb8b6a87554e6
sha1
3eff0f63fbfde3f43660d6b3f4221410f8f23fc5
sha256
04ee35a326e4ffa7259f4ac470146bad7a341c6ca03cbc70aa4c4f48ba7a8aef
/*! This file is auto-generated */
!function(s){s(function(){s(".accordion-container").on("click keydown",".accordion-section-title",function(e){var n,o,a,i,t;"keydown"===e.type&&13!==e.which||(e.preventDefault(),e=(e=s(this)).closest(".accordion-section"),n=e.find("[aria-expanded]").first(),o=e.closest(".accordion-container"),a=o.find(".open"),i=a.find("[aria-expanded]").first(),t=e.find(".accordion-section-content"),e.hasClass("cannot-expand")||(o.addClass("opening"),e.hasClass("open")?(e.toggleClass("open"),t.toggle(!0).slideToggle(150)):(i.attr("aria-expanded","false"),a.removeClass("open"),a.find(".accordion-section-content").show().slideUp(150),t.toggle(!1).slideToggle(150),e.toggleClass("open")),setTimeout(function(){o.removeClass("opening")},150),n&&n.attr("aria-expanded",String("false"===n.attr("aria-expanded")))))})})}(jQuery);

The same content is in 58 releases, WordPress 6.0-beta1 to 6.1.17. See them all, or every version of this file.