Ipad button click test

by amindunited

HTML

<link rel="stylesheet" href="http://cdnjs.cloudflare.com/ajax/libs/normalize/2.1.0/normalize.css">
<script src="http://builds.handlebarsjs.com.s3.amazonaws.com/handlebars-v1.1.2.js"></script>
<script src="http://builds.emberjs.com/tags/v1.2.0/ember.min.js"></script>

<script type="text/x-handlebars" data-template-name="application">
    <h1>Click test</h1>
    <button {{action 'sneeze'}}>
        Click Here You Jerk
    </button>
</script>

CSS

button {
    border-radius: 5px;
    background-color: green;
    padding: 10px;
    width: 50%;
    text-align: center;
    margin-left: 25%;
    margin-right: 25%;
    font-weight: bold;
    font-size: 1.5em;
    color: white;
}

JavaScript

App = Em.Application.create({
    actions: {
        sneeze: function(){
            alert("HABA.....LOOOOOYEY");
        }
    }
});
App.ApplicationController = Em.Controller.extend({
    actions: {
        sneeze: function(){
            alert("HABA.....LOOOOOYEY");
        }
    }
});