jekyll-theme-recipe 0.1.3 → 0.1.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/_layouts/post.html +1 -1
- 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: 6212d204a81d389adf46b5458be2fb8315f4342c18e5a4a29a9832d308e4b61b
|
4
|
+
data.tar.gz: e51d0ed0c38002fb9a9610fa9b712e4df1a901b28d144ee1c25dd6343571a1e9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b4e78c9717f6816abd36dc557b45287feaa2237f128b125fa959dc1f97895fc4dc8c5b49f2a8661b2586b7ab0888b88173e18a41eff097bdfd4190987b17f102
|
7
|
+
data.tar.gz: 5f632955162d91d21d7e87a9f5d68104edf7d89d6c644d62ba4e6b2a31b74dc8bf24bf6ec1c9e5c518ec6a107ac80bcca15140caee160d7612f40efe7cd3f968
|
data/_layouts/post.html
CHANGED
@@ -63,7 +63,7 @@ layout: default
|
|
63
63
|
</article>
|
64
64
|
|
65
65
|
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.1.1/jquery.min.js"></script>
|
66
|
-
<script type="text/javascript" src="{{ site.baseurl }}/js/jquery.imgPin.min.js"></script>
|
66
|
+
<script type="text/javascript" src="{{ site.baseurl }}/assets/js/jquery.imgPin.min.js"></script>
|
67
67
|
<script>
|
68
68
|
$(function() {
|
69
69
|
$('.post img').imgPin();
|
@@ -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.5
|
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
|