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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/_includes/js/program.js +19 -24
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 14df4316c5e862e8c82f79e0f5a3f72bd853e887de0b682a2c39d3f4d2c1c679
4
- data.tar.gz: d93e7c6ffd7295f70437889e1dfa412ff4016847a0d5dff78bb6c7536cd38868
3
+ metadata.gz: 5eaf0ba65c7a4aad2d1e450d1294efc06a7d222c807eb6782103e3eb3cbac830
4
+ data.tar.gz: 33e49d3335e76ac0ceada913df9da5ea4cb02dd5fed40cefbdb2c508dd91f168
5
5
  SHA512:
6
- metadata.gz: 8081fcab1154116b7b183fb18babfeed96377df783fa14ce6a9e625ad7144bd07ae11fa3d4f2aaa0192809f8d4f09c7b85a8e88d2378ae8274b46e0cf3034985
7
- data.tar.gz: 8ed5663bfedc430cd1f23660f3fe2144e1fd4751024c5872bb82682c0346a943335016cee0ecfc1247d2020a905a67d52b7e17a60d3d610612b2eccb0fb3338b
6
+ metadata.gz: c11d969dd2d80a75e59dc002caffd6d9df92f9aadf038aa0e15de83a80adea141b21a4b227f83b10b90411a5a7b36f037bc03bc7e65baddf69c7bfa2f5eda63e
7
+ data.tar.gz: 5c6947f7f7c3761d64e00e006af41e51f78986370a57130969786df0caab71f5f3c684cbfcbe335542735fc39436af388b8e7f9e991243a1b21ce3a9badb5ec8
@@ -6,33 +6,28 @@ window.conference.program = (() => {
6
6
  };
7
7
 
8
8
  const init = () => {
9
- if ($("#day-list")) {
10
- // Switch to day if page load with hash
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
- // Switch to day if today
17
- else {
18
- const now = new Date();
19
- const tsNow = Math.floor(now.getTime() / 1000);
20
-
21
- $('a[data-toggle="tab"]').each(function () {
22
- const tsMidnight = new Date($(this).data("ts") * 1000);
23
-
24
- if (tsMidnight <= tsNow < tsMidnight + 24 * 60 * 60) {
25
- $(this).tab("show");
26
- updateHash(this.hash);
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.1
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-08-09 00:00:00.000000000 Z
11
+ date: 2025-11-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll