dxpr_theme-5.0.1/js/minified/dxpr-theme-full-screen-search.min.js
js/minified/dxpr-theme-full-screen-search.min.js
"use strict";!function(e,t){e.behaviors.fullScreenSearch={attach:function(e,c){var n=document.querySelector(".full-screen-search-button"),s=document.querySelector(".full-screen-search-form"),r=s.querySelector(".search-query");function o(){s.classList.toggle("invisible"),document.body.classList.toggle("body--full-screen-search"),setTimeout((function(){r.value=""}),350)}function i(e){e.preventDefault(),s.classList.toggle("invisible"),document.body.classList.toggle("body--full-screen-search"),r.focus()}function a(e){e.target.classList.contains("search-query")||o()}n&&t("search-button",n).length&&(n.addEventListener("touchstart",i),n.addEventListener("click",i)),s&&t("search-form",s).length&&(s.addEventListener("touchstart",a),s.addEventListener("click",a)),document.addEventListener("keydown",(function(e){"Escape"!==e.key||s.classList.contains("invisible")||o()}))}}}(Drupal,once);