JSFiddle

  • Accessible Tile Sorting

    Uses mouse, touch and keyboard controls to allow drag and drop of tiles into target areas.

        //bind all touch drag/drop events to mouse drag/drop events
    (function (b) {
        b.support.touch = "ontouchend" in document;
        if ...
  • Copy to Clipboard

    CSS/jQuery method for selecting and copying text from a field.

    $(document).ready(function () {
        var modifierDown = false;
        var modifierKey = [17];
        var modifierName = "CTRL";
        cKey = 67;
        var osName = window.navigator.appVersion;
        if ...
  • Simple Switch #11 is the latest revision

    A pure CSS toggle switch.

    <input type="checkbox" id="useMiles" value="yes"><label for="useMiles"><span class="on">mi</span><span class="off">km</span></label>
    </input>