Files
Last update 2 months 4 days
by
Arnaud-Apu-Fanovard
domUtils.js.téléchargementfunction runWhenReady(e){document.readyState!=="loading"?e():document.addEventListener?document.addEventListener("DOMContentLoaded",e):e()}function hideElement(e){var t=getHtmlElementForSelector(e);t&&(t.style.display="none")}function showElement(e,t){t===void 0&&(t="block");var n=getHtmlElementForSelector(e);n&&(n.style.display=t)}function getHtmlElementForSelector(e){return document.querySelector(e)}function showLoader(e){e===void 0&&(e="#divLoadProgress");var n,t=document.querySelector(e);if(!t)return;t.setAttribute("loading","true"),n=t,n.style.display="block",n.focus()}function hideLoader(e){e===void 0&&(e="#divLoadProgress");var n,t=document.querySelector(e);if(!t)return;t.removeAttribute("loading"),n=t,n.style.display="none"}function addChangeToControls(e,t){var s,o,n=document.querySelectorAll(e);if(!n||n.length===0)return;for(s=0;s<n.length;s++)o=n[s],o.addEventListener("change",t)}function addClickToControls(e,t){var s,o,n=document.querySelectorAll(e);if(!n||n.length===0)return;for(s=0;s<n.length;s++)o=n[s],o.addEventListener("click",t)}function disableElements(e){var t=document.querySelectorAll(e);t.forEach(function(e){e.setAttribute("disabled","disabled"),e.classList.add("disabled")})}function enableElements(e){var t=document.querySelectorAll(e);t.forEach(function(e){e.removeAttribute("disabled"),e.classList.remove("disabled")})}