jqtools-rails

This gem is a Rails engine and is configured to integrate with Rails asset pipeline.

This gem was extracted from the JQuery Tools project, v1.2.6

Install

Simply add to Gemfile and bundle:

gem 'jqtools-rails'

Add tools

You can choose to use either the minified js for all the tools:

//= require_tree .
//= require jquery.tools.min

Or the tools individually

//= require_tree .
//= require rangeinput/rangeinput.js
//= require dateinput/dateinput.js

Tools included

In addition to the original toolset, the following have been added:

Fullscreen

See jQuery-FullScreen

// The plugin sets the $.support.fullscreen flag:
if($.support.fullscreen){

    // Show your full screen button here

    $('#fullScreen').click(function(e){
        $('#content').fullScreen();
    });
}

Knobs

See KnobKnob

`javascript $('#elem').knobKnob({ snap : 10, // Snap to zero if less than this deg. value: 154, // Default rotation turn : function(ratio){ // Do what you want here. Ratio moves from 0 to 1 // relative to the knob rotation. 0 - off, 1 - max } });

Demo pretty-switches

Note: You also need to add knobs.css to your project, fx using your application.css manifest.

Contributing to jqtools-rails

Copyright © 2012 Kristian Mandrup. See LICENSE.txt for further details.