Code Monkey home page Code Monkey logo

pinterestplus's People

Contributors

skibblenybbles avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

pinterestplus's Issues

.

.

Syntax for specifying element containing Pinterest button

First off, thanks a bunch for this! I am hoping to use it to avoid parsing multiple buttons in one go (a page will contain at least 20 items, each with a Pinterest button).

However, while I have the script working - PinterestPlus.pinit(); works fine - I cannot seem to get it focus on one particular element, and it is parsing them all with the performance impact I am hoping to avoid. I have tried:

PinterestPlus.pinit('class');
PinterestPlus.pinit('id');
PinterestPlus.pinit('div.id');
PinterestPlus.pinit('div.classname);
PinterestPlus.pinit(document.getElementById('id'));

where of course 'id' and 'class' are valid for the divs concerned.

How should I be defining the element?

Thanks!

Andy

License?

Hi Mike,

First off I wanted to thank you for writing this library, it's exactly what I was looking for after a couple rather frustrating attempts in trying to use the code provided by Pinterest in ways that it's not suited for.

Secondly, as the title implies, I'm curious about what kind of licensing were you thinking about releasing this under? I'd like to make use of it on a project I'm working on, license permitting of course.

BR,
Joonas

Change to Pinterest HTTP asset location

Hey there,
Firstly thanks for providing such a helpful piece of code.

Today I noticed that Pinterest have moved some of their assets to a different location, so my buttons weren't rendering at all. I went through your javascript and replaced this:
url:window.location.protocol==="https:"?"https://assets.pinterest.com/pinit.html":"http://pinit-cdn.pinterest.com/pinit.html"

With this:
url:window.location.protocol==="https:"?"https://assets.pinterest.com/pinit.html":"http://assets.pinterest.com/pinit.html"

I'm not sure if this is the best fix, but it works for now. Would like to know what you think

Cheers

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.