# slider-blocks/2.11.3/build/blocks/any-content/frontend.js

GutSlider – All in One Slider and Carousel Blocks for Gutenberg, version 2.11.3. 1 lines.

- Page: https://pluginprobe.com/plugins/slider-blocks/2.11.3/code/build/blocks/any-content/frontend.js
- Raw: https://pluginprobe.com/plugins/slider-blocks/2.11.3/raw/build/blocks/any-content/frontend.js
- Modified: 2026-02-26T06:12:34+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/slider-blocks/2.11.3/code/build/blocks/any-content/frontend.js#L10-L20`.

```javascript
window.addEventListener("DOMContentLoaded",(()=>{const e=document.querySelectorAll(".wp-block-gutsliders-any-content");e.length>0&&e.forEach((e=>{const t=e.querySelector(".swiper"),n=e.dataset.swiperOptions,r=JSON.parse(n);new Swiper(t,r);const s=e.dataset.rprev,c=e.dataset.rnext;if(s&&c){const e=document.querySelector(`.${s}`),n=document.querySelector(`.${c}`);e&&e.addEventListener("click",(()=>{t.swiper.slidePrev()})),n&&n.addEventListener("click",(()=>{t.swiper.slideNext()}))}}))}));
```
