UNPKG

grapred

Version:

A libary for UIs

27 lines (22 loc) 745 B
console.log("%cGrapRed", "background-image: linear-gradient(to left, violet, indigo, blue, green, yellow, orange, red); -webkit-background-clip: text; color: transparent;"); document.title = "grapred App"; class GrapRed { constructor() {} return(HTML) { var element = document.createElement("div"); element.innerHTML = HTML; if (HTML.includes("@m:click")) { HTML.replace("@m:click", "onclick") } document.body.appendChild(element); } stylize(CSS) { const style = document.createElement('style'); style.textContent = CSS; document.head.appendChild(style); } disable(button) { button.disabled = true; } } export default GrapRed;