Skip to content

Instantly share code, notes, and snippets.

@makevoid
Last active December 17, 2015 04:28
Show Gist options
  • Select an option

  • Save makevoid/5550479 to your computer and use it in GitHub Desktop.

Select an option

Save makevoid/5550479 to your computer and use it in GitHub Desktop.
Mobile App Hello World
<meta name="viewport" content="width=device-width">
<script>
var main = function(){
log("hello world")
}
var log = function(string){
var body = document.getElementsByTagName("body")[0]
body.innerHTML = body.innerHTML+string+"<br>"
}
document.addEventListener("DOMContentLoaded", main, false)
</script>
<h1>App</h1>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment