jumbo-jekyll-theme 5.7.0.7 → 6.0.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/_config.yml +0 -4
- data/_includes/components/github_edit.html +2 -2
- data/_includes/components/head.html +0 -3
- data/_includes/flow/blocks.html +33 -4
- data/_includes/flow/tabbed_content.html +2 -2
- data/_includes/footer/footer.html +9 -56
- data/_sass/app/overrides.scss +2 -80
- data/_sass/core/cookies.scss +3 -0
- data/_sass/core/footer.scss +13 -21
- data/_sass/core/jumbotron.scss +6 -2
- data/assets/js/app/main.js +75 -51
- data/assets/js/vendor/jquery.ihavecookies.js +47 -39
- 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: 60954d1fc8aee9294a0b911043deeb9adb8510308e689c6cebe3438892c33984
|
4
|
+
data.tar.gz: 93d262c90a43714126c97968e60409ccc597017870acbc5013ca23f8688c9a90
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 72cdf5ffdf2e343d7e10e8a5f25f2a5ef6cc3694405ca78314722bff8326759695560bd3c83babffb2d0ca6aef52dc2d21e8b231a28f44175b67b41bf722d8e3
|
7
|
+
data.tar.gz: 9b3ef029e062bb21a8031287e54091d39cb2a29b3f62384b9a078a68275e81ffa1fbf24b6fa47cae25bb6d8795e49a11633f2f071d0232f18d153ebe691b78ef
|
data/_config.yml
CHANGED
@@ -76,10 +76,6 @@ http2_resources:
|
|
76
76
|
href: /assets/fonts/lato/Lato-regular.woff2
|
77
77
|
google_analytics:
|
78
78
|
enabled: true
|
79
|
-
cookies_popup_title: Test Cookies & Privacy Policy
|
80
|
-
cookies_popup_description: >
|
81
|
-
Cookies enable test you to use this website to the full extent and to personalize your experience on our sites. They tell us which parts of our websites people have visited, help us measure the effectiveness of ads and web searches and give us insights into user behavior so we can improve our communications with you.
|
82
|
-
privacy_url: /privacy-test/
|
83
79
|
code: UAXXXXXXB
|
84
80
|
# Set the site-wide default social media share image.
|
85
81
|
social_media_share_image: /assets/images/social-media-image.png
|
@@ -9,7 +9,7 @@
|
|
9
9
|
{{github-home}}/issues/new?title=Problem+with+{{page-path}}&body=Please+enter+some+details+about+the+bug/issue+so+we+can+promptly+resolve+it.+%0D%0AURL%3A++{{site.url}}{{page.url}}
|
10
10
|
{% endcapture %}
|
11
11
|
{% capture edit-me-link %}{{github-docs}}{{page-path}}{% endcapture %}
|
12
|
-
<div class="btn-group my-
|
12
|
+
<div class="btn-group my-2 mt-1" role="group" aria-label="Basic example" id="github_controls">
|
13
13
|
<a type="button" class="btn btn-secondary" href="{{github-home}}" id="github_home"><i class="icon-github-circled center-block"></i></a>
|
14
14
|
<a type="button" class="btn btn-secondary" href="{{report-issue-link}}" id="submit_issue">Report an Issue</a>
|
15
15
|
<a href="{{edit-me-link | replace: " ", "" }}" type="button" class="btn btn-secondary" id="edit_on_github">Edit on GitHub</a>
|
@@ -21,7 +21,7 @@
|
|
21
21
|
{{site.edit-on-github.repo}}/issues/new?title=Problem+with+{{page-path}}&body=Please+enter+some+details+about+the+bug/issue+so+we+can+promptly+resolve+it.+%0D%0AURL%3A++{{site.url}}{{page.url}}
|
22
22
|
{% endcapture %}
|
23
23
|
{% capture edit-me-link %}{{github-docs}}{{page-path}}{% endcapture %}
|
24
|
-
<div class="btn-group my-
|
24
|
+
<div class="btn-group my-2 mt-1" role="group" aria-label="Basic example" id="github_controls">
|
25
25
|
<a type="button" class="btn btn-secondary" href="{{github-home}}" id="github_home"><i
|
26
26
|
class="icon-github-circled center-block"></i></a>
|
27
27
|
<a type="button" class="btn btn-secondary" href="{{report-issue-link}}" id="submit_issue">Report an
|
@@ -52,9 +52,6 @@
|
|
52
52
|
{% endif %}
|
53
53
|
{% if site.google_analytics.enabled %}
|
54
54
|
<meta name="analytics_code" content="{{site.google_analytics.code}}">
|
55
|
-
<meta name="cookies_popup_title" content="{{site.google_analytics.cookies_popup_title}}">
|
56
|
-
<meta name="cookies_popup_description" content="{{site.google_analytics.cookies_popup_description}}">
|
57
|
-
<meta name="privacy_url" content="{{site.google_analytics.privacy_url}}">
|
58
55
|
{% endif %}
|
59
56
|
{% if page.keywords %}
|
60
57
|
<meta name="keywords" content="{{page.keywords}}">
|
data/_includes/flow/blocks.html
CHANGED
@@ -6,6 +6,28 @@
|
|
6
6
|
{% assign block_width = include.object.item_width %}
|
7
7
|
{% endif %}
|
8
8
|
{% for block in include.object.block_section_content.blocks %}
|
9
|
+
{% if block.modal_content %}
|
10
|
+
<!-- Modal -->
|
11
|
+
<div class="modal fade" id="blockModal-{{forloop.index}}-{{block.title | slugify}}" tabindex="-1" role="dialog" aria-labelledby="blockModalLabel-{{forloop.index}}-{{block.title | slugify}}"
|
12
|
+
aria-hidden="true">
|
13
|
+
<div class="modal-dialog modal-dialog-centered modal-lg" role="document">
|
14
|
+
<div class="modal-content">
|
15
|
+
<div class="modal-header">
|
16
|
+
<h5 class="modal-title" id="blockModalLabel-{{forloop.index}}-{{block.title | slugify}}">{{block.title}}</h5>
|
17
|
+
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
|
18
|
+
<span aria-hidden="true">×</span>
|
19
|
+
</button>
|
20
|
+
</div>
|
21
|
+
<div class="modal-body text-left">
|
22
|
+
{{block.modal_content | markdownify}}
|
23
|
+
</div>
|
24
|
+
<div class="modal-footer">
|
25
|
+
<button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
|
26
|
+
</div>
|
27
|
+
</div>
|
28
|
+
</div>
|
29
|
+
</div>
|
30
|
+
{% endif %}
|
9
31
|
<div class="col col-12 col-sm-6 col-lg-{{block_width}} block_column">
|
10
32
|
<div class="card h-100 {% if block.background_image %}background_image text-white{% endif %} {% if block.style %}{{block.style}}{% endif %}">
|
11
33
|
{% if block.image %}
|
@@ -25,10 +47,17 @@
|
|
25
47
|
{{block.description | markdownify }}
|
26
48
|
</p>
|
27
49
|
{% endif %}
|
28
|
-
{% if block.
|
29
|
-
|
30
|
-
|
31
|
-
|
50
|
+
{% if block.modal_content %}
|
51
|
+
<!-- Button trigger modal -->
|
52
|
+
<button type="button" class="btn btn-primary" data-toggle="modal" data-target="#blockModal-{{forloop.index}}-{{block.title | slugify}}">
|
53
|
+
More Info
|
54
|
+
</button>
|
55
|
+
{% else %}
|
56
|
+
{% if block.buttons %}
|
57
|
+
{% for button in block.buttons %}
|
58
|
+
{% include flow/button.html object=button %}
|
59
|
+
{% endfor %}
|
60
|
+
{% endif %}
|
32
61
|
{% endif %}
|
33
62
|
</div>
|
34
63
|
{% if block.footer_text %}
|
@@ -1,8 +1,8 @@
|
|
1
1
|
<div class="col col-12 tabbed_content {% if include.object.style %}{{include.object.style}}{% endif %}">
|
2
2
|
<nav>
|
3
|
-
<div class="nav nav-tabs" id="{{
|
3
|
+
<div class="nav nav-tabs" id="{{page.title | slugify}}{{forloop.index}}" role="tablist">
|
4
4
|
{% for tab in include.object.tabs %}
|
5
|
-
<a class="nav-item nav-link {% if forloop.first %}active{% endif %}" href="#{{tab.title | slugify}}
|
5
|
+
<a class="nav-item nav-link {% if forloop.first %}active{% endif %}" href="#{{tab.title | slugify}}" id="{{tab.title | slugify}}{{forloop.index}}-tab"
|
6
6
|
data-toggle="tab" href="#{{tab.title | slugify}}{{forloop.index}}" role="tab"
|
7
7
|
aria-controls="{{tab.title | slugify}}{{forloop.index}}" aria-selected="true">
|
8
8
|
{{tab.title}}
|
@@ -1,53 +1,5 @@
|
|
1
1
|
<footer>
|
2
2
|
<div class="container-fluid">
|
3
|
-
<div class="row main">
|
4
|
-
<div class="container">
|
5
|
-
<div class="row">
|
6
|
-
{% if site.data.footer.display_contact_details %}
|
7
|
-
<div class="col col-12 col-lg-4 contact-details">
|
8
|
-
<a class="email" href="mailto:{{site.email}}?subject={{site.url}}">
|
9
|
-
<h3>{{site.email}}</h3>
|
10
|
-
</a>
|
11
|
-
<address>
|
12
|
-
{% for address-line in site.address %}
|
13
|
-
{{address-line}}<br>
|
14
|
-
{% endfor %}
|
15
|
-
</address>
|
16
|
-
<h3>Follow us</h3>
|
17
|
-
{% include_cached social_media_icons.html %}
|
18
|
-
</div>
|
19
|
-
{% endif %}
|
20
|
-
{% if site.data.footer.middle_column %}
|
21
|
-
<div class="col col-12 col-lg-4 footer-column">
|
22
|
-
<h3>{{site.data.footer.middle_column.title}}</h3>
|
23
|
-
<ul class="list-group">
|
24
|
-
{% if site.data.footer.middle_column.latest_posts %}
|
25
|
-
{% include_cached blog/latest_posts.html %}
|
26
|
-
{% else %}
|
27
|
-
{% for item in site.data.footer.middle_column.items %}
|
28
|
-
<li class="list-group-item">
|
29
|
-
<a href="{{item.url}}">{{item.name}}</a>
|
30
|
-
</li>
|
31
|
-
{% endfor %}
|
32
|
-
{% endif %}
|
33
|
-
</ul>
|
34
|
-
</div>
|
35
|
-
{% endif %}
|
36
|
-
{% if site.data.footer.third_column %}
|
37
|
-
<div class="col col-12 col-lg-4 footer-column">
|
38
|
-
<h3>{{site.data.footer.third_column.title}}</h3>
|
39
|
-
<ul class="list-group">
|
40
|
-
{% for item in site.data.footer.third_column.items %}
|
41
|
-
<li class="list-group-item">
|
42
|
-
<a href="{{item.url}}">{{item.name}}</a>
|
43
|
-
</li>
|
44
|
-
{% endfor %}
|
45
|
-
</ul>
|
46
|
-
</div>
|
47
|
-
{% endif %}
|
48
|
-
</div>
|
49
|
-
</div>
|
50
|
-
</div>
|
51
3
|
<div class="row strip p-t-20 p-b-20">
|
52
4
|
<div class="container">
|
53
5
|
<div class="row">
|
@@ -57,18 +9,19 @@
|
|
57
9
|
<div class="col col-12 text-white text-center">
|
58
10
|
<span class="copyright">Copyright © {{ 'now' | date: "%Y" }} {{site.data.footer.copyright_text}}</span>
|
59
11
|
{% for link in site.data.footer.company_links %}
|
60
|
-
|
61
|
-
|
12
|
+
<span class="coloured-bp">•</span>
|
13
|
+
<a href="{{link.url}}">{{link.name}}</a>
|
62
14
|
{% endfor %}
|
15
|
+
{% include_cached social_media_icons.html %}
|
63
16
|
</div>
|
17
|
+
{% if site.data.footer.footer_brand %}
|
64
18
|
<div class="col col-12 text-white text-center m-t-10">
|
65
|
-
{
|
66
|
-
<
|
67
|
-
|
68
|
-
|
69
|
-
</a>
|
70
|
-
{% endif %}
|
19
|
+
<a href="{{site.url}}/">
|
20
|
+
<img src="{{site.data.footer.footer_brand.logo}}" class="footer-logo mx-auto"
|
21
|
+
alt="{{site.name}} Logo" />
|
22
|
+
</a>
|
71
23
|
</div>
|
24
|
+
{% endif %}
|
72
25
|
</div>
|
73
26
|
</div>
|
74
27
|
</div>
|
data/_sass/app/overrides.scss
CHANGED
@@ -16,7 +16,7 @@ $navbar_text_color: #575757;
|
|
16
16
|
$navbar_bg_color: #fff;
|
17
17
|
// Jumbotron
|
18
18
|
$jumbotron_bg_color: lightgray;
|
19
|
-
$jumbotron_height:
|
19
|
+
$jumbotron_height: 350px;
|
20
20
|
// Typography
|
21
21
|
@font-face {
|
22
22
|
font-display: fallback;
|
@@ -34,88 +34,10 @@ $font-family-base: "Lato";
|
|
34
34
|
$footer_bg_color: #00000b;
|
35
35
|
$footer_strip_bg_color: $secondary;
|
36
36
|
// Flow
|
37
|
-
$flow_row_padding:
|
37
|
+
$flow_row_padding: 10px;
|
38
38
|
$flow_component_padding: 15px;
|
39
39
|
// Cookie Consent
|
40
40
|
$cookie_consent_bg: #000;
|
41
41
|
$cookie_consent_text_color: #fff;
|
42
42
|
// Breadcrumb
|
43
43
|
$breadcrumb_bg_color: #e9ecef;
|
44
|
-
|
45
|
-
|
46
|
-
//Home
|
47
|
-
// $home-page-title-text: #000;
|
48
|
-
// $home-page-main-title-color: $primary;
|
49
|
-
// Footer
|
50
|
-
// $footer-bg-color: #131313;
|
51
|
-
// $footer-text-color: #fff;
|
52
|
-
// Sub footer
|
53
|
-
// $sub-footer-bg-color: #ccc;
|
54
|
-
// $footer-border-color: #272727;
|
55
|
-
// $text-color: rgba(0,0,0,.84);
|
56
|
-
// Navbar
|
57
|
-
// $navbar-text-color: #fff !default;
|
58
|
-
// $navbar-hover-text-color: #fff !default;
|
59
|
-
// $navbar-hover-background-color: $primary !default;
|
60
|
-
// $navbar-height: 66px;
|
61
|
-
// $navbar-inverse-bg: #000;
|
62
|
-
// $navbar-inverse-color: #fff;
|
63
|
-
// $navbar-submenu-bg-color: #3e3e3e !default;
|
64
|
-
// $navbar-submenu-color: #fff !default;
|
65
|
-
// $navbar-dropdown-text-color: $navbar-text-color;
|
66
|
-
// Custom Variables
|
67
|
-
// $cookie-consent-text: #FFF !default;
|
68
|
-
// $cookie-consent-bg: #000 !default;
|
69
|
-
// $cookie-consent-btn-bg: $primary !default;
|
70
|
-
// homepage title text and sub text
|
71
|
-
// $home-page-title-text: #FFF !default; // all title text
|
72
|
-
// $home-page-text: #fff !default; // all title text
|
73
|
-
// $home-page-main-title-color: $home-page-title-text !default; // overide for specific main title text
|
74
|
-
|
75
|
-
|
76
|
-
// Footer Colour
|
77
|
-
// $footer-border-color: #eee !default;
|
78
|
-
// $footer-bg-color: #131313 !default;
|
79
|
-
// $footer-text-color: #fff !default;
|
80
|
-
// $sub-footer-color: #E5E5E5 !default;
|
81
|
-
// Breadcrumb
|
82
|
-
// $breadcrumb-background-color: $primary !default;
|
83
|
-
// $breadcrumb-title-color: #fff !default;
|
84
|
-
// $breadcrumb-span-color: #fff !default;
|
85
|
-
//Contact Page
|
86
|
-
// $contact-banner-text-color: #fff !default;
|
87
|
-
// Featured Image Jumbotron
|
88
|
-
// $featured-image-text-color: #fff !default;
|
89
|
-
|
90
|
-
// Nav Bar Overrides
|
91
|
-
// $navbar-text-color: #ffffff !default;
|
92
|
-
// $navbar-dropdown-text-color: #000 !default;
|
93
|
-
// $blog-panel-title-colour: #fff !default;
|
94
|
-
// Custom Jumbotron colours
|
95
|
-
// $jumbotron-top-color: $navbar-inverse-bg !default;
|
96
|
-
// $jumbotron-bottom-color: $primary !default;
|
97
|
-
// Breadcrumb
|
98
|
-
// $breadcrumb-background-color: $primary !default;
|
99
|
-
// $breadcrumb-title-color: #fff !default;
|
100
|
-
// $breadcrumb-span-color: #fff !default;
|
101
|
-
//Contact Page
|
102
|
-
// $contact-banner-text-color: #fff !default;
|
103
|
-
// Jumbotron Settings
|
104
|
-
// $jumbotron-height: 400px;
|
105
|
-
// $overlay: 0.5;
|
106
|
-
// $jumbotron-font-size-xs: 26px;
|
107
|
-
// $jumbotron-font-size: 32px;
|
108
|
-
// $jumbotron-heading-color: #fff !default;
|
109
|
-
// $jumbotron-sub-title-font-size-xs: 16px;
|
110
|
-
// $jumbotron-sub-title-font-size: 18px;
|
111
|
-
// $jumbotron-sub-title-color: #fff !default;
|
112
|
-
// Tabbed Navbar
|
113
|
-
// $tabbed-nav-bg-color: #ccc !default;
|
114
|
-
// $tabbed-nav-text-color: #000 !default;
|
115
|
-
// $tabbed-nav-hover-color: $primary !default;
|
116
|
-
// // Post tags
|
117
|
-
// $post-tag-bg: #d7d7d7 !default;
|
118
|
-
// $post-tag-color: #000 !default;
|
119
|
-
// $post-tag-border: #8b8b8b !default;
|
120
|
-
// $post-tag-hover-bg: #1f1f1f !default;
|
121
|
-
// $post-tag-hover-color: #fff !default;
|
data/_sass/core/cookies.scss
CHANGED
@@ -63,6 +63,7 @@
|
|
63
63
|
padding: 7px;
|
64
64
|
border-radius: 3px;
|
65
65
|
margin-left: 15px;
|
66
|
+
margin-bottom: 5px;
|
66
67
|
cursor: pointer;
|
67
68
|
transition: all 0.3s ease-in;
|
68
69
|
}
|
@@ -192,3 +193,5 @@
|
|
192
193
|
.btn-toggle.active {
|
193
194
|
background-color: $primary;
|
194
195
|
}
|
196
|
+
#gdpr-cookie-message button, #gdpr-cookie-message button#ihavecookiesBtn {
|
197
|
+
}
|
data/_sass/core/footer.scss
CHANGED
@@ -1,28 +1,20 @@
|
|
1
1
|
#wrapper {
|
2
2
|
footer {
|
3
|
+
i {
|
4
|
+
color: white;
|
5
|
+
&:hover {
|
6
|
+
color: $primary;
|
7
|
+
}
|
8
|
+
}
|
9
|
+
a {
|
10
|
+
color: white;
|
11
|
+
&:hover {
|
12
|
+
color: $primary;
|
13
|
+
}
|
14
|
+
}
|
3
15
|
.main {
|
4
16
|
background-color: $footer_bg_color;
|
5
|
-
|
6
|
-
margin: 30px 0;
|
7
|
-
address {
|
8
|
-
text-align: left;
|
9
|
-
font-size: 18px;
|
10
|
-
color: #fff;
|
11
|
-
}
|
12
|
-
h3 {
|
13
|
-
text-align: left;
|
14
|
-
color :$primary;
|
15
|
-
margin-top: 0px;
|
16
|
-
font-size: 24px;
|
17
|
-
font-weight: bold;
|
18
|
-
}
|
19
|
-
i {
|
20
|
-
color: white;
|
21
|
-
&:hover {
|
22
|
-
color: $primary;
|
23
|
-
}
|
24
|
-
}
|
25
|
-
}
|
17
|
+
margin: 30px 0;
|
26
18
|
.footer-column {
|
27
19
|
margin: 30px 0;
|
28
20
|
h3 {
|
data/_sass/core/jumbotron.scss
CHANGED
@@ -15,13 +15,17 @@
|
|
15
15
|
}
|
16
16
|
}
|
17
17
|
h1 {
|
18
|
-
|
19
|
-
|
18
|
+
margin-bottom:5px;
|
19
|
+
@include media-breakpoint-up(lg){
|
20
|
+
font-size: 3rem;
|
20
21
|
font-weight: 300;
|
21
22
|
line-height: 1.2;
|
22
23
|
|
23
24
|
}
|
24
25
|
}
|
26
|
+
p {
|
27
|
+
margin-bottom:5px;
|
28
|
+
}
|
25
29
|
&.video {
|
26
30
|
background-color: transparent;
|
27
31
|
}
|
data/assets/js/app/main.js
CHANGED
@@ -1,7 +1,7 @@
|
|
1
|
-
$(document).ready(function() {
|
1
|
+
$(document).ready(function () {
|
2
2
|
// Clipboard JS
|
3
3
|
if ($("div.highlight").length > 0) {
|
4
|
-
$("div.highlight").each(function(index) {
|
4
|
+
$("div.highlight").each(function (index) {
|
5
5
|
var uniqueId = "highlight" + index;
|
6
6
|
$(this).attr("id", uniqueId);
|
7
7
|
var copyBtn =
|
@@ -13,10 +13,10 @@ $(document).ready(function() {
|
|
13
13
|
copyBtn +=
|
14
14
|
'<img src="/assets/images/clipboard.svg" width="13" alt="Copy to clipboard"></button>';
|
15
15
|
$(this).append(copyBtn);
|
16
|
-
(function() {
|
16
|
+
(function () {
|
17
17
|
new ClipboardJS("#copyBtn" + index);
|
18
18
|
})();
|
19
|
-
$("#copyBtn" + index).on("click", function() {
|
19
|
+
$("#copyBtn" + index).on("click", function () {
|
20
20
|
$(this)
|
21
21
|
.attr("title", "Copied!")
|
22
22
|
.tooltip("_fixTitle")
|
@@ -40,11 +40,11 @@ $(document).ready(function() {
|
|
40
40
|
lazyLoadEager: 0,
|
41
41
|
loop: false,
|
42
42
|
lazyLoad: true,
|
43
|
-
dots: true
|
43
|
+
dots: true,
|
44
44
|
});
|
45
45
|
}
|
46
46
|
if ($(".owl-carousel.slider_block").length > 0) {
|
47
|
-
$(".owl-carousel.slider_block").each(function(index) {
|
47
|
+
$(".owl-carousel.slider_block").each(function (index) {
|
48
48
|
// Set Default values for the responsive items
|
49
49
|
var xs_items = 1;
|
50
50
|
var sm_items = 2;
|
@@ -91,20 +91,20 @@ $(document).ready(function() {
|
|
91
91
|
responsive: {
|
92
92
|
// breakpoint from 0 up
|
93
93
|
0: {
|
94
|
-
items: xs_items
|
94
|
+
items: xs_items,
|
95
95
|
},
|
96
96
|
// breakpoint from 480 up
|
97
97
|
768: {
|
98
|
-
items: sm_items
|
98
|
+
items: sm_items,
|
99
99
|
},
|
100
100
|
// breakpoint from 768 up
|
101
101
|
992: {
|
102
|
-
items: md_items
|
102
|
+
items: md_items,
|
103
103
|
},
|
104
104
|
1200: {
|
105
|
-
items: lg_items
|
106
|
-
}
|
107
|
-
}
|
105
|
+
items: lg_items,
|
106
|
+
},
|
107
|
+
},
|
108
108
|
});
|
109
109
|
});
|
110
110
|
}
|
@@ -113,7 +113,7 @@ $(document).ready(function() {
|
|
113
113
|
if ($(".double-scroll").length > 0) {
|
114
114
|
$(".double-scroll").doubleScroll({
|
115
115
|
resetOnWindowResize: true,
|
116
|
-
onlyIfScroll: true
|
116
|
+
onlyIfScroll: true,
|
117
117
|
});
|
118
118
|
}
|
119
119
|
// Theme navbar setup
|
@@ -149,15 +149,17 @@ $(document).ready(function() {
|
|
149
149
|
}
|
150
150
|
}
|
151
151
|
navbar();
|
152
|
-
$(window).scroll(function() {
|
152
|
+
$(window).scroll(function () {
|
153
153
|
navbar();
|
154
154
|
});
|
155
155
|
|
156
156
|
// Multi-level dropdowns
|
157
|
-
$(".navbar .dropdown-menu > li:not(.dropdown-item)").on("click", function(
|
157
|
+
$(".navbar .dropdown-menu > li:not(.dropdown-item)").on("click", function (
|
158
|
+
e
|
159
|
+
) {
|
158
160
|
e.stopPropagation();
|
159
161
|
});
|
160
|
-
$(".navbar .dropdown-item").on("click", function(e) {
|
162
|
+
$(".navbar .dropdown-item").on("click", function (e) {
|
161
163
|
var $el = $(this).children(".dropdown-toggle");
|
162
164
|
var $parent = $el.offsetParent(".dropdown-menu");
|
163
165
|
if (!$parent.parent().hasClass("navbar-nav")) {
|
@@ -166,10 +168,7 @@ $(document).ready(function() {
|
|
166
168
|
$el.next().removeClass("show");
|
167
169
|
$el.next().css({ top: -999, left: -999 });
|
168
170
|
} else {
|
169
|
-
$parent
|
170
|
-
.parent()
|
171
|
-
.find(".show")
|
172
|
-
.removeClass("show");
|
171
|
+
$parent.parent().find(".show").removeClass("show");
|
173
172
|
$parent.addClass("show");
|
174
173
|
$el.next().addClass("show");
|
175
174
|
$el
|
@@ -182,13 +181,11 @@ $(document).ready(function() {
|
|
182
181
|
});
|
183
182
|
|
184
183
|
// Reset forms when bootstrap modal closes.
|
185
|
-
$(".modal").on("hidden.bs.modal", function() {
|
186
|
-
$(this)
|
187
|
-
.find("form")[0]
|
188
|
-
.reset();
|
184
|
+
$(".modal").on("hidden.bs.modal", function () {
|
185
|
+
$(this).find("form")[0].reset();
|
189
186
|
});
|
190
187
|
// Stacked Navbar
|
191
|
-
$("#stacked-nav-bar").on("hidden.bs.collapse", function() {
|
188
|
+
$("#stacked-nav-bar").on("hidden.bs.collapse", function () {
|
192
189
|
$(".nav-pills").removeClass("nav-stacked");
|
193
190
|
});
|
194
191
|
// Scrolling sticking on IOS7 (Bug fix)
|
@@ -196,7 +193,7 @@ $(document).ready(function() {
|
|
196
193
|
$("html").addClass("ios7");
|
197
194
|
}
|
198
195
|
// Open External links in a new tab
|
199
|
-
$("a").each(function() {
|
196
|
+
$("a").each(function () {
|
200
197
|
var a = new RegExp("/" + window.location.host + "/");
|
201
198
|
if (!a.test(this.href)) {
|
202
199
|
if ($(this).attr("target") != "_self") {
|
@@ -204,16 +201,29 @@ $(document).ready(function() {
|
|
204
201
|
}
|
205
202
|
}
|
206
203
|
});
|
207
|
-
|
208
|
-
|
209
|
-
|
210
|
-
|
204
|
+
|
205
|
+
if ($(".nav-tabs").length > 0) {
|
206
|
+
let url = location.href.replace(/\/$/, "");
|
207
|
+
|
208
|
+
if (location.hash) {
|
209
|
+
const hash = url.split("#");
|
210
|
+
$('.nav-tabs a[href="#' + hash[1] + '"]').tab("show");
|
211
|
+
url = location.href.replace(/\/#/, "#");
|
212
|
+
history.replaceState(null, null, url);
|
213
|
+
setTimeout(() => {
|
214
|
+
$(window).scrollTop(0);
|
215
|
+
}, 400);
|
216
|
+
}
|
217
|
+
|
218
|
+
$('a[data-toggle="tab"]').on("click", function () {
|
219
|
+
let newUrl;
|
220
|
+
const hash = $(this).attr("href");
|
221
|
+
newUrl = url.split("#")[0] + hash;
|
222
|
+
history.replaceState(null, null, newUrl);
|
223
|
+
});
|
211
224
|
}
|
212
|
-
// Change hash for page-reload
|
213
|
-
$(".nav-tabs a").on("shown", function(e) {
|
214
|
-
window.location.hash = e.target.hash.replace("#", "#" + prefix);
|
215
|
-
});
|
216
225
|
|
226
|
+
// COOKIES CONFIG
|
217
227
|
// Cookie Consent Setup
|
218
228
|
if ($("meta[name=analytics_code]")) {
|
219
229
|
var privacy_url = $("meta[name=privacy_url]").attr("content");
|
@@ -230,29 +240,36 @@ $(document).ready(function() {
|
|
230
240
|
title: cookies_popup_title,
|
231
241
|
link: privacy_url,
|
232
242
|
moreInfoLabel: "View our Privacy Policy",
|
243
|
+
cookieLink: "/cookies/",
|
244
|
+
cookieLabel: "Manage your cookies",
|
245
|
+
links: [
|
246
|
+
{ url: "/cookies/", text: "Cookies Policy" },
|
247
|
+
{ url: "/privacy", text: "Privacy Policy" },
|
248
|
+
],
|
233
249
|
delay: 1000,
|
234
|
-
acceptBtnLabel: "Accept
|
235
|
-
|
250
|
+
acceptBtnLabel: "Accept All Cookies",
|
251
|
+
analyticsChecked: true,
|
236
252
|
message: cookies_popup_description,
|
237
253
|
cookieTypes: [
|
238
254
|
{
|
239
255
|
type: "Analytics",
|
240
256
|
value: "analytics",
|
241
|
-
|
242
|
-
|
257
|
+
checked: true,
|
258
|
+
description: "Cookies related to site visits, browser types, etc.",
|
259
|
+
},
|
243
260
|
],
|
244
|
-
onAccept: function() {
|
261
|
+
onAccept: function () {
|
245
262
|
init_ga();
|
246
|
-
}
|
263
|
+
},
|
247
264
|
};
|
248
265
|
// Enabled Google Analytics if cookie to allow us to collect is set.
|
249
266
|
function init_ga() {
|
250
267
|
if ($.fn.ihavecookies.preference("analytics")) {
|
251
|
-
(function(i, s, o, g, r, a, m) {
|
268
|
+
(function (i, s, o, g, r, a, m) {
|
252
269
|
i["GoogleAnalyticsObject"] = r;
|
253
270
|
(i[r] =
|
254
271
|
i[r] ||
|
255
|
-
function() {
|
272
|
+
function () {
|
256
273
|
(i[r].q = i[r].q || []).push(arguments);
|
257
274
|
}),
|
258
275
|
(i[r].l = 1 * new Date());
|
@@ -281,8 +298,16 @@ $(document).ready(function() {
|
|
281
298
|
var analytics_toggle = $("#analytics_toggle");
|
282
299
|
if ($.fn.ihavecookies.preference("analytics")) {
|
283
300
|
analytics_toggle.addClass("active");
|
301
|
+
options.cookieTypes = [
|
302
|
+
{
|
303
|
+
type: "Analytics",
|
304
|
+
value: "analytics",
|
305
|
+
checked: false,
|
306
|
+
description: "Cookies related to site visits, browser types, etc.",
|
307
|
+
},
|
308
|
+
];
|
284
309
|
}
|
285
|
-
analytics_toggle.on("click", function() {
|
310
|
+
analytics_toggle.on("click", function () {
|
286
311
|
$.removeCookie("_ga");
|
287
312
|
$.removeCookie("_ga", { path: "/" });
|
288
313
|
$.removeCookie("_gid");
|
@@ -293,14 +318,13 @@ $(document).ready(function() {
|
|
293
318
|
$.removeCookie("cookieControlPrefs", { path: "/" });
|
294
319
|
$.removeCookie("cookieControl");
|
295
320
|
$.removeCookie("cookieControl", { path: "/" });
|
296
|
-
options["
|
297
|
-
|
298
|
-
$("body").ihavecookies(options);
|
321
|
+
options["acceptBtnLabel"] = "Update Cookies";
|
322
|
+
$("body").ihavecookies(options, "reinit");
|
299
323
|
});
|
300
324
|
}
|
301
325
|
$("body").ihavecookies(options);
|
302
326
|
}
|
303
|
-
$(function() {
|
327
|
+
$(function () {
|
304
328
|
$('[data-toggle="tooltip"]').tooltip();
|
305
329
|
});
|
306
330
|
|
@@ -308,7 +332,7 @@ $(document).ready(function() {
|
|
308
332
|
var file_path = $("#post_search").data("file-path");
|
309
333
|
|
310
334
|
$("#results-container").hide();
|
311
|
-
$("#search-input").keyup(function() {
|
335
|
+
$("#search-input").keyup(function () {
|
312
336
|
if ($("#search-input").val().length == 0) {
|
313
337
|
$("#results-container").fadeOut("fast");
|
314
338
|
$(".close_search").hide();
|
@@ -317,7 +341,7 @@ $(document).ready(function() {
|
|
317
341
|
$(".close_search").show();
|
318
342
|
}
|
319
343
|
});
|
320
|
-
$(".close_search").click(function(e) {
|
344
|
+
$(".close_search").click(function (e) {
|
321
345
|
e.preventDefault();
|
322
346
|
$("#search-input").val("");
|
323
347
|
$("#results-container").fadeOut("fast");
|
@@ -331,9 +355,9 @@ $(document).ready(function() {
|
|
331
355
|
searchResultTemplate:
|
332
356
|
'<li class="media flex-row"><picture><img class="lazyload mr-3 img-thumbnail suggested_post_thumb search_result_img" src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==" data-src="{image}"></picture><div class="media-body"><a href="{url}"><h5 class="mt-0 mb-1">{title}</h5><em class="suggested_post_date">{date}</em><p>{description}</p></a></div></li>',
|
333
357
|
json: file_path,
|
334
|
-
success: function(data) {
|
358
|
+
success: function (data) {
|
335
359
|
console.log(data);
|
336
|
-
}
|
360
|
+
},
|
337
361
|
});
|
338
362
|
}
|
339
363
|
});
|
@@ -7,7 +7,7 @@
|
|
7
7
|
* http://www.opensource.org/licenses/mit-license.php
|
8
8
|
*
|
9
9
|
*/
|
10
|
-
(function($) {
|
10
|
+
(function ($) {
|
11
11
|
/*
|
12
12
|
|--------------------------------------------------------------------------
|
13
13
|
| Cookie Message
|
@@ -19,7 +19,7 @@
|
|
19
19
|
| @param event - 'reinit' to reopen the cookie message
|
20
20
|
|
|
21
21
|
*/
|
22
|
-
$.fn.ihavecookies = function(options, event) {
|
22
|
+
$.fn.ihavecookies = function (options, event) {
|
23
23
|
var $element = $(this);
|
24
24
|
|
25
25
|
// Set defaults
|
@@ -30,19 +30,19 @@
|
|
30
30
|
type: "Site Preferences",
|
31
31
|
value: "preferences",
|
32
32
|
description:
|
33
|
-
"These are cookies that are related to your site preferences, e.g. remembering your username, site colours, etc."
|
33
|
+
"These are cookies that are related to your site preferences, e.g. remembering your username, site colours, etc.",
|
34
34
|
},
|
35
35
|
{
|
36
36
|
type: "Analytics",
|
37
37
|
value: "analytics",
|
38
|
-
description: "Cookies related to site visits, browser types, etc."
|
38
|
+
description: "Cookies related to site visits, browser types, etc.",
|
39
39
|
},
|
40
40
|
{
|
41
41
|
type: "Marketing",
|
42
42
|
value: "marketing",
|
43
43
|
description:
|
44
|
-
"Cookies related to marketing, e.g. newsletters, social media, etc"
|
45
|
-
}
|
44
|
+
"Cookies related to marketing, e.g. newsletters, social media, etc",
|
45
|
+
},
|
46
46
|
],
|
47
47
|
title: "Cookies & Privacy",
|
48
48
|
message:
|
@@ -58,8 +58,8 @@
|
|
58
58
|
fixedCookieTypeLabel: "Necessary",
|
59
59
|
fixedCookieTypeDesc:
|
60
60
|
"These are cookies that are essential for the website to work correctly.",
|
61
|
-
onAccept: function() {},
|
62
|
-
uncheckBoxes: false
|
61
|
+
onAccept: function () {},
|
62
|
+
uncheckBoxes: false,
|
63
63
|
},
|
64
64
|
options
|
65
65
|
);
|
@@ -80,18 +80,25 @@
|
|
80
80
|
|
81
81
|
// Generate list of cookie type checkboxes
|
82
82
|
preferences = JSON.parse(myCookiePrefs);
|
83
|
-
$.each(settings.cookieTypes, function(index, field) {
|
83
|
+
$.each(settings.cookieTypes, function (index, field) {
|
84
84
|
if (field.type !== "" && field.value !== "") {
|
85
85
|
var cookieTypeDescription = "";
|
86
86
|
if (field.description !== false) {
|
87
87
|
cookieTypeDescription = ' title="' + field.description + '"';
|
88
88
|
}
|
89
|
+
var cookieChecked = "";
|
90
|
+
if (field.checked === true) {
|
91
|
+
cookieChecked = "checked";
|
92
|
+
}
|
89
93
|
cookieTypes +=
|
90
|
-
'<li><input
|
94
|
+
'<li><input type="checkbox" id="gdpr-cookietype-' +
|
91
95
|
field.value +
|
92
96
|
'" name="gdpr[]" value="' +
|
93
97
|
field.value +
|
94
|
-
'" data-auto="off"
|
98
|
+
'" data-auto="off" ' +
|
99
|
+
cookieTypeDescription +
|
100
|
+
cookieChecked +
|
101
|
+
'> <label class="cookieCheckboxLabel" for="gdpr-cookietype-' +
|
95
102
|
field.value +
|
96
103
|
'"' +
|
97
104
|
cookieTypeDescription +
|
@@ -107,11 +114,21 @@
|
|
107
114
|
settings.title +
|
108
115
|
"</h4><p>" +
|
109
116
|
settings.message +
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
117
|
+
"<br/>";
|
118
|
+
|
119
|
+
for (i = 0; i < settings.links.length; i++) {
|
120
|
+
cookieMessage +=
|
121
|
+
'<a href="' +
|
122
|
+
settings.links[i].url +
|
123
|
+
'">' +
|
124
|
+
settings.links[i].text +
|
125
|
+
"</a> ";
|
126
|
+
if (settings.links.length > 1 && i < settings.links.length - 1) {
|
127
|
+
cookieMessage += " - ";
|
128
|
+
}
|
129
|
+
}
|
130
|
+
cookieMessage +=
|
131
|
+
'<div id="gdpr-cookie-types" style="display:none;"><h5>' +
|
115
132
|
settings.cookieTypesTitle +
|
116
133
|
"</h5><ul>" +
|
117
134
|
cookieTypes +
|
@@ -120,34 +137,30 @@
|
|
120
137
|
'</button><button id="gdpr-cookie-advanced" type="button">' +
|
121
138
|
settings.advancedBtnLabel +
|
122
139
|
"</button></p></div>";
|
123
|
-
setTimeout(function() {
|
140
|
+
setTimeout(function () {
|
124
141
|
$($element).append(cookieMessage);
|
125
142
|
$("#gdpr-cookie-message")
|
126
143
|
.hide()
|
127
|
-
.fadeIn("slow", function() {
|
144
|
+
.fadeIn("slow", function () {
|
128
145
|
// If reinit'ing, open the advanced section of message
|
129
146
|
// and re-check all previously selected options.
|
130
147
|
if (event == "reinit") {
|
131
148
|
$("#gdpr-cookie-advanced").trigger("click");
|
132
|
-
// $.each(preferences, function(index, field) {
|
133
|
-
// $("input#gdpr-cookietype-" + field).prop("checked", true);
|
134
|
-
// });
|
135
149
|
}
|
136
150
|
});
|
137
151
|
}, settings.delay);
|
138
|
-
|
152
|
+
// Make sure the analytics checkbox is toggled on init based on settings provided.
|
139
153
|
// When accept button is clicked drop cookie
|
140
|
-
$("body").on("click", "#gdpr-cookie-accept", function() {
|
154
|
+
$("body").on("click", "#gdpr-cookie-accept", function () {
|
141
155
|
// Set cookie
|
142
156
|
dropCookie(true, settings.expires);
|
143
157
|
|
144
158
|
// If 'data-auto' is set to ON, tick all checkboxes because
|
145
159
|
// the user hasn't clicked the customise cookies button
|
146
160
|
$('input[name="gdpr[]"][data-auto="on"]').prop("checked", true);
|
147
|
-
|
148
161
|
// Save users cookie preferences (in a cookie!)
|
149
162
|
var prefs = [];
|
150
|
-
$.each($('input[name="gdpr[]"]').serializeArray(), function(i, field) {
|
163
|
+
$.each($('input[name="gdpr[]"]').serializeArray(), function (i, field) {
|
151
164
|
prefs.push(field.value);
|
152
165
|
});
|
153
166
|
setCookie(
|
@@ -161,14 +174,9 @@
|
|
161
174
|
});
|
162
175
|
|
163
176
|
// Toggle advanced cookie options
|
164
|
-
$("body").on("click", "#gdpr-cookie-advanced", function() {
|
165
|
-
|
166
|
-
|
167
|
-
// select the cookies they want to accept.
|
168
|
-
$('input[name="gdpr[]"]:not(:disabled)')
|
169
|
-
.attr("data-auto", "off")
|
170
|
-
.prop("checked", settings.analyticsChecked);
|
171
|
-
$("#gdpr-cookie-types").slideDown("fast", function() {
|
177
|
+
$("body").on("click", "#gdpr-cookie-advanced", function () {
|
178
|
+
$("#gdpr-cookie-accept").html("Accept Selected Cookies");
|
179
|
+
$("#gdpr-cookie-types").slideDown("fast", function () {
|
172
180
|
$("#gdpr-cookie-advanced").prop("disabled", true);
|
173
181
|
});
|
174
182
|
});
|
@@ -187,13 +195,13 @@
|
|
187
195
|
};
|
188
196
|
|
189
197
|
// Method to get cookie value
|
190
|
-
$.fn.ihavecookies.cookie = function() {
|
198
|
+
$.fn.ihavecookies.cookie = function () {
|
191
199
|
var preferences = getCookie("cookieControlPrefs");
|
192
200
|
return JSON.parse(preferences);
|
193
201
|
};
|
194
202
|
|
195
203
|
// Method to check if user cookie preference exists
|
196
|
-
$.fn.ihavecookies.preference = function(cookieTypeValue) {
|
204
|
+
$.fn.ihavecookies.preference = function (cookieTypeValue) {
|
197
205
|
var control = getCookie("cookieControl");
|
198
206
|
var preferences = getCookie("cookieControlPrefs");
|
199
207
|
preferences = JSON.parse(preferences);
|
@@ -214,9 +222,9 @@
|
|
214
222
|
| Function to drop the cookie with a boolean value of true.
|
215
223
|
|
|
216
224
|
*/
|
217
|
-
var dropCookie = function(value, expiryDays) {
|
225
|
+
var dropCookie = function (value, expiryDays) {
|
218
226
|
setCookie("cookieControl", value, expiryDays);
|
219
|
-
$("#gdpr-cookie-message").fadeOut("fast", function() {
|
227
|
+
$("#gdpr-cookie-message").fadeOut("fast", function () {
|
220
228
|
$(this).remove();
|
221
229
|
});
|
222
230
|
};
|
@@ -229,7 +237,7 @@
|
|
229
237
|
| Sets cookie with 'name' and value of 'value' for 'expiry_days'.
|
230
238
|
|
|
231
239
|
*/
|
232
|
-
var setCookie = function(name, value, expiry_days) {
|
240
|
+
var setCookie = function (name, value, expiry_days) {
|
233
241
|
var d = new Date();
|
234
242
|
d.setTime(d.getTime() + expiry_days * 24 * 60 * 60 * 1000);
|
235
243
|
var expires = "expires=" + d.toUTCString();
|
@@ -245,7 +253,7 @@
|
|
245
253
|
| Gets cookie called 'name'.
|
246
254
|
|
|
247
255
|
*/
|
248
|
-
var getCookie = function(name) {
|
256
|
+
var getCookie = function (name) {
|
249
257
|
var cookie_name = name + "=";
|
250
258
|
var decodedCookie = decodeURIComponent(document.cookie);
|
251
259
|
var ca = decodedCookie.split(";");
|
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
|
+
version: 6.0.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kyle Kirkby
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-04-
|
11
|
+
date: 2020-04-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jekyll
|