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 +4 -4
- data/_includes/banner.html +1 -1
- data/_includes/scripts.html +1 -0
- data/assets/js/jquery.scrolly.min.js +2 -0
- data/assets/js/main.js +11 -0
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fbc741eb0e5d6b00e523061950943f6fc320560cfa7167910f8d007846402cd9
|
4
|
+
data.tar.gz: 5a0c86559f59b681ed8c295ee0052e66a59a54d4bdfe1fe2a2ebc74351511255
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: be9f504b04c0b7c5bb4e74780d15daef93a441db1948066f3668ffe7f1967f0802cd3e7e23de336c0548f64db5c373d567208ed2c1df23a8c792dfd6fac396a2
|
7
|
+
data.tar.gz: 57aa29416b3b979909f1f89f96d05868ce16ba8287396a5fd223f54679b6f58ae578651935ca9baa20a8d9d90654790f921500c1aed2298fc760255c3d412c07
|
data/_includes/banner.html
CHANGED
@@ -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>
|
data/_includes/scripts.html
CHANGED
@@ -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.
|
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-
|
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
|