jumbo-jekyll-theme 5.6.9.2 → 5.6.9.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +10 -10
- data/_config.yml +213 -213
- data/_data/example-carousel-data-source.yml +36 -36
- data/_data/footer.yml +33 -33
- data/_data/nav.yml +17 -17
- data/_data/settings.yml +103 -103
- data/_data/tags.yml +11 -11
- data/_data/universal-nav.yml +7 -7
- data/_includes/breadcrumb.html +97 -97
- data/_includes/core/blocks.html +30 -30
- data/_includes/core/button.html +5 -5
- data/_includes/core/buttons.html +5 -5
- data/_includes/core/container_row.html +7 -7
- data/_includes/core/feature_block.html +43 -43
- data/_includes/core/full_width_row.html +5 -5
- data/_includes/core/members-section.html +32 -32
- data/_includes/core/slider.html +33 -33
- data/_includes/core/slider_row.html +2 -2
- data/_includes/core/title.html +3 -3
- data/_includes/core/youtube_video_embed.html +11 -11
- data/_includes/css.html +9 -9
- data/_includes/custom_include.html +13 -13
- data/_includes/custom_include_row.html +562 -562
- data/_includes/display-blog-posts.html +154 -154
- data/_includes/flow_inner.html +19 -19
- data/_includes/footer.html +68 -68
- data/_includes/google-analytics.html +16 -16
- data/_includes/head.html +19 -19
- data/_includes/image.html +6 -6
- data/_includes/javascript.html +10 -10
- data/_includes/jumbotron.html +115 -115
- data/_includes/linaro-404.html +19 -19
- data/_includes/nav.html +153 -153
- data/_includes/pagination.html +38 -38
- data/_includes/post-sidebar.html +182 -182
- data/_includes/responsive-image.html +5 -5
- data/_includes/schema.html +43 -43
- data/_includes/thumb.html +1 -1
- data/_includes/thumbnail_image.html +9 -9
- data/_includes/universal-nav.html +30 -30
- data/_layouts/author.html +5 -5
- data/_layouts/default.html +3 -3
- data/_layouts/error.html +25 -25
- data/_layouts/flow.html +35 -35
- data/_layouts/jumbotron.html +11 -11
- data/_layouts/post-index.html +16 -16
- data/_layouts/post.html +39 -39
- data/_sass/app/overrides.scss +65 -65
- data/_sass/app/search.scss +51 -51
- data/_sass/bootstrap/_variables.scss +932 -932
- data/_sass/core.scss +20 -20
- data/_sass/core/blog.scss +425 -425
- data/_sass/core/carousel-header.scss +90 -90
- data/_sass/core/error.scss +190 -190
- data/_sass/core/flow.scss +186 -186
- data/_sass/core/footer.scss +141 -141
- data/_sass/core/jumbotron.scss +279 -279
- data/_sass/core/normalize.scss +357 -357
- data/_sass/core/theme.scss +871 -871
- data/_sass/home.scss +2 -2
- data/assets/css/main-blog.scss +13 -13
- data/assets/css/main-error.scss +13 -13
- data/assets/css/main.scss +11 -11
- data/assets/js/app/facebook.js +7 -7
- data/assets/js/app/main.js +261 -261
- data/assets/js/pacakge-search.js +9 -9
- data/assets/js/package-blog.js +12 -12
- data/assets/js/package-extended.js +14 -14
- data/assets/js/package-home.js +14 -14
- data/assets/js/package-main.js +13 -13
- data/assets/js/package-search.js +8 -8
- data/assets/js/vendor/fess-ss.min.js +24 -24
- data/robots.txt +9 -9
- metadata +2 -16
data/_sass/home.scss
CHANGED
@@ -1,2 +1,2 @@
|
|
1
|
-
/* Home Sass Partials */
|
2
|
-
@import 'core/homepage';
|
1
|
+
/* Home Sass Partials */
|
2
|
+
@import 'core/homepage';
|
data/assets/css/main-blog.scss
CHANGED
@@ -1,14 +1,14 @@
|
|
1
|
-
---
|
2
|
-
---
|
3
|
-
@charset "UTF-8";
|
4
|
-
//Bootstrap Overrides
|
5
|
-
@import "app/overrides";
|
6
|
-
//Boostrap Includes
|
7
|
-
@import '_bootstrap';
|
8
|
-
// Linaro Jekyll Theme Includes
|
9
|
-
@import 'core';
|
10
|
-
// Additional Core Includes
|
11
|
-
@import 'blog';
|
12
|
-
// App Includes
|
13
|
-
@import "app/custom";
|
1
|
+
---
|
2
|
+
---
|
3
|
+
@charset "UTF-8";
|
4
|
+
//Bootstrap Overrides
|
5
|
+
@import "app/overrides";
|
6
|
+
//Boostrap Includes
|
7
|
+
@import '_bootstrap';
|
8
|
+
// Linaro Jekyll Theme Includes
|
9
|
+
@import 'core';
|
10
|
+
// Additional Core Includes
|
11
|
+
@import 'blog';
|
12
|
+
// App Includes
|
13
|
+
@import "app/custom";
|
14
14
|
@import "app/blog";
|
data/assets/css/main-error.scss
CHANGED
@@ -1,13 +1,13 @@
|
|
1
|
-
---
|
2
|
-
---
|
3
|
-
@charset "UTF-8";
|
4
|
-
// App Overrides - Sass variables
|
5
|
-
@import "app/overrides";
|
6
|
-
//Boostrap Includes
|
7
|
-
@import '_bootstrap';
|
8
|
-
// Core Theme
|
9
|
-
@import 'core';
|
10
|
-
//Additional Core includes
|
11
|
-
@import "core/error";
|
12
|
-
// App Includes
|
13
|
-
@import "app/custom";
|
1
|
+
---
|
2
|
+
---
|
3
|
+
@charset "UTF-8";
|
4
|
+
// App Overrides - Sass variables
|
5
|
+
@import "app/overrides";
|
6
|
+
//Boostrap Includes
|
7
|
+
@import '_bootstrap';
|
8
|
+
// Core Theme
|
9
|
+
@import 'core';
|
10
|
+
//Additional Core includes
|
11
|
+
@import "core/error";
|
12
|
+
// App Includes
|
13
|
+
@import "app/custom";
|
data/assets/css/main.scss
CHANGED
@@ -1,11 +1,11 @@
|
|
1
|
-
---
|
2
|
-
---
|
3
|
-
@charset "UTF-8";
|
4
|
-
//Bootstrap Overrides
|
5
|
-
@import "app/overrides";
|
6
|
-
//Boostrap Includes
|
7
|
-
@import '_bootstrap';
|
8
|
-
// Linaro Jekyll Theme Includes
|
9
|
-
@import "core";
|
10
|
-
// App Includes
|
11
|
-
@import "app/custom";
|
1
|
+
---
|
2
|
+
---
|
3
|
+
@charset "UTF-8";
|
4
|
+
//Bootstrap Overrides
|
5
|
+
@import "app/overrides";
|
6
|
+
//Boostrap Includes
|
7
|
+
@import '_bootstrap';
|
8
|
+
// Linaro Jekyll Theme Includes
|
9
|
+
@import "core";
|
10
|
+
// App Includes
|
11
|
+
@import "app/custom";
|
data/assets/js/app/facebook.js
CHANGED
@@ -1,8 +1,8 @@
|
|
1
|
-
<!-- <div id="fb-root"></div>
|
2
|
-
<script>(function(d, s, id) {
|
3
|
-
var js, fjs = d.getElementsByTagName(s)[0];
|
4
|
-
if (d.getElementById(id)) return;
|
5
|
-
js = d.createElement(s); js.id = id;
|
6
|
-
js.src = "//connect.facebook.net/en_GB/sdk.js#xfbml=1&version=v2.9&appId=155006367915796";
|
7
|
-
fjs.parentNode.insertBefore(js, fjs);
|
1
|
+
<!-- <div id="fb-root"></div>
|
2
|
+
<script>(function(d, s, id) {
|
3
|
+
var js, fjs = d.getElementsByTagName(s)[0];
|
4
|
+
if (d.getElementById(id)) return;
|
5
|
+
js = d.createElement(s); js.id = id;
|
6
|
+
js.src = "//connect.facebook.net/en_GB/sdk.js#xfbml=1&version=v2.9&appId=155006367915796";
|
7
|
+
fjs.parentNode.insertBefore(js, fjs);
|
8
8
|
}(document, 'script', 'facebook-jssdk'));</script> -->
|
data/assets/js/app/main.js
CHANGED
@@ -1,261 +1,261 @@
|
|
1
|
-
// Hide all navigation sub menus on window click
|
2
|
-
$(window).click(function() {
|
3
|
-
$(".dropdown-submenu.sub-menu > .dropdown-menu.sub-menu").hide();
|
4
|
-
});
|
5
|
-
$(document).ready(function () {
|
6
|
-
// Clipboard JS
|
7
|
-
if($("div.highlight").length > 0){
|
8
|
-
$('div.highlight').each(function (index) {
|
9
|
-
var uniqueId = "highlight" + index;
|
10
|
-
$(this).attr("id", uniqueId);
|
11
|
-
var copyBtn = '<button id="copyBtn' + index + '" data-toggle="tooltip" data-placement="left" title="Copied to Clipboard" class="btn copyBtn" data-clipboard-target="#' + uniqueId + '">';
|
12
|
-
copyBtn += '<img src="https://clipboardjs.com/assets/images/clippy.svg" width="13" alt="Copy to clipboard"></button>';
|
13
|
-
$(this).append(copyBtn);
|
14
|
-
(function () {
|
15
|
-
new ClipboardJS('#copyBtn' + index);
|
16
|
-
})();
|
17
|
-
|
18
|
-
});
|
19
|
-
}
|
20
|
-
if ($("#jumbotron-slider").length > 0 ){
|
21
|
-
$("#jumbotron-slider").owlCarousel({
|
22
|
-
navigation: true,
|
23
|
-
slideSpeed: 300,
|
24
|
-
autoplayTimeout: 10000,
|
25
|
-
paginationSpeed: 400,
|
26
|
-
pagination: false,
|
27
|
-
rewindSpeed: 500,
|
28
|
-
rewind: true,
|
29
|
-
autoplay: true,
|
30
|
-
items: 1,
|
31
|
-
lazyLoadEager: 0,
|
32
|
-
loop: false,
|
33
|
-
lazyLoad: true,
|
34
|
-
dots: true
|
35
|
-
});
|
36
|
-
}
|
37
|
-
if ($(".owl-carousel.slider-block").length > 0 ){
|
38
|
-
$(".owl-carousel.slider-block").each(function(index){
|
39
|
-
|
40
|
-
// Set Default values for the responsive items
|
41
|
-
var xs_items = 1;
|
42
|
-
var sm_items = 2;
|
43
|
-
var xs_items = 3;
|
44
|
-
var lg_items = 4;
|
45
|
-
var seconds_per_slide = 5000;
|
46
|
-
var dots = false;
|
47
|
-
var nav = true;
|
48
|
-
|
49
|
-
if(typeof $(this).data("xs-number") !== "undefined"){
|
50
|
-
var xs_items = $(this).data("xs-number");
|
51
|
-
}
|
52
|
-
if(typeof $(this).data("sm-number") !== "undefined"){
|
53
|
-
var sm_items = $(this).data("sm-number");
|
54
|
-
}
|
55
|
-
if(typeof $(this).data("md-number") !== "undefined"){
|
56
|
-
var md_items = $(this).data("md-number");
|
57
|
-
}
|
58
|
-
if(typeof $(this).data("lg-number") !== "undefined"){
|
59
|
-
var lg_items = $(this).data("lg-number");
|
60
|
-
}
|
61
|
-
if(typeof $(this).data("seconds-per-slide") !== "undefined"){
|
62
|
-
var seconds_per_slide = $(this).data("seconds-per-slide") * 1000;
|
63
|
-
}
|
64
|
-
if(typeof $(this).data("dots") !== "undefined"){
|
65
|
-
var dots = $(this).data("dots");
|
66
|
-
}
|
67
|
-
if(typeof $(this).data("nav") !== "undefined"){
|
68
|
-
var nav = $(this).data("nav") * 1000;
|
69
|
-
}
|
70
|
-
|
71
|
-
$(this).owlCarousel({
|
72
|
-
nav: nav,
|
73
|
-
dots: dots,
|
74
|
-
slideSpeed: 300,
|
75
|
-
autoplayTimeout: seconds_per_slide,
|
76
|
-
rewindSpeed: 500,
|
77
|
-
rewind: true,
|
78
|
-
autoplay: true,
|
79
|
-
autoHeight: true,
|
80
|
-
responsiveClass: true,
|
81
|
-
lazyLoad: true,
|
82
|
-
lazyLoadEager: 0,
|
83
|
-
responsive: {
|
84
|
-
// breakpoint from 0 up
|
85
|
-
0: {
|
86
|
-
items: xs_items
|
87
|
-
},
|
88
|
-
// breakpoint from 480 up
|
89
|
-
1000: {
|
90
|
-
items: sm_items
|
91
|
-
},
|
92
|
-
// breakpoint from 768 up
|
93
|
-
1200: {
|
94
|
-
items: md_items
|
95
|
-
},
|
96
|
-
1400: {
|
97
|
-
items: lg_items
|
98
|
-
}
|
99
|
-
}
|
100
|
-
});
|
101
|
-
});
|
102
|
-
|
103
|
-
}
|
104
|
-
|
105
|
-
// Double Scroll Plugin
|
106
|
-
if($(".double-scroll").length > 0){
|
107
|
-
$(".double-scroll").doubleScroll({
|
108
|
-
resetOnWindowResize: true,
|
109
|
-
onlyIfScroll: true
|
110
|
-
});
|
111
|
-
}
|
112
|
-
// Toggle the sub menu when clicked.
|
113
|
-
$('.dropdown-submenu.sub-menu a').on("click", function (e) {
|
114
|
-
if ($(this).hasClass("active")) {
|
115
|
-
$(this).next('ul').hide();
|
116
|
-
$(this).removeClass("active");
|
117
|
-
}
|
118
|
-
else {
|
119
|
-
$(".dropdown-menu.sub-menu").hide();
|
120
|
-
$(".dropdown-submenu.sub-menu a").removeClass("active");
|
121
|
-
$(this).next('ul').show();
|
122
|
-
$(this).addClass("active");
|
123
|
-
}
|
124
|
-
e.stopPropagation();
|
125
|
-
});
|
126
|
-
// Theme navbar setup
|
127
|
-
var wrapper = $('#wrapper');
|
128
|
-
var universalNav = false;
|
129
|
-
var universalNavHeight = 0;
|
130
|
-
if($("#universal-nav").length > 0){
|
131
|
-
var universalNav = $('#universal-nav');
|
132
|
-
var universalNavHeight = $("#universal-nav").height();
|
133
|
-
}
|
134
|
-
var stickyOffset = $('#main-navigation').offset().top;
|
135
|
-
var wrapper = $('#wrapper');
|
136
|
-
|
137
|
-
function navbar() {
|
138
|
-
// Main Navigation Selector
|
139
|
-
var sticky = $('#main-navigation');
|
140
|
-
// Scroll value
|
141
|
-
var scroll = $(window).scrollTop();
|
142
|
-
|
143
|
-
if (scroll > stickyOffset) {
|
144
|
-
sticky.removeClass('navbar-static');
|
145
|
-
if(universalNav === false){
|
146
|
-
wrapper.css('margin-top', "66px");
|
147
|
-
}
|
148
|
-
else{
|
149
|
-
wrapper.css('margin-top', "104px");
|
150
|
-
}
|
151
|
-
|
152
|
-
if (universalNav) {
|
153
|
-
universalNav.hide();
|
154
|
-
}
|
155
|
-
|
156
|
-
sticky.addClass('navbar-fixed-top');
|
157
|
-
}
|
158
|
-
else {
|
159
|
-
sticky.removeClass('navbar-fixed-top');
|
160
|
-
wrapper.css('margin-top', '0px');
|
161
|
-
|
162
|
-
if (universalNav) {
|
163
|
-
universalNav.slideDown(100);
|
164
|
-
}
|
165
|
-
|
166
|
-
sticky.addClass('navbar-static');
|
167
|
-
}
|
168
|
-
}
|
169
|
-
navbar();
|
170
|
-
$(window).scroll(function () {
|
171
|
-
navbar();
|
172
|
-
});
|
173
|
-
|
174
|
-
// Initialise dropdowns
|
175
|
-
$('.dropdown-toggle').dropdown();
|
176
|
-
// Reset forms when bootstrap modal closes.
|
177
|
-
$('.modal').on('hidden.bs.modal', function(){
|
178
|
-
$(this).find('form')[0].reset();
|
179
|
-
});
|
180
|
-
// Stacked Navbar
|
181
|
-
$('#stacked-nav-bar').on('hidden.bs.collapse', function() {
|
182
|
-
$('.nav-pills').removeClass('nav-stacked');
|
183
|
-
});
|
184
|
-
// Scrolling sticking on IOS7 (Bug fix)
|
185
|
-
if (navigator.userAgent.match(/.*CPU.*OS 7_\d/i)){$('html').addClass('ios7');}
|
186
|
-
// Dropdown menu JS
|
187
|
-
$('nav li.dropdown.main > ul.dropdown-menu [data-toggle=dropdown]').on('click', function(event) {
|
188
|
-
event.preventDefault();
|
189
|
-
event.stopPropagation();
|
190
|
-
$(this).parent().addClass('open');
|
191
|
-
var menu = $(this).parent().find("ul");
|
192
|
-
var menupos = menu.offset();
|
193
|
-
if ((menupos.left + menu.width()) + 30 > $(window).width()) {
|
194
|
-
var newpos = - menu.width();
|
195
|
-
} else {
|
196
|
-
var newpos = $(this).parent().width();
|
197
|
-
}
|
198
|
-
menu.css({ left:newpos });
|
199
|
-
});
|
200
|
-
// Remove any zoom class added to body
|
201
|
-
$('body').css('zoom', '');
|
202
|
-
// Open External links in a new tab
|
203
|
-
$('a').each(function() {
|
204
|
-
var a = new RegExp('/' + window.location.host + '/');
|
205
|
-
if (!a.test(this.href)) {
|
206
|
-
if($(this).attr("target") != "_self"){
|
207
|
-
$(this).attr("target","_blank");
|
208
|
-
}
|
209
|
-
}
|
210
|
-
});
|
211
|
-
// Enabled permalinks to specific Bootstrap tabs
|
212
|
-
var hash = document.location.hash;
|
213
|
-
if (hash) {
|
214
|
-
$('.nav-tabs a[href="'+hash+'"]').tab('show');
|
215
|
-
}
|
216
|
-
// Change hash for page-reload
|
217
|
-
$('.nav-tabs a').on('shown', function (e) {
|
218
|
-
window.location.hash = e.target.hash.replace("#", "#" + prefix);
|
219
|
-
});
|
220
|
-
// Carousel image header - Lazy loading the carousel images
|
221
|
-
var cHeight = 0;
|
222
|
-
$('#header-carousel').on('slide.bs.carousel', function (e) {
|
223
|
-
var $nextImage = null;
|
224
|
-
$activeItem = $('.item.active', this);
|
225
|
-
if (e.direction == 'left'){
|
226
|
-
$nextImage = $activeItem.next('.item');
|
227
|
-
} else {
|
228
|
-
if ($activeItem.index() == 0){
|
229
|
-
$nextImage = $('div:last', $activeItem.parent());
|
230
|
-
} else {
|
231
|
-
$nextImage = $activeItem.prev('.item');
|
232
|
-
}
|
233
|
-
}
|
234
|
-
// prevents the slide decrease in height
|
235
|
-
if (cHeight == 0) {
|
236
|
-
cHeight = $(this).height();
|
237
|
-
$activeItem.next('.item').height(cHeight);
|
238
|
-
}
|
239
|
-
// prevents the loaded image if it is already loaded
|
240
|
-
var src = $nextImage.attr('data-src');
|
241
|
-
if (typeof src !== "undefined" && src != "") {
|
242
|
-
$nextImage.css('background-image', 'url(' + src + ')');
|
243
|
-
$nextImage.data('data-src', '');
|
244
|
-
}
|
245
|
-
});
|
246
|
-
// Cookie Consent Setup
|
247
|
-
window.addEventListener("load", function(){
|
248
|
-
window.cookieconsent.initialise({
|
249
|
-
"palette": {
|
250
|
-
"popup": {
|
251
|
-
"background": "#000000",
|
252
|
-
"text": "#fff"
|
253
|
-
},
|
254
|
-
"button": {
|
255
|
-
"background": "transparent",
|
256
|
-
"text": "#ffffff",
|
257
|
-
"border": "#25cfb0"
|
258
|
-
}
|
259
|
-
}
|
260
|
-
})});
|
261
|
-
});
|
1
|
+
// Hide all navigation sub menus on window click
|
2
|
+
$(window).click(function() {
|
3
|
+
$(".dropdown-submenu.sub-menu > .dropdown-menu.sub-menu").hide();
|
4
|
+
});
|
5
|
+
$(document).ready(function () {
|
6
|
+
// Clipboard JS
|
7
|
+
if($("div.highlight").length > 0){
|
8
|
+
$('div.highlight').each(function (index) {
|
9
|
+
var uniqueId = "highlight" + index;
|
10
|
+
$(this).attr("id", uniqueId);
|
11
|
+
var copyBtn = '<button id="copyBtn' + index + '" data-toggle="tooltip" data-placement="left" title="Copied to Clipboard" class="btn copyBtn" data-clipboard-target="#' + uniqueId + '">';
|
12
|
+
copyBtn += '<img src="https://clipboardjs.com/assets/images/clippy.svg" width="13" alt="Copy to clipboard"></button>';
|
13
|
+
$(this).append(copyBtn);
|
14
|
+
(function () {
|
15
|
+
new ClipboardJS('#copyBtn' + index);
|
16
|
+
})();
|
17
|
+
|
18
|
+
});
|
19
|
+
}
|
20
|
+
if ($("#jumbotron-slider").length > 0 ){
|
21
|
+
$("#jumbotron-slider").owlCarousel({
|
22
|
+
navigation: true,
|
23
|
+
slideSpeed: 300,
|
24
|
+
autoplayTimeout: 10000,
|
25
|
+
paginationSpeed: 400,
|
26
|
+
pagination: false,
|
27
|
+
rewindSpeed: 500,
|
28
|
+
rewind: true,
|
29
|
+
autoplay: true,
|
30
|
+
items: 1,
|
31
|
+
lazyLoadEager: 0,
|
32
|
+
loop: false,
|
33
|
+
lazyLoad: true,
|
34
|
+
dots: true
|
35
|
+
});
|
36
|
+
}
|
37
|
+
if ($(".owl-carousel.slider-block").length > 0 ){
|
38
|
+
$(".owl-carousel.slider-block").each(function(index){
|
39
|
+
|
40
|
+
// Set Default values for the responsive items
|
41
|
+
var xs_items = 1;
|
42
|
+
var sm_items = 2;
|
43
|
+
var xs_items = 3;
|
44
|
+
var lg_items = 4;
|
45
|
+
var seconds_per_slide = 5000;
|
46
|
+
var dots = false;
|
47
|
+
var nav = true;
|
48
|
+
|
49
|
+
if(typeof $(this).data("xs-number") !== "undefined"){
|
50
|
+
var xs_items = $(this).data("xs-number");
|
51
|
+
}
|
52
|
+
if(typeof $(this).data("sm-number") !== "undefined"){
|
53
|
+
var sm_items = $(this).data("sm-number");
|
54
|
+
}
|
55
|
+
if(typeof $(this).data("md-number") !== "undefined"){
|
56
|
+
var md_items = $(this).data("md-number");
|
57
|
+
}
|
58
|
+
if(typeof $(this).data("lg-number") !== "undefined"){
|
59
|
+
var lg_items = $(this).data("lg-number");
|
60
|
+
}
|
61
|
+
if(typeof $(this).data("seconds-per-slide") !== "undefined"){
|
62
|
+
var seconds_per_slide = $(this).data("seconds-per-slide") * 1000;
|
63
|
+
}
|
64
|
+
if(typeof $(this).data("dots") !== "undefined"){
|
65
|
+
var dots = $(this).data("dots");
|
66
|
+
}
|
67
|
+
if(typeof $(this).data("nav") !== "undefined"){
|
68
|
+
var nav = $(this).data("nav") * 1000;
|
69
|
+
}
|
70
|
+
|
71
|
+
$(this).owlCarousel({
|
72
|
+
nav: nav,
|
73
|
+
dots: dots,
|
74
|
+
slideSpeed: 300,
|
75
|
+
autoplayTimeout: seconds_per_slide,
|
76
|
+
rewindSpeed: 500,
|
77
|
+
rewind: true,
|
78
|
+
autoplay: true,
|
79
|
+
autoHeight: true,
|
80
|
+
responsiveClass: true,
|
81
|
+
lazyLoad: true,
|
82
|
+
lazyLoadEager: 0,
|
83
|
+
responsive: {
|
84
|
+
// breakpoint from 0 up
|
85
|
+
0: {
|
86
|
+
items: xs_items
|
87
|
+
},
|
88
|
+
// breakpoint from 480 up
|
89
|
+
1000: {
|
90
|
+
items: sm_items
|
91
|
+
},
|
92
|
+
// breakpoint from 768 up
|
93
|
+
1200: {
|
94
|
+
items: md_items
|
95
|
+
},
|
96
|
+
1400: {
|
97
|
+
items: lg_items
|
98
|
+
}
|
99
|
+
}
|
100
|
+
});
|
101
|
+
});
|
102
|
+
|
103
|
+
}
|
104
|
+
|
105
|
+
// Double Scroll Plugin
|
106
|
+
if($(".double-scroll").length > 0){
|
107
|
+
$(".double-scroll").doubleScroll({
|
108
|
+
resetOnWindowResize: true,
|
109
|
+
onlyIfScroll: true
|
110
|
+
});
|
111
|
+
}
|
112
|
+
// Toggle the sub menu when clicked.
|
113
|
+
$('.dropdown-submenu.sub-menu a').on("click", function (e) {
|
114
|
+
if ($(this).hasClass("active")) {
|
115
|
+
$(this).next('ul').hide();
|
116
|
+
$(this).removeClass("active");
|
117
|
+
}
|
118
|
+
else {
|
119
|
+
$(".dropdown-menu.sub-menu").hide();
|
120
|
+
$(".dropdown-submenu.sub-menu a").removeClass("active");
|
121
|
+
$(this).next('ul').show();
|
122
|
+
$(this).addClass("active");
|
123
|
+
}
|
124
|
+
e.stopPropagation();
|
125
|
+
});
|
126
|
+
// Theme navbar setup
|
127
|
+
var wrapper = $('#wrapper');
|
128
|
+
var universalNav = false;
|
129
|
+
var universalNavHeight = 0;
|
130
|
+
if($("#universal-nav").length > 0){
|
131
|
+
var universalNav = $('#universal-nav');
|
132
|
+
var universalNavHeight = $("#universal-nav").height();
|
133
|
+
}
|
134
|
+
var stickyOffset = $('#main-navigation').offset().top;
|
135
|
+
var wrapper = $('#wrapper');
|
136
|
+
|
137
|
+
function navbar() {
|
138
|
+
// Main Navigation Selector
|
139
|
+
var sticky = $('#main-navigation');
|
140
|
+
// Scroll value
|
141
|
+
var scroll = $(window).scrollTop();
|
142
|
+
|
143
|
+
if (scroll > stickyOffset) {
|
144
|
+
sticky.removeClass('navbar-static');
|
145
|
+
if(universalNav === false){
|
146
|
+
wrapper.css('margin-top', "66px");
|
147
|
+
}
|
148
|
+
else{
|
149
|
+
wrapper.css('margin-top', "104px");
|
150
|
+
}
|
151
|
+
|
152
|
+
if (universalNav) {
|
153
|
+
universalNav.hide();
|
154
|
+
}
|
155
|
+
|
156
|
+
sticky.addClass('navbar-fixed-top');
|
157
|
+
}
|
158
|
+
else {
|
159
|
+
sticky.removeClass('navbar-fixed-top');
|
160
|
+
wrapper.css('margin-top', '0px');
|
161
|
+
|
162
|
+
if (universalNav) {
|
163
|
+
universalNav.slideDown(100);
|
164
|
+
}
|
165
|
+
|
166
|
+
sticky.addClass('navbar-static');
|
167
|
+
}
|
168
|
+
}
|
169
|
+
navbar();
|
170
|
+
$(window).scroll(function () {
|
171
|
+
navbar();
|
172
|
+
});
|
173
|
+
|
174
|
+
// Initialise dropdowns
|
175
|
+
$('.dropdown-toggle').dropdown();
|
176
|
+
// Reset forms when bootstrap modal closes.
|
177
|
+
$('.modal').on('hidden.bs.modal', function(){
|
178
|
+
$(this).find('form')[0].reset();
|
179
|
+
});
|
180
|
+
// Stacked Navbar
|
181
|
+
$('#stacked-nav-bar').on('hidden.bs.collapse', function() {
|
182
|
+
$('.nav-pills').removeClass('nav-stacked');
|
183
|
+
});
|
184
|
+
// Scrolling sticking on IOS7 (Bug fix)
|
185
|
+
if (navigator.userAgent.match(/.*CPU.*OS 7_\d/i)){$('html').addClass('ios7');}
|
186
|
+
// Dropdown menu JS
|
187
|
+
$('nav li.dropdown.main > ul.dropdown-menu [data-toggle=dropdown]').on('click', function(event) {
|
188
|
+
event.preventDefault();
|
189
|
+
event.stopPropagation();
|
190
|
+
$(this).parent().addClass('open');
|
191
|
+
var menu = $(this).parent().find("ul");
|
192
|
+
var menupos = menu.offset();
|
193
|
+
if ((menupos.left + menu.width()) + 30 > $(window).width()) {
|
194
|
+
var newpos = - menu.width();
|
195
|
+
} else {
|
196
|
+
var newpos = $(this).parent().width();
|
197
|
+
}
|
198
|
+
menu.css({ left:newpos });
|
199
|
+
});
|
200
|
+
// Remove any zoom class added to body
|
201
|
+
$('body').css('zoom', '');
|
202
|
+
// Open External links in a new tab
|
203
|
+
$('a').each(function() {
|
204
|
+
var a = new RegExp('/' + window.location.host + '/');
|
205
|
+
if (!a.test(this.href)) {
|
206
|
+
if($(this).attr("target") != "_self"){
|
207
|
+
$(this).attr("target","_blank");
|
208
|
+
}
|
209
|
+
}
|
210
|
+
});
|
211
|
+
// Enabled permalinks to specific Bootstrap tabs
|
212
|
+
var hash = document.location.hash;
|
213
|
+
if (hash) {
|
214
|
+
$('.nav-tabs a[href="'+hash+'"]').tab('show');
|
215
|
+
}
|
216
|
+
// Change hash for page-reload
|
217
|
+
$('.nav-tabs a').on('shown', function (e) {
|
218
|
+
window.location.hash = e.target.hash.replace("#", "#" + prefix);
|
219
|
+
});
|
220
|
+
// Carousel image header - Lazy loading the carousel images
|
221
|
+
var cHeight = 0;
|
222
|
+
$('#header-carousel').on('slide.bs.carousel', function (e) {
|
223
|
+
var $nextImage = null;
|
224
|
+
$activeItem = $('.item.active', this);
|
225
|
+
if (e.direction == 'left'){
|
226
|
+
$nextImage = $activeItem.next('.item');
|
227
|
+
} else {
|
228
|
+
if ($activeItem.index() == 0){
|
229
|
+
$nextImage = $('div:last', $activeItem.parent());
|
230
|
+
} else {
|
231
|
+
$nextImage = $activeItem.prev('.item');
|
232
|
+
}
|
233
|
+
}
|
234
|
+
// prevents the slide decrease in height
|
235
|
+
if (cHeight == 0) {
|
236
|
+
cHeight = $(this).height();
|
237
|
+
$activeItem.next('.item').height(cHeight);
|
238
|
+
}
|
239
|
+
// prevents the loaded image if it is already loaded
|
240
|
+
var src = $nextImage.attr('data-src');
|
241
|
+
if (typeof src !== "undefined" && src != "") {
|
242
|
+
$nextImage.css('background-image', 'url(' + src + ')');
|
243
|
+
$nextImage.data('data-src', '');
|
244
|
+
}
|
245
|
+
});
|
246
|
+
// Cookie Consent Setup
|
247
|
+
window.addEventListener("load", function(){
|
248
|
+
window.cookieconsent.initialise({
|
249
|
+
"palette": {
|
250
|
+
"popup": {
|
251
|
+
"background": "#000000",
|
252
|
+
"text": "#fff"
|
253
|
+
},
|
254
|
+
"button": {
|
255
|
+
"background": "transparent",
|
256
|
+
"text": "#ffffff",
|
257
|
+
"border": "#25cfb0"
|
258
|
+
}
|
259
|
+
}
|
260
|
+
})});
|
261
|
+
});
|