jekyll-theme-recipe 0.1.3 → 0.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/assets/js/jquery.imgPin.min.js +9 -0
- metadata +2 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5c2186243c43d574708ec66e71e6be7ec19e72ac91d6d33609384a44e31db715
|
4
|
+
data.tar.gz: 06f6800413c7c61336728d615f187fb1d62c3c43c9797cb49029d78a92cd0a41
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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.
|
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
|