rafaelcamargo/ng-surprise

View on GitHub
demo/about-template.html

Summary

Maintainability
Test Coverage
<h1>
    ng-surprise
</h1>

<p>
    Try ng-surprise typing the following keys:<br/>
    <ul class="keys">
        <li>↑</li>
        <li>↑</li>
        <li>↓</li>
        <li>↓</li>
        <li>←</li>
        <li>→</li>
        <li>←</li>
        <li>→</li>
        <li>b</li>
        <li>a</li>
    </ul>
</p>

<div
    data-surprise="setMessage"
    data-surprise-trigger="38,38,40,40,37,39,37,39,66,65">
    <p ng-class="{'surprise': message}"
        class="vertical-offset"
        ng-bind="message"></p>
</div>

<p class="vertical-offset">
    <a href="http://github.com/rafaelcamargo/ng-surprise">Fork me</a> on Github. 
    Run <a href="spec/runner.html">specs</a>.
    <br/>
    © <span ng-bind="year"></span> Rafael Camargo
    (<a href="http://twitter.com/rcamargo" target="_blank">@rcamargo</a>)
    <br/><br/>
</p>