Hacker News new | ask | show | jobs
by sebastiennight 413 days ago
Last week we had an entire game of DOOM in a QR code... I think someone can get us "Do nothing" in less than 300 lines of code.
1 comments

I'm sure someone can get it smaller than this (save as .html)

  <input id="i">
  <button onclick="l.textContent='Now do '+i.value">Do This</button>
  <button onclick="l.textContent='Do nothing'">Do Nothing</button>
  <label id="l"></label>

    data:text/html;,<input id=i><button onclick="l.textContent='Now do '+i.value">Do</button><button onclick="l.textContent='Do nothing'">Nope</button><label id=l>
Will work in your browser if you copy/paste it. Or as a QR code: https://d1yei2z3i6k35z.cloudfront.net/2914/6815454b25323_qr-...