From 622523a791fd71757dee66298660a9e74213853b Mon Sep 17 00:00:00 2001 From: buttle Date: Sun, 27 Jun 2021 15:51:36 +0200 Subject: [PATCH] fixes siema to expose source link --- .../common/block-layout/simple-carousel.phtml | 122 ++++++++++-------- 1 file changed, 65 insertions(+), 57 deletions(-) diff --git a/view/common/block-layout/simple-carousel.phtml b/view/common/block-layout/simple-carousel.phtml index d8c0194..ae2b21f 100644 --- a/view/common/block-layout/simple-carousel.phtml +++ b/view/common/block-layout/simple-carousel.phtml @@ -1,73 +1,81 @@ -
- headLink()->appendStylesheet($this->assetUrl('css/carousel.css', 'SimpleCarousel')); - $this->headScript()->appendFile($this->assetUrl('js/siema.min.js', 'SimpleCarousel')); - $title = false; +headLink()->appendStylesheet($this->assetUrl('css/carousel.css', 'SimpleCarousel')); + $this->headScript()->appendFile($this->assetUrl('js/siema.min.js', 'SimpleCarousel')); + $title = false; - $caret = sprintf('', $this->assetUrl('caret.png', 'SimpleCarousel')); - $caret_r = sprintf('', $this->assetUrl('caret.png', 'SimpleCarousel')); - ?> + $caret = sprintf('', $this->assetUrl('caret.png', 'SimpleCarousel')); + $caret_r = sprintf('', $this->assetUrl('caret.png', 'SimpleCarousel')); +?> + + - -
- -
- - - -
+ + let caret = ''; + let caret_r = ''; + + $('#siema-ui').append(caret); + + $('#siema-ui').append(''); + + $('#siema-ui').append(caret_r); + + $('.caret#left').click(function () {siema.prev()}); + $('.caret#right').click(function () {siema.next()}); + + + window.setInterval(() => { + siema.next(); + }, ); + +}); +