Skip to content

Instantly share code, notes, and snippets.

@jarkkosyrjala
Last active December 21, 2015 22:28

Revisions

  1. jarkkosyrjala revised this gist Aug 29, 2013. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion html_game_template.html
    Original file line number Diff line number Diff line change
    @@ -18,7 +18,7 @@
    Disable the default callout when you touch and hold a touch target.
    and disable user from selecting content (dragging).
    */
    * {
    *:not(input,textarea) {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
  2. jarkkosyrjala created this gist Aug 29, 2013.
    39 changes: 39 additions & 0 deletions html_game_template.html
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,39 @@
    <!DOCTYPE html>
    <html lang="en">
    <head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0">
    <meta http-equiv="X-UA-Compatible" content="chrome=1, IE=edge">
    <title>Title</title>

    <style type="text/css">
    html, body {
    height: 100%;
    }
    body {
    margin: 0;
    padding: 0;
    }
    /*
    Disable the default callout when you touch and hold a touch target.
    and disable user from selecting content (dragging).
    */
    * {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    }
    </style>
    <script>
    document.body.addEventListener("touchmove", function(e) {
    e.preventDefault();
    },false);
    </script>
    </head>
    <body>

    </body>
    </html>