Giter VIP home page Giter VIP logo

flickrset's Introduction

Flickrset

Simple Flickr photoset implementation using jQuery (1, 2 or 3).

This uses the Flickr API endpoint to pull in a public album of photos to your page using Javascript.

Installation

<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
<script type="text/javascript" src="path/to/flickrset.min.js"></script>

Basic Usage

<div id="FlickrSet"></div>
<script type="text/javascript">
$(document).ready(function(){
	var photos = new FlickrSet({
		api_key: 'YOUR_API_KEY', 
		photo_set: 'YOUR_PHOTOSET_ID', 
		user_id: 'YOUR_USER_ID', 
		selected_size: 'Large Square',
		wrapper_id: '#FlickrSet',
	});
	photos.run();
});
</script>

Requirements

jQuery is required. Version 1, 2, or 3 will work just fine.

https://developers.google.com/speed/libraries#jquery

Options

Key Default Value Valid types Description
api_key null String Required. You can get this from your Flickr account here. https://www.flickr.com/services/apps/create/
photo_set null String Required. This tells Flickrset which PUBLIC album to get from Flickr
user_id null String Required. Your Flickr ID. You can see this at the top of the right hand column here. https://www.flickr.com/services/api/explore/flickr.photosets.getPhotos
selected_size Large Square String Size of the image to get. (Square, Large Square, Thumbnail, Small, Small 320, Small 400, Medium, Medium 640, Medium 800, Large, Large 1600, Large 2048, X-Large 3k, X-Large 4k)
wrapper_id #results String, DOM Element The ID of the element to put the photos in
per_page 12 String Amount of images to get from Album.
photo_wrapper a String Tag to put around the image. Default is anchor
photo_target _blank String If the photo is linked
use_photo_set_title false Boolean Add the title of the Album as a tag above the wrapper_id
photo_set_title_tag h2 String Tag to use for the Title if it is used.
array_only false Boolean Add images to an array and don't output to the HTML this can be accessed as FlickrPhotosetArray from the console.
debug false Boolean Add debug messages to console to help you implement.

Flickr Endpoints:

https://www.flickr.com/services/api/explore/flickr.photosets.getPhotos https://www.flickr.com/services/api/explore/flickr.photosets.getSizes

flickrset's People

Contributors

flickerbox-tom avatar

Stargazers

Keith Murphy avatar

Watchers

 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.