jekyll-theme-profile 1.8.4 → 1.8.6

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 170036b5178432b2e86e982346a8895b8758af76ce6d06d51f368c39dd78a075
4
- data.tar.gz: 625304ca5346c58c02731398c47088fad3f623f1acd72e9d2e18b14f7299924f
3
+ metadata.gz: 4c338ecc61d0ef11ef731ad95b3dc73329e4161824080d94038b6b040d66c44c
4
+ data.tar.gz: 0cc76009af611f8d86b984feb46399501ecb7fddf8259de967f64f01cde81098
5
5
  SHA512:
6
- metadata.gz: 36dfb3861cbaddaf2e2ff6289b9b06091a04b15553c641fd5a5293c29fd7386196a1a5a93eb33fd47dd1ec00a651a330ce4a08b63e19f214916e1cd88a483ff1
7
- data.tar.gz: 7f0366544fef23ce6305970c1765271180e1e7d1f1b373fe70617faa6df4c62f22817e13c8e88af4ea4dbb7327e75ee374fdaf7f43fee8618fa924bf09827bea
6
+ metadata.gz: aad022b02d14dccb49e37e9426d0ad969c18bcdd8b9bcb80e8b97baa46335a52edbac218b170ef54f99c910549192a43772a0fd9f32e0131d805f74be6e9a885
7
+ data.tar.gz: da4406630319fba0bddd46bf83bd5b072d12e83aae62d0b7fb5b87b27d65dc6cc9508c8fd0391114831e524c55da55287889fea452968df40e32f1aeb6ccc816
data/README.md CHANGED
@@ -99,7 +99,7 @@ jobs:
99
99
  JEKYLL_ENV: production
100
100
  JEKYLL_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
101
101
  - name: Upload artifact
102
- uses: actions/upload-pages-artifact@v1
102
+ uses: actions/upload-pages-artifact@v3
103
103
 
104
104
  # Deployment job
105
105
  deploy:
@@ -112,7 +112,7 @@ jobs:
112
112
  steps:
113
113
  - name: Deploy to GitHub Pages
114
114
  id: deployment
115
- uses: actions/deploy-pages@v2
115
+ uses: actions/deploy-pages@v4
116
116
 
117
117
  ```
118
118
 
@@ -22,9 +22,8 @@
22
22
  <div class="col-12 col-md-7">
23
23
  <div class="ml-5 mt-5">
24
24
  {%- if post.video %}
25
- <div class="image-container mb-5">
26
- <iframe height="490" width="100%" src="{{ post.video }}" frameborder="0" gesture="media"
27
- allow="encrypted-media; fullscreen; picture-in-picture" allowfullscreen></iframe>
25
+ <div id="Timeline-video-container" class="image-container mb-5">
26
+ <iframe id="Timeline-video" src="{{ post.video }}" frameborder="0" height="inherited" width="inherited"></iframe>
28
27
  </div>
29
28
  {%- elsif post.image %}
30
29
  <div class="image-container mb-5">
@@ -24,7 +24,9 @@ document.addEventListener('DOMContentLoaded', function () {
24
24
  date.setTime(date.getTime() + (days * 24 * 60 * 60 * 1000));
25
25
  expires = "; expires=" + date.toUTCString();
26
26
  }
27
- document.cookie = name + "=" + (value || "") + expires + "; path=/";
27
+
28
+ // Updated cookie settings
29
+ document.cookie = name + "=" + (value || "") + expires + "; path=/; samesite=Strict; secure";
28
30
  }
29
31
 
30
32
  function getCookie(name) {
@@ -58,6 +60,7 @@ document.addEventListener('DOMContentLoaded', function () {
58
60
  }
59
61
 
60
62
  function updateThemeIcon(nextMode) {
63
+ var nextIcon;
61
64
  if (nextMode === 'dark') {
62
65
  nextIcon = 'moon';
63
66
  } else if (nextMode === 'light') {
@@ -1,29 +1,49 @@
1
- // Fix timeline anchors
2
1
  document.addEventListener("DOMContentLoaded", function () {
3
- console.log("Timeline script is running!");
2
+ console.log("Timeline script is running!");
4
3
 
5
- function updateTopBarHeight() {
6
- // Recalculate topBarHeight
7
- var topBarElement = document.querySelector('.topbar');
8
- topBarHeight = topBarElement ? topBarElement.offsetHeight : 0;
4
+ function updateTopBarHeight() {
5
+ // Recalculate topBarHeight
6
+ var topBarElement = document.querySelector('.topbar');
7
+ topBarHeight = topBarElement ? topBarElement.offsetHeight : 0;
9
8
 
10
- // Update styles for each timeline title
11
- timelineTitles.forEach(function (title) {
12
- title.style.top = topBarHeight + "px";
13
- });
14
- }
9
+ // Update styles for each timeline title
10
+ timelineTitles.forEach(function (title) {
11
+ title.style.top = topBarHeight + "px";
12
+ });
13
+ console.log("Updated offsetHeight!");
14
+ }
15
15
 
16
- // Default topBarHeight to 0 if .topbar doesn't exist
17
- var topBarHeight = 0;
18
- var timelineTitles = document.querySelectorAll(".TimelineItem-title");
16
+ // Set dimensions for all iframes with the same ID
17
+ function setIframeDimensions() {
18
+ var iframes = document.querySelectorAll('iframe[id="Timeline-video"]');
19
+ console.log(iframes.length);
20
+ var container = document.getElementById('Timeline-video-container');
19
21
 
20
- // Initial update
21
- updateTopBarHeight();
22
+ // Get the container's dimensions
23
+ var containerWidth = container.offsetWidth;
24
+ var containerHeight = container.offsetHeight;
25
+ if (iframes) {
26
+ iframes.forEach(function (iframe) {
27
+ iframe.style.width = containerWidth + 'px';
28
+ iframe.style.height = containerHeight + 'px';
29
+ });
30
+ console.log("Updated iframes width x height: " + containerWidth + " x " + containerHeight);
31
+ }
32
+ }
22
33
 
23
- // Add event listener for window resize
24
- window.addEventListener('resize', function () {
25
- // Call the function to update topBarHeight and adjust styles
26
- console.log("Updated height!");
27
- updateTopBarHeight();
28
- });
34
+ // Default topBarHeight to 0 if .topbar doesn't exist
35
+ var topBarHeight = 0;
36
+ var timelineTitles = document.querySelectorAll(".TimelineItem-title");
37
+
38
+ // Initial update
39
+ updateTopBarHeight();
40
+ setIframeDimensions();
41
+
42
+ // Add event listener for window resize
43
+ window.addEventListener('resize', function () {
44
+ // Call the function to update topBarHeight and adjust styles
45
+ console.log("resizing elements");
46
+ updateTopBarHeight();
47
+ setIframeDimensions();
48
+ });
29
49
  });
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll-theme-profile
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.8.4
4
+ version: 1.8.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Allison Thackston
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-12-18 00:00:00.000000000 Z
11
+ date: 2023-12-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll