Skip to content

Instantly share code, notes, and snippets.

View gusttanic11's full-sized avatar

gusttanic11

  • Joined Apr 25, 2026
View GitHub Profile
const doc = const doc = {
id: (id) => document.getElementById(id),
evl: (el, ev, cb) => el.addEventListener(ev, cb),
iT: (el, txt) => el.innerText = txt,
iH: (el, html) => el.innerHTML = html,
q: (sel) => document.querySelector(sel),
s: (el, prop, val) => el.style[prop] = val,
c: (tag) => document.createElement(tag),