markon-core 0.15.13

markon core - Mark it on.
1
"use strict";(()=>{var o=window.__MARKON_I18N__?.t||(e=>e);document.querySelectorAll("[data-i18n]").forEach(e=>{e.textContent=o(e.getAttribute("data-i18n")||"")});document.querySelectorAll("[data-i18n-placeholder]").forEach(e=>{e.setAttribute("placeholder",o(e.getAttribute("data-i18n-placeholder")||""))});document.querySelectorAll("[data-i18n-title]").forEach(e=>{e.setAttribute("title",o(e.getAttribute("data-i18n-title")||""))});document.querySelectorAll("[data-i18n-aria]").forEach(e=>{e.setAttribute("aria-label",o(e.getAttribute("data-i18n-aria")||""))});var l=document.getElementById("refs-branch-search");if(l){let e=Array.prototype.slice.call(document.querySelectorAll("[data-branch-row]")),a=Array.prototype.slice.call(document.querySelectorAll("[data-branch-group]")),t=()=>{let n=l.value.trim().toLowerCase();e.forEach(r=>{let c=(r.getAttribute("data-branch-name")||"").toLowerCase();r.style.display=!n||c.includes(n)?"":"none"}),a.forEach(r=>{let s=Array.prototype.slice.call(r.querySelectorAll("[data-branch-row]")).some(d=>d.style.display!=="none");r.style.display=s?"":"none"})};l.addEventListener("input",t)}function i(e){e.classList.add("is-copied"),setTimeout(()=>e.classList.remove("is-copied"),1200)}document.querySelectorAll("[data-copy]").forEach(e=>{e.addEventListener("click",()=>{let a=e.getAttribute("data-copy")||"";if(a)if(navigator.clipboard&&navigator.clipboard.writeText)navigator.clipboard.writeText(a).then(()=>i(e),()=>{});else{let t=document.createElement("textarea");t.value=a,t.style.position="fixed",t.style.opacity="0",document.body.appendChild(t),t.select();try{document.execCommand("copy"),i(e)}catch{}document.body.removeChild(t)}})});})();