jumbo-jekyll-theme 4.4.2 → 4.4.3

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: c74bde1008fe57ae361a0f40d04de9498e44c294ed97f2728a9b6e8ac7935cee
4
- data.tar.gz: 4483b7feea5adf47e89b0dbf88f10491900ffedd03406c89ee17721f7d15a0f3
3
+ metadata.gz: 3d80e535bdbb7a4404f9eeee18ca7473993634fbdc66b78602e0bcb36d515d38
4
+ data.tar.gz: f9fcf94209fdc65d8e661413b76a615bc303364a127fbb807cd07fe6c3fd9987
5
5
  SHA512:
6
- metadata.gz: f8b338bf3515daabfb82a5b53df8b391131d8a6da89f79cc304b66593ed9f8369d461db176e64331e53712a4c0afc82515744f9cb98b74c1f9be99711d4a4066
7
- data.tar.gz: 7f64b7098f69150b5e70384a4f6cef493855cc4d37e226e1cea1fa56e379ca84787a89cfee3b7f1f7f6ac8aa6222b8a6523858a6b5509bb154ff1fdd478366ab
6
+ metadata.gz: 38672f414900bd9bf2d14c32d70b741ec582b2463aa024a8233e803fbc0e0733c51e22a08172adad557efc96bc69aca777a81dd68b97106a7ebd4d2194037553
7
+ data.tar.gz: 5796c8d347d38f0efa8973629657cdc1b9c5977523da7c87602bbae2a817d2befe7b680c8bfc3ae89cafe03d351cf5fa65a923487e24cc4bd0963da04cb1fa58
data/_includes/nav.html CHANGED
@@ -15,7 +15,8 @@
15
15
  navbar-inverse navbar-static" id="main-navigation">
16
16
  <!-- NAVBAR HEADER-->
17
17
  <div class="navbar-header">
18
- <button for="navbar-toggle-cbox" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar-collapse" aria-expanded="false" aria-controls="navbar">
18
+ <button for="navbar-toggle-cbox" class="navbar-toggle collapsed" data-toggle="collapse"
19
+ data-target="#navbar-collapse" aria-expanded="false" aria-controls="navbar">
19
20
  <span class="sr-only">Toggle navigation</span>
20
21
  <span class="icon-bar top-bar"></span>
21
22
  <span class="icon-bar middle-bar"></span>
@@ -1,68 +1,70 @@
1
1
  $(document).ready(function () {
2
- // Set the sub nav text
3
- var text = $('#tabbed-nav-bar ul.nav-tabs li.active a').text();
4
- $('#sub-navigation-header').text(text);
5
- console.log(text);
6
- // Menu selector
7
- var menu = $('#tabbed-nav-bar');
8
- // Get sub nav offset from the page top
9
- var origOffsetY = menu.offset().top;
10
- if ($("#universal-nav").length > 0) {
11
- origOffsetY = origOffsetY - 20;
12
- }
13
- // Instantiate Bootstrap 3 Affix plugin
14
- $("#tabbed-nav-bar").affix({
15
- offset: {
16
- top: origOffsetY
17
- }
18
- });
19
- // Event listeners
20
- $("#tabbed-nav-bar").on('affixed.bs.affix', function(){
21
- affixed();
22
- });
23
- $("#tabbed-nav-bar").on('affixed-top.bs.affix ', function(){
24
- affixTop();
25
- });
26
- function scroll(){
27
- if ($("#tabbed-nav-bar.affix-top").length > 0) {
28
- affixTop();
2
+ // Check to see if the tabbed nav bar is in use.
3
+ if ($('#tabbed-nav-bar').length > 0){
4
+ // Set the sub nav text
5
+ var text = $('#tabbed-nav-bar ul.nav-tabs li.active a').text();
6
+ $('#sub-navigation-header').text(text);
7
+ console.log(text);
8
+ // Menu selector
9
+ var menu = $('#tabbed-nav-bar');
10
+ // Get sub nav offset from the page top
11
+ var origOffsetY = menu.offset().top;
12
+ if ($("#universal-nav").length > 0) {
13
+ origOffsetY = origOffsetY - 20;
29
14
  }
30
- if($("#tabbed-nav-bar.affix").length > 0){
15
+ // Instantiate Bootstrap 3 Affix plugin
16
+ $("#tabbed-nav-bar").affix({
17
+ offset: {
18
+ top: origOffsetY
19
+ }
20
+ });
21
+ // Event listeners
22
+ $("#tabbed-nav-bar").on('affixed.bs.affix', function(){
31
23
  affixed();
24
+ });
25
+ $("#tabbed-nav-bar").on('affixed-top.bs.affix ', function(){
26
+ affixTop();
27
+ });
28
+ function scroll(){
29
+ if ($("#tabbed-nav-bar.affix-top").length > 0) {
30
+ affixTop();
31
+ }
32
+ if($("#tabbed-nav-bar.affix").length > 0){
33
+ affixed();
34
+ }
32
35
  }
33
- }
34
-
35
- function affixTop(){
36
- $('#tabbed-nav-bar').addClass('non-sticky-nav');
37
- $('#tabbed-nav-bar').removeClass('sticky-nav');
38
- $("nav#main-navigation").show();
39
- if ($(window).width() < 1000) {
40
- $('#tabbed-nav-bar ul.nav-tabs').addClass('nav-stacked');
41
- $('#sub-navigation-header').show();
42
- }
43
- else {
44
- $('#tabbed-nav-bar ul.nav-tabs').removeClass('nav-stacked');
45
- $('#sub-navigation-header').hide();
46
- }
47
- }
48
- function affixed(){
49
- // Set thge sticky-nav clas
50
- $('#tabbed-nav-bar').removeClass('non-sticky-nav');
51
- $('#tabbed-nav-bar').addClass('sticky-nav');
52
- // Hide the main navigation bar
53
- $("nav#main-navigation").hide();
54
- if ($(window).width() < 768) {
55
- $('#tabbed-nav-bar ul.nav-tabs').addClass('nav-stacked');
56
- $('#sub-navigation-header').show();
36
+ function affixTop(){
37
+ $('#tabbed-nav-bar').addClass('non-sticky-nav');
38
+ $('#tabbed-nav-bar').removeClass('sticky-nav');
39
+ $("nav#main-navigation").show();
40
+ if ($(window).width() < 1000) {
41
+ $('#tabbed-nav-bar ul.nav-tabs').addClass('nav-stacked');
42
+ $('#sub-navigation-header').show();
43
+ }
44
+ else {
45
+ $('#tabbed-nav-bar ul.nav-tabs').removeClass('nav-stacked');
46
+ $('#sub-navigation-header').hide();
47
+ }
57
48
  }
58
- else {
59
- $('#tabbed-nav-bar ul.nav-tabs').removeClass('nav-stacked');
60
- $('#sub-navigation-header').hide();
49
+ function affixed(){
50
+ // Set thge sticky-nav clas
51
+ $('#tabbed-nav-bar').removeClass('non-sticky-nav');
52
+ $('#tabbed-nav-bar').addClass('sticky-nav');
53
+ // Hide the main navigation bar
54
+ $("nav#main-navigation").hide();
55
+ if ($(window).width() < 768) {
56
+ $('#tabbed-nav-bar ul.nav-tabs').addClass('nav-stacked');
57
+ $('#sub-navigation-header').show();
58
+ }
59
+ else {
60
+ $('#tabbed-nav-bar ul.nav-tabs').removeClass('nav-stacked');
61
+ $('#sub-navigation-header').hide();
62
+ }
61
63
  }
62
- }
63
- scroll();
64
- $(window).scroll(function () {
65
64
  scroll();
66
- });
67
- $(window).resize(scroll);
65
+ $(window).scroll(function () {
66
+ scroll();
67
+ });
68
+ $(window).resize(scroll);
69
+ }
68
70
  });
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jumbo-jekyll-theme
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.4.2
4
+ version: 4.4.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kyle Kirkby
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-04-18 00:00:00.000000000 Z
11
+ date: 2019-04-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll