Code Monkey home page Code Monkey logo

mickey.js's Introduction

mickey.js

mickey.js is a Javascript library for building webapps used with a remote control or keyboard layout, and without a mouse or pointer device.

Web UIs generally rely on DOM and click events. When building webapps running on embedded devices, accessible through remote control, you can only treat keypress events, which make it very difficult to build interoperable and stateless components.

mickey.js offers a DOM abstraction, to build more generic and simple applications that can be used with a remote control or a mouse. The only thing you need to do is to declaratively define in the DOM navigation areas.

Examples

<body>
    <menu data-nav-area="ul > li">
        <ul>
            <li>item 1</li>
            <li>item 2</li>
            <li>item 3</li>
            <li>item 4</li>
        </ul>
    </menu>

    <section data-nav-area=".box,.limit">
        <div class="limit" data-nav-limit="left">Previous Page</div>
        <div class="box">Box1</div>
        <div class="box">Box2</div>
        <div class="box">Box3</div>
        <div class="box">Box4</div>
        <div class="limit" data-nav-limit="right">Next Page</div>
    </section>
</body>

<script>
new Mickey(document.body).init();
</script>

See the example directory for examples using Backbone.

Installation

The only dependy of mickey.js is lodash or underscore.js.

You can simply download the dist/mickey.js file, or use bower if you prefer.

bower install --save mickey.js
<script src="bower_components/mickey.js/dist/mickey.js"></script>

Build

make clean
make

mickey.js's People

Contributors

jinroh avatar ageherjoly avatar sbekaert avatar pioug avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.