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 +4 -4
- data/_includes/nav.html +2 -1
- data/assets/js/app/sticky-tab-bar.js +62 -60
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3d80e535bdbb7a4404f9eeee18ca7473993634fbdc66b78602e0bcb36d515d38
|
4
|
+
data.tar.gz: f9fcf94209fdc65d8e661413b76a615bc303364a127fbb807cd07fe6c3fd9987
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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"
|
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
|
-
//
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
origOffsetY =
|
12
|
-
|
13
|
-
|
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
|
-
|
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
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
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
|
-
|
59
|
-
|
60
|
-
$('#
|
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
|
-
|
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.
|
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-
|
11
|
+
date: 2019-04-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jekyll
|