@iris.interactive/handcook 2.9.39 → 2.9.41

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.
package/README.md CHANGED
@@ -1,5 +1,5 @@
1
1
  # Welcome to HandCook 👨‍🍳
2
- ![Version](https://img.shields.io/badge/version-2.9.39-blue.svg?cacheSeconds=2592000)
2
+ ![Version](https://img.shields.io/badge/version-2.9.41-blue.svg?cacheSeconds=2592000)
3
3
  ![Prerequisite](https://img.shields.io/badge/node-%3E%3D%2012.14.0-blue.svg)
4
4
  [![License: UNLICENSED](https://img.shields.io/badge/License-UNLICENSED-yellow.svg)](#)
5
5
  [![Twitter: captain\_iris](https://img.shields.io/twitter/follow/captain\_iris.svg?style=social)](https://twitter.com/captain\_iris)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@iris.interactive/handcook",
3
- "version": "2.9.39",
3
+ "version": "2.9.41",
4
4
  "description": "The web cooking by IRIS Interactive",
5
5
  "main": "./public/scripts/index.js",
6
6
  "scripts": {
package/public/index.html CHANGED
@@ -150,7 +150,7 @@
150
150
  </ul>
151
151
  </nav>
152
152
  </aside>
153
- <section data-hc-scrollspy="#scrollspy-nav">
153
+ <section data-hc-scrollspy="#scrollspy-nav" data-hc-scroll-reveal-parent>
154
154
  <article id="scroll-smooth">
155
155
  <div class="navbar"
156
156
  style="position: sticky; top: 0; height: 50px; display: flex; align-items: center; gap: 40px; background-color: #fff; padding: 0 20px;" id="scroll-smooth-nav">
@@ -427,6 +427,12 @@
427
427
  <div style="height: 300px; background: #000"></div>
428
428
  <div style="height: 300px; background: #000"></div>
429
429
  <div style="height: 300px; background: #000"></div>
430
+ <div style="height: 300px; background: #000"></div>
431
+ <div style="height: 300px; background: #000"></div>
432
+ <div style="height: 300px; background: #000"></div>
433
+ <div style="height: 300px; background: #000"></div>
434
+ <div style="height: 300px; background: #000"></div>
435
+ <div style="height: 300px; background: #000"></div>
430
436
  </article>
431
437
  </section>
432
438
  </main>
@@ -120,6 +120,11 @@ export class HcSlider {
120
120
  crossFade: true
121
121
  };
122
122
  }
123
+
124
+ if (this.slider.hasAttribute('data-hc-slider-infinite')) {
125
+ this.options['loop'] = true;
126
+ }
127
+
123
128
  this.options['watchOverflow'] = true;
124
129
  }
125
130