GithubHelp home page GithubHelp logo

gerhobbelt / thumbs.js Goto Github PK

View Code? Open in Web Editor NEW

This project forked from mwbrooks/thumbs.js

0.0 1.0 0.0 1.43 MB

Add touch support to your browser with thumbs.js - a small, transparent, and syntax-less library.

Home Page: http://mwbrooks.github.com/thumbs.js/

License: MIT License

JavaScript 100.00%

thumbs.js's Introduction

thumbs.js

Add touch support to your browser.

About

Small, transparent, and syntax-less library that adds touch support to your browser.

  • Handy for desktop debugging
  • Add touch to touch-less devices
  • Does nothing on touch-enabled devices
  • PhoneGap and mobile web friendly

More detail and a demo are on the thumbs.js homepage.

Browser Support

  • FireFox Desktop
  • Opera Desktop
  • Webkit Desktop
  • Webkit Mobile

Usage

<!-- include before all javascript -->
<script type="text/javascript" src="thumbs.js"></script>

// later on...

element.addEventListener('touchstart', callback, false);
element.addEventListener('touchend',   callback, false);
element.addEventListener('touchmove',  callback, false);

// jQuery or zepto.js
$(element).bind('touchstart', callback);

// xui
$(element).on('touchstart', callback);

Building from source

Run:

make

Generates:

build/thumbs.x.x.js
build/thumbs.x.x.min.js

Running the tests

Open in a browser:

test/index.html

Running a simple example

Open in a browser:

example/index.html

Want to contribute?

Report or fix an issue

We use GitHub Issues

By the way, you rock! Thanks for helping us improve thumbs.js.

Pull Requests

Pull requests are welcome!

We appreciate the use of topic branches.

git checkout -b issue_23

# code

git commit -m "Issue 23: Fix a bad bug."

git push origin issue_23

# send pull request from branch issue_23 to mwbrooks:master

thumbs.js's People

Contributors

gerhobbelt avatar mwbrooks avatar tf avatar

Watchers

 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.