Skip to content

Commit

Permalink
#10 remixyzglove
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanve authored Oct 9, 2024
1 parent e2521bf commit 3ad49a0
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 9 deletions.
37 changes: 30 additions & 7 deletions deejay.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
a=f?t:k,g=(m.querySelector||k).call(m,"meta[name=varam][content]");g=g&&g.content;var l="string"==typeof g;a.flow=f?w:k;a.fresh=r;a.help=function(){console.dir(a);return a.state};a.reset=f?x:k;a.state="";f&&a(l?l&&g:location.search);a.meta=l?a.state:!1;a.via=l?"meta":"flow";n.varam=a;"undefined"!=typeof module&&module.exports&&(module.exports=a)}(window,document);

// ¡! fragile
!function(willow, duende, search) {
!function(willow, dolphin, lion) {
function zef(f) { f(0) }
function reset(elephant, name, value) {
var ph = elephant.style
Expand All @@ -13,17 +13,40 @@ a=f?t:k,g=(m.querySelector||k).call(m,"meta[name=varam][content]");g=g&&g.conten

var animal = willow.requestAnimationFrame || zef
var urchin = willow.URLSearchParams
var morf = duende.querySelector("form")
var search = lion.search
var surprise = search === "?!"
var morf = dolphin.querySelector("form")
var bttm = morf.querySelector("button")
var thc = duende.querySelector("meta[name=theme-color]")
var thc = dolphin.querySelector("meta[name=theme-color]")
var all = [
"?tape-play=%23d819e6&tape-loud=%2361e5e3&tape-luvu=%2364e87e&tape-bluv=%235918f2&tape-blaq=%23eee833&tape-watt=%23e0e0e0",
"?tape-play=%23fbbfff&tape-loud=%23eee833&tape-luvu=%2344f477&tape-bluv=%2311dff1&tape-blaq=%230091ff&tape-watt=%232f0b4c",
"?tape-play=%23da1fff&tape-loud=%233ce2b0&tape-luvu=%232adf5d&tape-bluv=%2311dff1&tape-blaq=%230b57d0&tape-watt=%23e0e0e0",
"?tape-play=%23c612d3&tape-loud=%23ef34d6&tape-luvu=%2344f477&tape-bluv=%2311dff1&tape-blaq=%23ffe74d&tape-watt=%23322f2f",
"?tape-play=%23fbbfff&tape-loud=%23eee833&tape-luvu=%2344f477&tape-bluv=%2311dff1&tape-blaq=%23523df0&tape-watt=%23e0e0e0",
"?tape-play=%23e4ec74&tape-loud=%23ef34c6&tape-luvu=%236143f4&tape-bluv=%2304b8c8&tape-blaq=%23fbbfff&tape-watt=%23e0e0e0",
"?tape-play=%23e4ec74&tape-loud=%234dffd2&tape-luvu=%23e208d0&tape-bluv=%2304b8c8&tape-blaq=%23560bb1&tape-watt=%23e0e0e0",
"?tape-play=%23ec6051&tape-loud=%23eee833&tape-luvu=%2311d80e&tape-bluv=%2318eef2&tape-blaq=%236c19a4&tape-watt=%23bbaaee",
"?tape-play=%2351ec63&tape-loud=%23eee833&tape-luvu=%2300e1ff&tape-bluv=%23f218c2&tape-blaq=%2339083f&tape-watt=%23bbaaee",
"?tape-play=%23fbbfff&tape-loud=%23eee833&tape-luvu=%2344f477&tape-bluv=%2311dff1&tape-blaq=%233719a4&tape-watt=%23bbaaee"
]

if (urchin) new urchin(search)
if (surprise) random()
else if (urchin && search) new urchin(search)
.forEach(function(hex, ki) {
var input = morf[ki]
var value = input && input.value
if (!input) return
var value = input.value
if (value !== hex) input.value = hex
if ("tape-blaq" === ki) thc.setAttribute("content", hex)
})

function random() {
var nookie = Math.floor(Math.random() * all.length)
var sh = all[nookie]
if (sh === search) lion.href = "?"
if (sh) lion.href = sh
}

morf.addEventListener("change", function(e) {
var input = e.target
Expand All @@ -36,8 +59,8 @@ a=f?t:k,g=(m.querySelector||k).call(m,"meta[name=varam][content]");g=g&&g.conten
})
})

duende.title = "illbang ¡! remixyz"
}(window, document, location.search);
dolphin.title = "illbang ¡! remixyz"
}(window, document, location);



8 changes: 7 additions & 1 deletion freestyle.css
Original file line number Diff line number Diff line change
Expand Up @@ -156,10 +156,16 @@ a kbd {
padding-inline: 1ch;
}

[href="?"] {
[href="?!"] {
cursor: grab;
}

[class*=tape] {
--tape-fx: color, background-color, fill, filter;
transition: 500ms;
transition-property: var(--tape-fx);
}

a,
button {
border: thick dashed;
Expand Down
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ <h1>illbang color<wbr>fill remixer</h1>
<circle class="tape-luvu" cx="580" cy="250" r="60" />
</svg>
</a>
<a href="?" class="tape-blaq" aria-label="reset"><kbd>♻️</kbd></a>
<a href="?!" class="tape-blaq" aria-label="shuffle"><kbd>🧤</kbd></a>
</footer>
</form>
</figcaption>
Expand Down

0 comments on commit 3ad49a0

Please sign in to comment.