jekyll-theme-consulting 0.4.0 → 0.4.1

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: abad23a2c417ac2d9db0895c402ab9d5e855195d706536c6c7cf0aee18766cc6
4
- data.tar.gz: 16b5c0e19359200f5c6e46037d3c0a6d985d562b2f1988b7b720603a3b8758d3
3
+ metadata.gz: fbc741eb0e5d6b00e523061950943f6fc320560cfa7167910f8d007846402cd9
4
+ data.tar.gz: 5a0c86559f59b681ed8c295ee0052e66a59a54d4bdfe1fe2a2ebc74351511255
5
5
  SHA512:
6
- metadata.gz: 47ff15e4c18c8a5fbc9acb6c3c5aa405f756a377688937dc48d9b27863f3b89a857c795c82a97ebf50b343ebe9b45bce003b13efe6aff3c6fec5a786cc6d78ea
7
- data.tar.gz: 9c89bce055854b508232ecee64d66831de5d008916634bd1f9334367f0a97e9cdeb056d8b28fc372e5767af892a16584ffdc5324822ef26d7537229c07dfece7
6
+ metadata.gz: be9f504b04c0b7c5bb4e74780d15daef93a441db1948066f3668ffe7f1967f0802cd3e7e23de336c0548f64db5c373d567208ed2c1df23a8c792dfd6fac396a2
7
+ data.tar.gz: 57aa29416b3b979909f1f89f96d05868ce16ba8287396a5fd223f54679b6f58ae578651935ca9baa20a8d9d90654790f921500c1aed2298fc760255c3d412c07
@@ -7,7 +7,7 @@
7
7
  </header>
8
8
  {% if include.description %}<p>{{ include.description }}</p>{% endif %}
9
9
  <ul class="actions">
10
- <li><a href="{{ include.button.url | default: '#' }}" class="button big">{{ include.button.label | default: 'Ask for advice!' }}</a></li>
10
+ <li><a href="{{ include.button.url | default: '#' }}" class="button big scrolly">{{ include.button.label | default: 'Ask for advice!' }}</a></li>
11
11
  </ul>
12
12
  </div>
13
13
  </section>
@@ -1,5 +1,6 @@
1
1
  <!-- Scripts -->
2
2
  <script src="{{ 'assets/js/jquery.min.js' | absolute_url }}"></script>
3
+ <script src="{{ 'assets/js/jquery.scrolly.min.js' | absolute_url }}"></script>
3
4
  <script src="{{ 'assets/js/browser.min.js' | absolute_url }}"></script>
4
5
  <script src="{{ 'assets/js/breakpoints.min.js' | absolute_url }}"></script>
5
6
  <script src="{{ 'assets/js/util.js' | absolute_url }}"></script>
@@ -0,0 +1,2 @@
1
+ /* jquery.scrolly v1.0.0-dev | (c) @ajlkn | MIT licensed */
2
+ (function(e){function u(s,o){var u,a,f;if((u=e(s))[t]==0)return n;a=u[i]()[r];switch(o.anchor){case"middle":f=a-(e(window).height()-u.outerHeight())/2;break;default:case r:f=Math.max(a,0)}return typeof o[i]=="function"?f-=o[i]():f-=o[i],f}var t="length",n=null,r="top",i="offset",s="click.scrolly",o=e(window);e.fn.scrolly=function(i){var o,a,f,l,c=e(this);if(this[t]==0)return c;if(this[t]>1){for(o=0;o<this[t];o++)e(this[o]).scrolly(i);return c}l=n,f=c.attr("href");if(f.charAt(0)!="#"||f[t]<2)return c;a=jQuery.extend({anchor:r,easing:"swing",offset:0,parent:e("body,html"),pollOnce:!1,speed:1e3},i),a.pollOnce&&(l=u(f,a)),c.off(s).on(s,function(e){var t=l!==n?l:u(f,a);t!==n&&(e.preventDefault(),a.parent.stop().animate({scrollTop:t},a.speed,a.easing))})}})(jQuery);
data/assets/js/main.js CHANGED
@@ -107,6 +107,17 @@
107
107
 
108
108
  });
109
109
 
110
+ // Scrolly.
111
+ $('.scrolly-middle').scrolly({
112
+ speed: 1000,
113
+ anchor: 'middle'
114
+ });
115
+
116
+ $('.scrolly').scrolly({
117
+ speed: 1000,
118
+ offset: function() { return (breakpoints.active('<=mobile') ? 70 : 190); }
119
+ });
120
+
110
121
  // Events.
111
122
 
112
123
  // Link clicks.
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll-theme-consulting
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Mougeolle
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-08-27 00:00:00.000000000 Z
11
+ date: 2019-08-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll
@@ -166,6 +166,7 @@ files:
166
166
  - assets/js/browser.min.js
167
167
  - assets/js/cookieconsent.min.js
168
168
  - assets/js/jquery.min.js
169
+ - assets/js/jquery.scrolly.min.js
169
170
  - assets/js/main.js
170
171
  - assets/js/util.js
171
172
  - assets/webfonts/fa-brands-400.eot