META-INF.resources.syntaxhighlighter.scripts.highlightjs-badge.js Maven / Gradle / Ivy
"use strict";!function(e,t){"object"==typeof module&&"object"==typeof module.exports?module.exports=e.document?t(e,!0):function(e){if(!e.document)throw new Error("A window with a document is required");return t(e)}:t(e)}("undefined"!=typeof window?window:this,function(y,e){if("boolean"!=typeof t)var t=!1;function o(e){var t,g={templateSelector:"#CodeBadgeTemplate",contentSelector:"body",loadDelay:0,copyIconClass:"fa fa-copy",copyIconContent:"",checkIconClass:"fa fa-check text-success",checkIconContent:""};function o(){g.loadDelay?setTimeout(n,loadDelay):n()}function n(){if(!document.querySelector(g.templateSelector)){var e=document.createElement("div");e.innerHTML=function(){for(var e=["",'code.hljs"),a=0;acode").cloneNode(!0),n=o.textContent||o.innerText,c=document.createElement("textarea");c.value=n.trim(),document.body.appendChild(c),c.style.display="block",y.document.documentMode?c.setSelectionRange(0,c.value.length):c.select();document.execCommand("copy"),document.body.removeChild(c),function(e){var t=g.copyIconClass.split(" "),o=g.checkIconClass.split(" "),n=e.querySelector(".code-badge-copy-icon");n.innerText=g.checkIconContent;for(var c=0;c
"],t="",o=0;o
© 2015 - 2024 Weber Informatics LLC | Privacy Policy