GithubHelp home page GithubHelp logo

masongram's Introduction

MasonGram

jQuery plugin to add Instagram feed to a page.

Demo

https://mladenplavsic.github.io/masongram/

Features

  • Simple
  • Responsive
  • Infinite loading while scrolling down
  • Link to a location on map (configurable either via caption text @12.34,56.78 or via image location tag)
  • Configurable image caption with "caption", "location", "likes"

Usage

$('#masongram').masongram();

Options

access_token
Type Configuration for Description Default
string Instagram API Authorization (required)
endpoint
Type Configuration for Description Default
string Instagram API Endpoint of Instagram API media source users/self

count

Type Configuration for Description Default
number Instagram API Number of results for one API request 10
size
Type Configuration for Description Default
string Instagram API Instagram image resolution: low_resolution, standard_resolution low_resolution
offset
Type Configuration for Description Default
number MasonGram Distance (percent) from bottom of page where new API request is sent 10
caption
Type Configuration for Description Default
string MasonGram HTML content of caption, with variables: {caption}, {location}, {likes}, {image} {caption}

Events

Event Description
masongram:error Triggered when error detected
masongram:api:end Triggered when reached end of API resources

Dependencies

Integrations

FancyBox (lightbox)

Within the demo page there is FancyBox jQuery plugin integration. This is an optional dependency, added for demo purposes only.

masongram's People

Contributors

mladenplavsic avatar you-app avatar

Watchers

James Cloos 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.