jekyll-theme-recipe 0.1.3 → 0.1.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f72ff06ca46f889726334caed91538566c07201a743323b546e4dde62e0f885e
4
- data.tar.gz: 8afa84c893cd461fa22dd4f33bf0c20f7c3b461f67a3c9d8bae7b65cb08fdccd
3
+ metadata.gz: 5c2186243c43d574708ec66e71e6be7ec19e72ac91d6d33609384a44e31db715
4
+ data.tar.gz: 06f6800413c7c61336728d615f187fb1d62c3c43c9797cb49029d78a92cd0a41
5
5
  SHA512:
6
- metadata.gz: a81c79c068678cdfbf649c0f03ac64983f1b638f0bf30fc6ce604d8fbaeeb78aa2863bdd72ee02d430df2eeeaa24740871fe688cbbcc8ffa2545e8cceb5dfd78
7
- data.tar.gz: 3ee0f623ce30e0659c574736ecbd9fb895d5726d67d236381cfd5a5e0399a10a2b4943cd0e4a2cdb8e1c4845aba7f3669f2ba096b11936c8303295ae8930305b
6
+ metadata.gz: 85f602bb8bbea041169a8df3fb22e3df506f74ef9b37c00c5eb888650cd45c03b9479ce691d0230f6087154820c49d4f182b2cf80737037c239ae2a0b70043d0
7
+ data.tar.gz: 165e06496b389f0a2f841b7ddbd7679e147340bdf2f8fc6ee88f8b8e250ada7b128dffa924eea0136ee9bfa78157371f1c6f89e4ddc60f817194c4362ece472e
@@ -0,0 +1,9 @@
1
+ /**
2
+ * @license lyradesigns.com v1
3
+ * Updated: Dec 17, 2014
4
+ * Add pin buttons to images
5
+ * Copyright (c) 2014 Jonas Goslow - LYRA
6
+ * Released under the MIT license
7
+ * https://github.com/timmywil/jquery.panzoom/blob/master/MIT-License.txt
8
+ */
9
+ (function(e){e.fn.imgPin=function(t){var n={pinImg:"https://assets.pinterest.com/images/pidgets/pin_it_button.png",position:1};var t=e.extend({},n,t);var r=encodeURIComponent(document.URL),i=t.pinImg,s="";switch(t.position){case 1:s="top left";break;case 2:s="top right";break;case 3:s="bottom right";break;case 4:s="bottom left";break;case 5:s="center";break}this.each(function(){var n=e(this).attr("src"),o=r;var u=new Image;u.src=n;var a=encodeURIComponent(document.title),f=encodeURIComponent(n);var l="https://www.pinterest.com/pin/create/button/";l+="?url="+o;l+="&media="+f;l+="&description="+a;e(this).wrap('<div class="imgPinWrap">').after('<a href="'+l+'" class="pin '+s+'"><img src="'+i+'" alt="Pin this!"></a>');if(t.position==5){var u=new Image;u.onload=function(){var t=this.width;h=this.height;e(".imgPinWrap .pin.center").css("margin-left",-t/2).css("margin-top",-h/2)};u.src=i}e(".imgPinWrap .pin").click(function(){var e=700,t=400;var n=screen.width/2-e/2;var r=screen.height/2-t/2;var i=window.open(this.href,"imgPngWindow","toolbar=no, location=no, status=no, menubar=no, scrollbars=yes, resizable=yes, width=700, height=400");i.moveTo(n,r);return false})})}})(jQuery)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll-theme-recipe
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Hanno Witzleb
@@ -158,6 +158,7 @@ files:
158
158
  - assets/images/author.jpg
159
159
  - assets/images/favicon.png
160
160
  - assets/images/logo.svg
161
+ - assets/js/jquery.imgPin.min.js
161
162
  homepage: https://github.com/Xipit/jekyll-theme-recipe
162
163
  licenses:
163
164
  - CC0-1.0