GithubHelp home page GithubHelp logo

drop.js's Introduction

Drop

Drop is a javascript library that makes it easy to accept drag and drop images on your site. After the images are Dropped they will be available to be resized, previewed on the page, and/or added to a form for upload.

API

zone = new Drop;

options = {
  // Every time an image is dropped the callback will be called with the 
  // post-processed image data uri to be put right into an image tag and
  // rendered in the browser.
  preview: { callback: previewCallback }
}

// Starts listening for dropped images in #dropzone.
// If a file input is passed in Drop will watch that as well.
zone.watch("#dropzone", options)

// Files can be accessed at anytime. This returns an Array of File objects
// which can be attached to a form and uploaded.
zone.files

drop.js's People

Contributors

brookemckim avatar

Watchers

 avatar James Cloos avatar

drop.js's Issues

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.