Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

images_fetcher

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

images_fetcher

  • 1.0.0
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

ImagesFetcher

It's a small ruby gem for showing popup with images from selected url

Installation

Add this line to your application's Gemfile:

gem 'jquery-rails'
gem 'jquery-ui-rails'
gem "bootstrap-sass", ">= 2.0.1"
gem 'haml'

gem 'images_fetcher', :git => 'git://github.com/spy-a/images_fetcher.git'

Add this to your assets/javascripts/application.js file

//= require jquery.ui.all
//= require bootstrap
//= require images_fetcher

Add this to your assets/stylesheets/application.js file

*= require jquery.ui.all
*= require images_fetcher

And then execute:

$ bundle

Usage

Use helper method init_images_fetcher(link, image_link_input, image_preview='') to initialize images_fetcher functionality

For example:

<input type=text id="book_link"> <-- input url with images here
<input type=text id="card_remote_image_url"> <- you get link to image to this field after close popup with images
<img id="remote_image_preview" /> <- optionally, display here selected image
<%= init_images_fetcher('#book_link', '#card_remote_image_url', '#remote_image_preview') %>

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Added some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request

FAQs

Package last updated on 06 Aug 2012

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc