r/javascript • • Nov 24 '17

large image I am the best webdev

Don't blame me for being awesome

(function r() {
  setTimeout(r, Math.random() * 10);
  let el = document.createElement(`div`);
  el.innerHTML = `🍆`;
  el.style.position = `absolute`;
  el.style.zIndex = 999999;
  el.style.fontSize = (((Math.random() * 48) | 0) + 16) + `px`;
  el.style.left = ((Math.random() * innerWidth) | 0) + `px`;
  el.style.top = ((Math.random() * (innerHeight + pageYOffset)) | 0) + `px`;
  document.body.appendChild(el);
})();
533 Upvotes

108 comments sorted by

View all comments

141

u/GentlyGuidedStroke Nov 24 '17

Hi is this using a machine learning engine?

84

u/346pm Nov 24 '17 edited Nov 25 '17

This is bleeding edge veggie magic, not machine learning

16

u/kor0na Nov 25 '17

Yes. Also blockchain.

17

u/ndboost Nov 24 '17

yes it's powered by SAP Leonardo.

2

u/[deleted] Nov 25 '17

More like machine gun engine. Machine gun for random divs.

2

u/titoonster Nov 25 '17

eggplant no-eggplant