Skip to content

Instantly share code, notes, and snippets.

@mariemosley
mariemosley / codepen_button.html
Last active August 15, 2017 14:57 — forked from junyper/codepen_button.html
codepen button
<!DOCTYPE html>
<html>
<head>
<script src="https://code.jquery.com/jquery-3.1.0.js"></script>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
</head>
<body>
<form
@mariemosley
mariemosley / pinterest.js
Last active September 28, 2022 15:17 — forked from 65/pinterest.js
pinterest buttons on every image in a Blogger/Blogspot post using jquery
<script type="text/javascript">
$(document).ready(function() {
$('.entry-content img').each(function(){
$permalink = $(this).parents('.post-outer').find('.timestamp-link').attr('href') || $(location).attr('href');
$title = $(this).parents('.post-outer').find('.entry-title').text();
$(this).addClass('pinme').after('<a href="http://pinterest.com/pin/create/button/?url=' + $permalink + '&media=' + $(this).attr('src') + '&description=' + $title + '" class="pin-it-button" count-layout="horizontal"></a>');
});
});
@mariemosley
mariemosley / Pinterest Gadget for Blogger
Last active August 22, 2018 20:32 — forked from richardmackney/Instagram RSS Image Feed
Display Pinterest images in a "gadget" for Blogspot/Blogger blogs
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js" type="text/javascript"></script>
<script type="text/javascript">
/**
* Plugin: jquery.zRSSFeed
*
* Version: 1.0.1
* (c) Copyright 2010, Zazar Ltd
*
* Description: jQuery plugin for display of RSS feeds via Google Feed API
* (Based on original plugin jGFeed by jQuery HowTo)