jekyll-theme-conference 3.7.1 → 3.7.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/_includes/js/program.js +19 -24
- 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: 5eaf0ba65c7a4aad2d1e450d1294efc06a7d222c807eb6782103e3eb3cbac830
|
|
4
|
+
data.tar.gz: 33e49d3335e76ac0ceada913df9da5ea4cb02dd5fed40cefbdb2c508dd91f168
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: c11d969dd2d80a75e59dc002caffd6d9df92f9aadf038aa0e15de83a80adea141b21a4b227f83b10b90411a5a7b36f037bc03bc7e65baddf69c7bfa2f5eda63e
|
|
7
|
+
data.tar.gz: 5c6947f7f7c3761d64e00e006af41e51f78986370a57130969786df0caab71f5f3c684cbfcbe335542735fc39436af388b8e7f9e991243a1b21ce3a9badb5ec8
|
data/_includes/js/program.js
CHANGED
|
@@ -6,33 +6,28 @@ window.conference.program = (() => {
|
|
|
6
6
|
};
|
|
7
7
|
|
|
8
8
|
const init = () => {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
const hash = window.location.hash;
|
|
12
|
-
if (hash) {
|
|
13
|
-
$('#day-list a[href="' + hash + '"]').tab("show");
|
|
14
|
-
}
|
|
9
|
+
const $dayList = $('#day-list');
|
|
10
|
+
if (!$dayList.length) return;
|
|
15
11
|
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
});
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
// Add current selected day as hash to URL while keeping current scrolling position
|
|
32
|
-
$('a[data-toggle="tab"]').on("shown.bs.tab", function () {
|
|
33
|
-
updateHash(this.hash);
|
|
12
|
+
const hash = window.location.hash;
|
|
13
|
+
if (hash) {
|
|
14
|
+
$(`a[data-toggle="tab"][href="${hash}"]`).tab('show');
|
|
15
|
+
} else {
|
|
16
|
+
const tsNow = Date.now() / 1000 | 0;
|
|
17
|
+
$('a[data-toggle="tab"]').each(function () {
|
|
18
|
+
const tsMidnight = $(this).data("ts");
|
|
19
|
+
if (tsMidnight && tsMidnight <= tsNow && tsNow < tsMidnight + 24 * 60 * 60) {
|
|
20
|
+
$(this).tab('show');
|
|
21
|
+
updateHash(this.hash);
|
|
22
|
+
return false;
|
|
23
|
+
}
|
|
34
24
|
});
|
|
35
25
|
}
|
|
26
|
+
|
|
27
|
+
// Add current selected day as hash to URL while keeping current scrolling position
|
|
28
|
+
$('a[data-toggle="tab"]').on('shown.bs.tab', function () {
|
|
29
|
+
updateHash(this.hash);
|
|
30
|
+
});
|
|
36
31
|
};
|
|
37
32
|
|
|
38
33
|
return {
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: jekyll-theme-conference
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 3.7.
|
|
4
|
+
version: 3.7.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Lorenz Schmid
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2025-
|
|
11
|
+
date: 2025-11-03 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: jekyll
|