Socket
Book a DemoInstallSign in
Socket

mickey.js

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mickey.js

Your ally for web applications over Remote Controls

latest
Source
npmnpm
Version
1.0.0
Version published
Maintainers
1
Created
Source

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 src/mickey.js file, or use bower if you prefer.

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

Build

make clean
make

Keywords

remote control

FAQs

Package last updated on 11 Sep 2014

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.