jumbo-jekyll-theme 1.4.47 → 1.4.48
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/assets/js/app/main.js +12 -60
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bf2f3ffa27c76c23968cc461994f7ed177df72c0
|
4
|
+
data.tar.gz: a924b71027939b9fc514ac29f1f2c7a1299adccf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b120af62ece291cbd5dae395ab2b800bf46511b065a421fafa8f9a7922acc8ccf82cd0ad0d4c2794c9c87646192072508e2550b1fa202dbbb809813fc69821f2
|
7
|
+
data.tar.gz: f666bc0fe6c75086c0abd719b0b57f7339b120388a39ecbe8a01ec2a1a466cbbc8176a6edec0f22136c6eec9acc2bf5c4b998a43af015dfd4b29fc4aac373172
|
data/assets/js/app/main.js
CHANGED
@@ -1,33 +1,15 @@
|
|
1
1
|
$(document).mouseup(function(e)
|
2
2
|
{
|
3
|
-
var search_container = $("div#search_bar");
|
4
|
-
|
3
|
+
var search_container = $("div#search_bar");
|
5
4
|
// if the target of the click isn't the container nor a descendant of the container
|
6
5
|
if (!search_container.is(e.target) && search_container.has(e.target).length === 0)
|
7
6
|
{
|
8
7
|
search_container.hide();
|
9
8
|
}
|
10
|
-
|
11
9
|
});
|
12
10
|
|
13
11
|
$(document).ready(function () {
|
14
|
-
|
15
|
-
|
16
12
|
$('.dropdown-toggle').dropdown();
|
17
|
-
// $(document).on('touchstart.dropdown.data-api', '.dropdown-submenu > a', function (event) {
|
18
|
-
// event.preventDefault();
|
19
|
-
// });
|
20
|
-
//
|
21
|
-
// $("li.dropdown-submenu.sub-menu>a").click(function(event){
|
22
|
-
// event.preventDefault();
|
23
|
-
// $("li.dropdown-submenu.sub-menu>a").next("ul.dropdown-menu.sub-menu").show();
|
24
|
-
// });
|
25
|
-
|
26
|
-
// Search Bar
|
27
|
-
// SHOW SEARCH - show search bar when you click the search icon
|
28
|
-
|
29
|
-
// Show Search Bar on click
|
30
|
-
// focus the user on search input field
|
31
13
|
var search_bar = $("div#search_bar");
|
32
14
|
var search_icon = $("a#search_icon");
|
33
15
|
var search_close = $("button#search_close");
|
@@ -41,42 +23,11 @@ $(document).ready(function () {
|
|
41
23
|
search_bar.css('display','block');
|
42
24
|
});
|
43
25
|
|
44
|
-
|
45
|
-
|
46
|
-
// CLICK AWAY CLOSE - Close Search bar on click away from input
|
47
|
-
|
48
|
-
// RESET BUTTON - Clear and Close search
|
49
26
|
$("button#search_close").click(function() {
|
50
27
|
search_form.trigger('reset');
|
51
28
|
search_bar.css('display','none');
|
52
29
|
});
|
53
30
|
|
54
|
-
// // Youtube Video Thumbnails
|
55
|
-
//
|
56
|
-
// var youtube = document.querySelectorAll( ".youtube" );
|
57
|
-
//
|
58
|
-
// for (var i = 0; i < youtube.length; i++) {
|
59
|
-
//
|
60
|
-
// var source = "https://img.youtube.com/vi/"+ youtube[i].dataset.embed +"/sddefault.jpg";
|
61
|
-
//
|
62
|
-
// var image = new Image();
|
63
|
-
// image.src = source;
|
64
|
-
// image.addEventListener( "load", function() {
|
65
|
-
// youtube[ i ].appendChild( image );
|
66
|
-
// }(i) );
|
67
|
-
//
|
68
|
-
// youtube[i].addEventListener( "click", function() {
|
69
|
-
// var iframe = document.createElement( "iframe" );
|
70
|
-
// iframe.setAttribute( "frameborder", "0" );
|
71
|
-
// iframe.setAttribute( "allowfullscreen", "" );
|
72
|
-
// iframe.setAttribute( "src", "https://www.youtube.com/embed/"+ this.dataset.embed +"?rel=0&showinfo=0&autoplay=1" );
|
73
|
-
//
|
74
|
-
// this.innerHsTML = "";
|
75
|
-
// this.appendChild( iframe );
|
76
|
-
// } );
|
77
|
-
// };
|
78
|
-
//
|
79
|
-
|
80
31
|
//Reset form when bootstrap modal closes.
|
81
32
|
$('.modal').on('hidden.bs.modal', function(){
|
82
33
|
$(this).find('form')[0].reset();
|
@@ -99,13 +50,6 @@ $(document).ready(function () {
|
|
99
50
|
//Scrolling sticking on IOS7
|
100
51
|
if (navigator.userAgent.match(/.*CPU.*OS 7_\d/i)){$('html').addClass('ios7');}
|
101
52
|
|
102
|
-
|
103
|
-
// //Nav Bar
|
104
|
-
//
|
105
|
-
// $('nav').removeClass('no-js');
|
106
|
-
|
107
|
-
// Nav Bar Drop Down Animation
|
108
|
-
|
109
53
|
$('nav li.dropdown.main > ul.dropdown-menu [data-toggle=dropdown]').on('click', function(event) {
|
110
54
|
event.preventDefault();
|
111
55
|
event.stopPropagation();
|
@@ -122,12 +66,9 @@ $(document).ready(function () {
|
|
122
66
|
menu.css({ left:newpos });
|
123
67
|
});
|
124
68
|
|
125
|
-
|
126
|
-
|
127
69
|
// Remove any zoom class added to body
|
128
70
|
$('body').css('zoom', '');
|
129
71
|
|
130
|
-
|
131
72
|
// External Links Opening in new window.
|
132
73
|
$('a').each(function() {
|
133
74
|
var a = new RegExp('/' + window.location.host + '/');
|
@@ -136,4 +77,15 @@ $(document).ready(function () {
|
|
136
77
|
}
|
137
78
|
});
|
138
79
|
|
80
|
+
// Enabled permalinks to specific Bootstrap tabs
|
81
|
+
var hash = document.location.hash;
|
82
|
+
var prefix = "tab_";
|
83
|
+
if (hash) {
|
84
|
+
$('.nav-tabs a[href="'+hash.replace(prefix,"")+'"]').tab('show');
|
85
|
+
}
|
86
|
+
// Change hash for page-reload
|
87
|
+
$('.nav-tabs a').on('shown', function (e) {
|
88
|
+
window.location.hash = e.target.hash.replace("#", "#" + prefix);
|
89
|
+
});
|
90
|
+
|
139
91
|
});
|
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: 1.4.
|
4
|
+
version: 1.4.48
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kyle Kirkby
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-05-
|
11
|
+
date: 2018-05-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jekyll
|