Transaction 3cc37e33b41d70e9f851e1d0c9d27288e53a8687a557fc58ddd4692531cb05cb
1 Input
-
b9d04f47e2f8707ba991c1e83ae2a72ea091e080cad156230681414f9e9c7d30:14
OP_DATA_32(32) 3df5c4fb2a1ed0e1c06dace3c499bb6a92972b125dd768db74de50f481fef17fOP_CHECKSIG(172)OP_0(0)OP_IF(99)OP_DATA_3(3) ordOP_DATA_1(1)OP_DATA_13(13) image/svg+xmlOP_0(0)OP_PUSHDATA2(77) <svg viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"><script type="application/ecmascript"><![CDATA[ var singleClickTimeout; var isGray = false; var lastColorSet; var predefinedColorSets = [ ['#FF0000', '#00FF00'], ['#0000FF', '#FFFF00'], ['#FF00FF', '#00FFFF'], ['#dd68a4', '#85dad9'], ['#F7931A', '#4d4d4d'], ['#76C066', '#AD2BBB'] ]; function getRandomItem(array, exclude) { var item; do { item = aOP_PUSHDATA2(77) rray[Math.floor(Math.random() * array.length)]; } while (item === exclude); return item; } function changeToRandomColor() { var imageElement = document.getElementById("imageElement"); var colorSet = getRandomItem(predefinedColorSets, lastColorSet); lastColorSet = colorSet; var color1 = colorSet[0]; var color2 = colorSet[1]; var filterElement = document.getElementById("duotone"); filterElement.innerHTML = ` <feColorMatrixOP_PUSHDATA2(77) type="matrix" values="0.393 0.769 0.189 0 0 0.349 0.686 0.168 0 0 0.272 0.534 0.131 0 0 0 0 0 1 0"/> <feComponentTransfer color-interpolation-filters="sRGB"> <feFuncR type="table" tableValues="0 ${parseInt(color1.slice(1, 3), 16) / 255}"/> <feFuncG type="table" tableValues="0 ${parseInt(color1.slice(3, 5), 16) / 255}"/> <feFuncB type="table" tableValues="0 ${parseInt(color1.slice(5, 7), 16) / 255}"/> </feComponentTransfer> `; imageElement.seOP_PUSHDATA2(77) tAttribute("filter", "url(#duotone)"); } function toggleGrayScale() { var imageElement = document.getElementById("imageElement"); isGray = !isGray; if (isGray) { imageElement.setAttribute("filter", "url(#grayscale)"); } else { imageElement.setAttribute("filter", "none"); } } function handleSingleClick() { clearTimeout(singleClickTimeout); singleClickTimeout = setTimeout(changeToRandomColor, 200); } funOP_PUSHDATA2(77) ction handleDoubleClick() { clearTimeout(singleClickTimeout); toggleGrayScale(); } ]]></script><filter id="duotone"></filter><filter id="grayscale"><feColorMatrix type="saturate" values="0"/></filter><image id="imageElement" height="100%" width="100%" href=" /content/e65fbee50e5859bb00e4d3fc6851bd91288793d709695a91f96671fdedd71d98i0" onclick="handleSingleClick()" ondblclick="handleDoubleClick()"/></svg>OP_ENDIF(104)
1 Outputs
- 3cc37e33b41d70e9f851e1d0c9d27288e53a8687a557fc58ddd4692531cb05cb:0
value 546
address bc1pqfyydpd7wqxtmqvdmvh90kw5q4sz4ud6thyh3jpamwtp49uesqqq98q03z