Giter Club home page Giter Club logo

clippy-jquery's Introduction

Welcome

clippy-jquery is a jQuery plugin designed to make the clippy SWF simple and easy to use. Click here for a demo.

Requirements

  • jQuery (tested on 1.6.2)
  • Flash (just the web browser plugin, no Flash development required).

Getting started

  1. In your <head>, you need to include jQuery and the plugin:

     <!-- use local jQuery if you prefer -->
     <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js" type="text/javascript"></script>
     <script src="jquery.clippy.min.js" type="text/javascript"></script>
    
  2. Insert the clipboard text in the HTML, using a selector to keep track of which items you're using Clippy on:

     <b>URL:</b> http://www.domain.com/this/is/a/really/long/path/to/a/page.html 
       (<span class="clippy">http://www.domain.com/this/is/a/really/long/path/to/a/page.html</span>)
    
  3. In $(document).ready(), invoke the plugin:

     $(document).ready(function()
     {
         $('.clippy').clippy();
     });
    
  4. Done! You can see clippy-jquery in action at the demo page here.

Caveats

  • As with most jQuery plugins, if the element is dynamically created you need to make sure jQuery knows about it before you call .clippy(), i.e. invoke .clippy() after you append/prepend/insert the newly-created element into the DOM.

Acknowledgements

Thanks to the following open source projects, without which this project would be impossible:

License

clippy, jQuery and clippy-jquery are released under MIT licenses. clippy's license information is here, jQuery's is here, and clippy-jquery's is below:

The MIT License (MIT)
Copyright (C) 2011-2012 by Jimmy Sawczuk

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.

clippy-jquery's People

Contributors

ghepting avatar gil avatar jimmysawczuk avatar supercleanse 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.