<!DOCTYPE html> <html> <head> <title>The Hash One Collection was the first generative collection ever minted on Stacks, secured by Bitcoin on the 9th of September 2021. You can view every possible version in this ordinal if you are very patient! If you see one you like, click it to break out of the loop to only display the image you like. Visit https://thisisnumberone.com/ to discover more relics from the genesis moment of Bitcoin Smart Contracts. More about the Hash One collection: https://www.reddit.com/r/NFTsMarketplace/comments/11cp7xk/hash_one_nfts_the_first_native_stacks_original/</title> <style> :root{ --c1:#16b302; --c2:#fee000; --c3:#ec3101; --c4:#e60033; --c5:#00a7ba; --c6:#00a287; --c7:#60c002; --c8:#d7de00; --c9:#f06d00; --c10:#00a06a; --c11:#fcea00; --c12:#150093; --c13:#0046ab; --c14:#028bce; --c15:#04a8c8; --c16:#00a293; --c17:#49bb03; --c18:#0366ba; --c19:#04a5b1; --c20:#00a176; --c21:#00aa22; --c22:transparent; } #a{ position:relative; width:100vh; height:100vh; display:flex; flex-wrap:wrap } .b{ width:50vh; height:50vh } .c{ position:absolute; top:0; left:0; z-index:1; display:flex; justify-content:center; align-items:center; width:100%; height:100% } .d{ display:grid; grid-template-columns:repeat(8,12.5vh); grid-template-rows:repeat(8,12.5vh); gap:0px } .e,.f{ width:12.5vh; height:12.5vh } .g{ top:-37.5vh; bottom:auto } .h{ top:auto; bottom:0 } .f{ background-color:transparent } .class1 {background-color: var(--c1);} .class2 {background-color: var(--c2);} .class3 {background-color: var(--c3);} .class4 {background-color: var(--c4);} .class5 {background-color: var(--c5);} .class6 {background-color: var(--c6);} .class7 {background-color: var(--c7);} .class8 {background-color: var(--c8);} .class9 {background-color: var(--c9);} .class10 {background-color: var(--c10);} .class11 {background-color: var(--c11);} .class12 {background-color: var(--c12);} .class13 {background-color: var(--c13);} .class14 {background-color: var(--c14);} .class15 {background-color: var(--c15);} .class16 {background-color: var(--c16);} .class17 {background-color: var(--c17);} .class18 {background-color: var(--c18);} .class19 {background-color: var(--c19);} .class20 {background-color: var(--c20);} .class21 {background-color: var(--c21);} .class22 {background-color: var(--c22);} .c.g { transform: translateY(37.5vh); /* Shifts "g" position down by 3 rows */ } .c.h { transform: translateY(37.5vh); /* Shifts "h" position up by 3 rows */ } </style> </head> <body> <div id="a" onclick="stopCh()"> <!-- changed onclick handler to stopCh() --> <div class="b" id="b1"></div> <div class="b" id="b2"></div> <div class="b" id="b3"></div> <div class="b" id="b4"></div> <div class="c" id="c"> <div class="d" id="d"></div> </div> </div> <script> const clr = ['#e60033', '#ec3101', '#F06d00', '#49bb03', '#0046ab', '#fcea00', '#01a9d9']; let intervalId; let canExecute = true; function chClr() { const sq = ['b1', 'b2', 'b3', 'b4']; sq.forEach(s => { document.getElementById(s).style.backgroundColor = clr[Math.floor(Math.random() * clr.length)]; }); } function chPos() { const o = document.getElementById("c"); if (Math.random() < 0.5) { o.classList.add("g"); o.classList.remove("h"); } else { o.classList.add("h"); o.classList.remove("g"); } } function ch() { chClr(); chPos(); } const grid = [ [22,1,22,2,22,16,17,22], [3,4,5,6,7,22,18,22], [22,8,22,9,22,22,19,22], [10,11,12,13,14,22,20,22], [22,15,22,16,22,21,1,2] ]; let loopActive = true; function stopCh() { loopActive = false; clearInterval(intervalId); // clear interval } function ch() { if (loopActive) { chClr(); chPos(); } } window.onload = function() { const d = document.getElementById("d"); for(let i=0; i<5; i++) { for(let j=0; j<8; j++) { let div = document.createElement("div"); div.className = "e class" + grid[i][j]; d.appendChild(div); } } }; ch(); intervalId = setInterval(() => { if (loopActive) { ch(); } }, 6000); </script> </body> </html>
Inscription number 6,013,243
Genesis block 789,444
File type text
File size 4.1 KB
Creation date May 12,2023 9:41 pm