dotsara / hoop

Working on a touch UI (suggestion from @kennymeyers)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

hoop

Working on a touch UI (suggestion from @kennymeyers)

notes

I dug up this non-jQuery document.ready function, but then I realized I don't really need it on this little project. So instead, I'll save it! 🎓

function ready(fn) {
  if (document.readyState != 'loading'){
    fn();
  } else {
    document.addEventListener('DOMContentLoaded', fn);
  }
}

ready(function (){
  console.log("hello! we are ready!");
});

Source: http://youmightnotneedjquery.com/#ready

About

Working on a touch UI (suggestion from @kennymeyers)


Languages

Language:JavaScript 43.8%Language:HTML 31.6%Language:CSS 24.7%