Refactor homepage slider implementation by removing Swiper dependency and replacing it with a custom slider. Update styles and scripts accordingly, including changes to app.css and app.js for improved functionality and responsiveness. Update package.json to remove swiper dependency.
This commit is contained in:
1 parent
96bc848420
commit
11e7398f29
10 files changed
+304
-211
No files matched your search
@@ -0,0 +1,98 @@
|
|||||||
|
{"sessionId":"afcad7","runId":"post-fix","hypothesisId":"H3","location":"slider.js:goTo","message":"goTo applied","data":{"from":1,"requested":2,"index":2,"width":1920,"transform":"translateX(-3840px)"},"timestamp":1785807246670}
|
||||||
|
{"sessionId":"afcad7","runId":"post-fix","hypothesisId":"H4","location":"slider.js:logHeights","message":"after-goTo","data":{"index":2,"containerHeight":640,"containerStyleHeight":"","slideHeights":[640,608,608,622,608,640],"trackHeight":640,"imgNatural":[{"nw":1118,"nh":375,"h":640},{"nw":1200,"nh":380,"h":608},{"nw":1200,"nh":380,"h":608},{"nw":1078,"nh":349,"h":622},{"nw":1820,"nh":576,"h":608},{"nw":734,"nh":375,"h":640}]},"timestamp":1785807246671}
|
||||||
|
{"sessionId":"afcad7","runId":"post-fix","hypothesisId":"H3","location":"slider.js:goTo","message":"goTo applied","data":{"from":2,"requested":3,"index":3,"width":1920,"transform":"translateX(-5760px)"},"timestamp":1785807250671}
|
||||||
|
{"sessionId":"afcad7","runId":"post-fix","hypothesisId":"H4","location":"slider.js:logHeights","message":"after-goTo","data":{"index":3,"containerHeight":640,"containerStyleHeight":"","slideHeights":[640,608,608,622,608,640],"trackHeight":640,"imgNatural":[{"nw":1118,"nh":375,"h":640},{"nw":1200,"nh":380,"h":608},{"nw":1200,"nh":380,"h":608},{"nw":1078,"nh":349,"h":622},{"nw":1820,"nh":576,"h":608},{"nw":734,"nh":375,"h":640}]},"timestamp":1785807250672}
|
||||||
|
{"sessionId":"afcad7","runId":"post-fix","hypothesisId":"H3","location":"slider.js:goTo","message":"goTo applied","data":{"from":3,"requested":4,"index":4,"width":1920,"transform":"translateX(-7680px)"},"timestamp":1785807254671}
|
||||||
|
{"sessionId":"afcad7","runId":"post-fix","hypothesisId":"H4","location":"slider.js:logHeights","message":"after-goTo","data":{"index":4,"containerHeight":640,"containerStyleHeight":"","slideHeights":[640,608,608,622,608,640],"trackHeight":640,"imgNatural":[{"nw":1118,"nh":375,"h":640},{"nw":1200,"nh":380,"h":608},{"nw":1200,"nh":380,"h":608},{"nw":1078,"nh":349,"h":622},{"nw":1820,"nh":576,"h":608},{"nw":734,"nh":375,"h":640}]},"timestamp":1785807254671}
|
||||||
|
{"sessionId":"afcad7","runId":"post-fix","hypothesisId":"H3","location":"slider.js:goTo","message":"goTo applied","data":{"from":4,"requested":5,"index":5,"width":1920,"transform":"translateX(-9600px)"},"timestamp":1785807258671}
|
||||||
|
{"sessionId":"afcad7","runId":"post-fix","hypothesisId":"H4","location":"slider.js:logHeights","message":"after-goTo","data":{"index":5,"containerHeight":640,"containerStyleHeight":"","slideHeights":[640,608,608,622,608,640],"trackHeight":640,"imgNatural":[{"nw":1118,"nh":375,"h":640},{"nw":1200,"nh":380,"h":608},{"nw":1200,"nh":380,"h":608},{"nw":1078,"nh":349,"h":622},{"nw":1820,"nh":576,"h":608},{"nw":734,"nh":375,"h":640}]},"timestamp":1785807258672}
|
||||||
|
{"sessionId":"afcad7","runId":"post-fix","hypothesisId":"H3","location":"slider.js:goTo","message":"goTo applied","data":{"from":5,"requested":6,"index":0,"width":1920,"transform":"translateX(0px)"},"timestamp":1785807262671}
|
||||||
|
{"sessionId":"afcad7","runId":"post-fix","hypothesisId":"H4","location":"slider.js:logHeights","message":"after-goTo","data":{"index":0,"containerHeight":640,"containerStyleHeight":"","slideHeights":[640,608,608,622,608,640],"trackHeight":640,"imgNatural":[{"nw":1118,"nh":375,"h":640},{"nw":1200,"nh":380,"h":608},{"nw":1200,"nh":380,"h":608},{"nw":1078,"nh":349,"h":622},{"nw":1820,"nh":576,"h":608},{"nw":734,"nh":375,"h":640}]},"timestamp":1785807262672}
|
||||||
|
{"sessionId":"afcad7","runId":"post-fix","hypothesisId":"H3","location":"slider.js:goTo","message":"goTo applied","data":{"from":0,"requested":1,"index":1,"width":1920,"transform":"translateX(-1920px)"},"timestamp":1785807266671}
|
||||||
|
{"sessionId":"afcad7","runId":"post-fix","hypothesisId":"H4","location":"slider.js:logHeights","message":"after-goTo","data":{"index":1,"containerHeight":640,"containerStyleHeight":"","slideHeights":[640,608,608,622,608,640],"trackHeight":640,"imgNatural":[{"nw":1118,"nh":375,"h":640},{"nw":1200,"nh":380,"h":608},{"nw":1200,"nh":380,"h":608},{"nw":1078,"nh":349,"h":622},{"nw":1820,"nh":576,"h":608},{"nw":734,"nh":375,"h":640}]},"timestamp":1785807266672}
|
||||||
|
{"sessionId":"afcad7","runId":"post-fix","hypothesisId":"H3","location":"slider.js:goTo","message":"goTo applied","data":{"from":1,"requested":2,"index":2,"width":1920,"transform":"translateX(-3840px)"},"timestamp":1785807270671}
|
||||||
|
{"sessionId":"afcad7","runId":"post-fix","hypothesisId":"H4","location":"slider.js:logHeights","message":"after-goTo","data":{"index":2,"containerHeight":640,"containerStyleHeight":"","slideHeights":[640,608,608,622,608,640],"trackHeight":640,"imgNatural":[{"nw":1118,"nh":375,"h":640},{"nw":1200,"nh":380,"h":608},{"nw":1200,"nh":380,"h":608},{"nw":1078,"nh":349,"h":622},{"nw":1820,"nh":576,"h":608},{"nw":734,"nh":375,"h":640}]},"timestamp":1785807270672}
|
||||||
|
{"sessionId":"afcad7","runId":"post-fix","hypothesisId":"H3","location":"slider.js:goTo","message":"goTo applied","data":{"from":2,"requested":3,"index":3,"width":1920,"transform":"translateX(-5760px)"},"timestamp":1785807274671}
|
||||||
|
{"sessionId":"afcad7","runId":"post-fix","hypothesisId":"H4","location":"slider.js:logHeights","message":"after-goTo","data":{"index":3,"containerHeight":640,"containerStyleHeight":"","slideHeights":[640,608,608,622,608,640],"trackHeight":640,"imgNatural":[{"nw":1118,"nh":375,"h":640},{"nw":1200,"nh":380,"h":608},{"nw":1200,"nh":380,"h":608},{"nw":1078,"nh":349,"h":622},{"nw":1820,"nh":576,"h":608},{"nw":734,"nh":375,"h":640}]},"timestamp":1785807274671}
|
||||||
|
{"sessionId":"afcad7","runId":"post-fix","hypothesisId":"H3","location":"slider.js:goTo","message":"goTo applied","data":{"from":3,"requested":4,"index":4,"width":1920,"transform":"translateX(-7680px)"},"timestamp":1785807278671}
|
||||||
|
{"sessionId":"afcad7","runId":"post-fix","hypothesisId":"H4","location":"slider.js:logHeights","message":"after-goTo","data":{"index":4,"containerHeight":640,"containerStyleHeight":"","slideHeights":[640,608,608,622,608,640],"trackHeight":640,"imgNatural":[{"nw":1118,"nh":375,"h":640},{"nw":1200,"nh":380,"h":608},{"nw":1200,"nh":380,"h":608},{"nw":1078,"nh":349,"h":622},{"nw":1820,"nh":576,"h":608},{"nw":734,"nh":375,"h":640}]},"timestamp":1785807278672}
|
||||||
|
{"sessionId":"afcad7","runId":"post-fix","hypothesisId":"H3","location":"slider.js:goTo","message":"goTo applied","data":{"from":4,"requested":5,"index":5,"width":1920,"transform":"translateX(-9600px)"},"timestamp":1785807282671}
|
||||||
|
{"sessionId":"afcad7","runId":"post-fix","hypothesisId":"H4","location":"slider.js:logHeights","message":"after-goTo","data":{"index":5,"containerHeight":640,"containerStyleHeight":"","slideHeights":[640,608,608,622,608,640],"trackHeight":640,"imgNatural":[{"nw":1118,"nh":375,"h":640},{"nw":1200,"nh":380,"h":608},{"nw":1200,"nh":380,"h":608},{"nw":1078,"nh":349,"h":622},{"nw":1820,"nh":576,"h":608},{"nw":734,"nh":375,"h":640}]},"timestamp":1785807282672}
|
||||||
|
{"sessionId":"afcad7","runId":"post-fix","hypothesisId":"H3","location":"slider.js:goTo","message":"goTo applied","data":{"from":5,"requested":6,"index":0,"width":1920,"transform":"translateX(0px)"},"timestamp":1785807286671}
|
||||||
|
{"sessionId":"afcad7","runId":"post-fix","hypothesisId":"H4","location":"slider.js:logHeights","message":"after-goTo","data":{"index":0,"containerHeight":640,"containerStyleHeight":"","slideHeights":[640,608,608,622,608,640],"trackHeight":640,"imgNatural":[{"nw":1118,"nh":375,"h":640},{"nw":1200,"nh":380,"h":608},{"nw":1200,"nh":380,"h":608},{"nw":1078,"nh":349,"h":622},{"nw":1820,"nh":576,"h":608},{"nw":734,"nh":375,"h":640}]},"timestamp":1785807286672}
|
||||||
|
{"sessionId":"afcad7","runId":"post-fix","hypothesisId":"H3","location":"slider.js:goTo","message":"goTo applied","data":{"from":0,"requested":1,"index":1,"width":1920,"transform":"translateX(-1920px)"},"timestamp":1785807290671}
|
||||||
|
{"sessionId":"afcad7","runId":"post-fix","hypothesisId":"H4","location":"slider.js:logHeights","message":"after-goTo","data":{"index":1,"containerHeight":640,"containerStyleHeight":"","slideHeights":[640,608,608,622,608,640],"trackHeight":640,"imgNatural":[{"nw":1118,"nh":375,"h":640},{"nw":1200,"nh":380,"h":608},{"nw":1200,"nh":380,"h":608},{"nw":1078,"nh":349,"h":622},{"nw":1820,"nh":576,"h":608},{"nw":734,"nh":375,"h":640}]},"timestamp":1785807290672}
|
||||||
|
{"sessionId":"afcad7","runId":"post-fix","hypothesisId":"H3","location":"slider.js:goTo","message":"goTo applied","data":{"from":1,"requested":2,"index":2,"width":1920,"transform":"translateX(-3840px)"},"timestamp":1785807294671}
|
||||||
|
{"sessionId":"afcad7","runId":"post-fix","hypothesisId":"H4","location":"slider.js:logHeights","message":"after-goTo","data":{"index":2,"containerHeight":640,"containerStyleHeight":"","slideHeights":[640,608,608,622,608,640],"trackHeight":640,"imgNatural":[{"nw":1118,"nh":375,"h":640},{"nw":1200,"nh":380,"h":608},{"nw":1200,"nh":380,"h":608},{"nw":1078,"nh":349,"h":622},{"nw":1820,"nh":576,"h":608},{"nw":734,"nh":375,"h":640}]},"timestamp":1785807294672}
|
||||||
|
{"sessionId":"afcad7","runId":"post-fix","hypothesisId":"H3","location":"slider.js:goTo","message":"goTo applied","data":{"from":2,"requested":3,"index":3,"width":1920,"transform":"translateX(-5760px)"},"timestamp":1785807298671}
|
||||||
|
{"sessionId":"afcad7","runId":"post-fix","hypothesisId":"H4","location":"slider.js:logHeights","message":"after-goTo","data":{"index":3,"containerHeight":640,"containerStyleHeight":"","slideHeights":[640,608,608,622,608,640],"trackHeight":640,"imgNatural":[{"nw":1118,"nh":375,"h":640},{"nw":1200,"nh":380,"h":608},{"nw":1200,"nh":380,"h":608},{"nw":1078,"nh":349,"h":622},{"nw":1820,"nh":576,"h":608},{"nw":734,"nh":375,"h":640}]},"timestamp":1785807298672}
|
||||||
|
{"sessionId":"afcad7","runId":"post-fix","hypothesisId":"H3","location":"slider.js:goTo","message":"goTo applied","data":{"from":3,"requested":4,"index":4,"width":1920,"transform":"translateX(-7680px)"},"timestamp":1785807302671}
|
||||||
|
{"sessionId":"afcad7","runId":"post-fix","hypothesisId":"H4","location":"slider.js:logHeights","message":"after-goTo","data":{"index":4,"containerHeight":640,"containerStyleHeight":"","slideHeights":[640,608,608,622,608,640],"trackHeight":640,"imgNatural":[{"nw":1118,"nh":375,"h":640},{"nw":1200,"nh":380,"h":608},{"nw":1200,"nh":380,"h":608},{"nw":1078,"nh":349,"h":622},{"nw":1820,"nh":576,"h":608},{"nw":734,"nh":375,"h":640}]},"timestamp":1785807302672}
|
||||||
|
{"sessionId":"afcad7","runId":"post-fix","hypothesisId":"H3","location":"slider.js:goTo","message":"goTo applied","data":{"from":4,"requested":5,"index":5,"width":1920,"transform":"translateX(-9600px)"},"timestamp":1785807306672}
|
||||||
|
{"sessionId":"afcad7","runId":"post-fix","hypothesisId":"H4","location":"slider.js:logHeights","message":"after-goTo","data":{"index":5,"containerHeight":640,"containerStyleHeight":"","slideHeights":[640,608,608,622,608,640],"trackHeight":640,"imgNatural":[{"nw":1118,"nh":375,"h":640},{"nw":1200,"nh":380,"h":608},{"nw":1200,"nh":380,"h":608},{"nw":1078,"nh":349,"h":622},{"nw":1820,"nh":576,"h":608},{"nw":734,"nh":375,"h":640}]},"timestamp":1785807306672}
|
||||||
|
{"sessionId":"afcad7","runId":"post-fix","hypothesisId":"H3","location":"slider.js:goTo","message":"goTo applied","data":{"from":5,"requested":6,"index":0,"width":1920,"transform":"translateX(0px)"},"timestamp":1785807310671}
|
||||||
|
{"sessionId":"afcad7","runId":"post-fix","hypothesisId":"H4","location":"slider.js:logHeights","message":"after-goTo","data":{"index":0,"containerHeight":640,"containerStyleHeight":"","slideHeights":[640,608,608,622,608,640],"trackHeight":640,"imgNatural":[{"nw":1118,"nh":375,"h":640},{"nw":1200,"nh":380,"h":608},{"nw":1200,"nh":380,"h":608},{"nw":1078,"nh":349,"h":622},{"nw":1820,"nh":576,"h":608},{"nw":734,"nh":375,"h":640}]},"timestamp":1785807310672}
|
||||||
|
{"sessionId":"afcad7","runId":"post-fix","hypothesisId":"H3","location":"slider.js:goTo","message":"goTo applied","data":{"from":0,"requested":1,"index":1,"width":1920,"transform":"translateX(-1920px)"},"timestamp":1785807314671}
|
||||||
|
{"sessionId":"afcad7","runId":"post-fix","hypothesisId":"H4","location":"slider.js:logHeights","message":"after-goTo","data":{"index":1,"containerHeight":640,"containerStyleHeight":"","slideHeights":[640,608,608,622,608,640],"trackHeight":640,"imgNatural":[{"nw":1118,"nh":375,"h":640},{"nw":1200,"nh":380,"h":608},{"nw":1200,"nh":380,"h":608},{"nw":1078,"nh":349,"h":622},{"nw":1820,"nh":576,"h":608},{"nw":734,"nh":375,"h":640}]},"timestamp":1785807314672}
|
||||||
|
{"sessionId":"afcad7","runId":"post-fix","hypothesisId":"H3","location":"slider.js:goTo","message":"goTo applied","data":{"from":1,"requested":2,"index":2,"width":1920,"transform":"translateX(-3840px)"},"timestamp":1785807318671}
|
||||||
|
{"sessionId":"afcad7","runId":"post-fix","hypothesisId":"H4","location":"slider.js:logHeights","message":"after-goTo","data":{"index":2,"containerHeight":640,"containerStyleHeight":"","slideHeights":[640,608,608,622,608,640],"trackHeight":640,"imgNatural":[{"nw":1118,"nh":375,"h":640},{"nw":1200,"nh":380,"h":608},{"nw":1200,"nh":380,"h":608},{"nw":1078,"nh":349,"h":622},{"nw":1820,"nh":576,"h":608},{"nw":734,"nh":375,"h":640}]},"timestamp":1785807318672}
|
||||||
|
{"sessionId":"afcad7","runId":"post-fix","hypothesisId":"H3","location":"slider.js:goTo","message":"goTo applied","data":{"from":2,"requested":3,"index":3,"width":1920,"transform":"translateX(-5760px)"},"timestamp":1785807322671}
|
||||||
|
{"sessionId":"afcad7","runId":"post-fix","hypothesisId":"H4","location":"slider.js:logHeights","message":"after-goTo","data":{"index":3,"containerHeight":640,"containerStyleHeight":"","slideHeights":[640,608,608,622,608,640],"trackHeight":640,"imgNatural":[{"nw":1118,"nh":375,"h":640},{"nw":1200,"nh":380,"h":608},{"nw":1200,"nh":380,"h":608},{"nw":1078,"nh":349,"h":622},{"nw":1820,"nh":576,"h":608},{"nw":734,"nh":375,"h":640}]},"timestamp":1785807322672}
|
||||||
|
{"sessionId":"afcad7","runId":"post-fix","hypothesisId":"H3","location":"slider.js:goTo","message":"goTo applied","data":{"from":3,"requested":4,"index":4,"width":1920,"transform":"translateX(-7680px)"},"timestamp":1785807326671}
|
||||||
|
{"sessionId":"afcad7","runId":"post-fix","hypothesisId":"H4","location":"slider.js:logHeights","message":"after-goTo","data":{"index":4,"containerHeight":640,"containerStyleHeight":"","slideHeights":[640,608,608,622,608,640],"trackHeight":640,"imgNatural":[{"nw":1118,"nh":375,"h":640},{"nw":1200,"nh":380,"h":608},{"nw":1200,"nh":380,"h":608},{"nw":1078,"nh":349,"h":622},{"nw":1820,"nh":576,"h":608},{"nw":734,"nh":375,"h":640}]},"timestamp":1785807326672}
|
||||||
|
{"sessionId":"afcad7","runId":"post-fix","hypothesisId":"H3","location":"slider.js:goTo","message":"goTo applied","data":{"from":4,"requested":5,"index":5,"width":1920,"transform":"translateX(-9600px)"},"timestamp":1785807330671}
|
||||||
|
{"sessionId":"afcad7","runId":"post-fix","hypothesisId":"H4","location":"slider.js:logHeights","message":"after-goTo","data":{"index":5,"containerHeight":640,"containerStyleHeight":"","slideHeights":[640,608,608,622,608,640],"trackHeight":640,"imgNatural":[{"nw":1118,"nh":375,"h":640},{"nw":1200,"nh":380,"h":608},{"nw":1200,"nh":380,"h":608},{"nw":1078,"nh":349,"h":622},{"nw":1820,"nh":576,"h":608},{"nw":734,"nh":375,"h":640}]},"timestamp":1785807330671}
|
||||||
|
{"sessionId":"afcad7","runId":"post-fix","hypothesisId":"H3","location":"slider.js:goTo","message":"goTo applied","data":{"from":5,"requested":6,"index":0,"width":1920,"transform":"translateX(0px)"},"timestamp":1785807334671}
|
||||||
|
{"sessionId":"afcad7","runId":"post-fix","hypothesisId":"H4","location":"slider.js:logHeights","message":"after-goTo","data":{"index":0,"containerHeight":640,"containerStyleHeight":"","slideHeights":[640,608,608,622,608,640],"trackHeight":640,"imgNatural":[{"nw":1118,"nh":375,"h":640},{"nw":1200,"nh":380,"h":608},{"nw":1200,"nh":380,"h":608},{"nw":1078,"nh":349,"h":622},{"nw":1820,"nh":576,"h":608},{"nw":734,"nh":375,"h":640}]},"timestamp":1785807334671}
|
||||||
|
{"sessionId":"afcad7","runId":"post-fix","hypothesisId":"H5","location":"slider.js:mouseleave","message":"mouseleave during/after drag","data":{"dragging":false,"index":0},"timestamp":1785807336119}
|
||||||
|
{"sessionId":"afcad7","runId":"post-fix","hypothesisId":"H5","location":"slider.js:mouseleave","message":"mouseleave during/after drag","data":{"dragging":false,"index":0},"timestamp":1785807336620}
|
||||||
|
{"sessionId":"afcad7","runId":"post-fix","hypothesisId":"H1","location":"slider.js:onPointerDown","message":"pointerdown","data":{"pointerType":"mouse","clientX":1475.0928955078125,"targetTag":"A","width":1920,"index":0,"defaultPrevented":true},"timestamp":1785807337051}
|
||||||
|
{"sessionId":"afcad7","runId":"post-fix","hypothesisId":"H2","location":"slider.js:onPointerMove","message":"pointermove","data":{"dragDelta":-2.331787109375,"moveCount":1,"width":1920,"transform":"translateX(-2.33179px)","index":0},"timestamp":1785807337054}
|
||||||
|
{"sessionId":"afcad7","runId":"post-fix","hypothesisId":"H2","location":"slider.js:onPointerMove","message":"pointermove","data":{"dragDelta":-701.5407104492188,"moveCount":8,"width":1920,"transform":"translateX(-701.541px)","index":0},"timestamp":1785807337170}
|
||||||
|
{"sessionId":"afcad7","runId":"post-fix","hypothesisId":"H1","location":"slider.js:onPointerUp","message":"pointerup","data":{"dragDelta":-848.967529296875,"threshold":153.6,"passed":true,"direction":"next","moveCount":10,"indexBefore":0,"eventType":"pointerup"},"timestamp":1785807337201}
|
||||||
|
{"sessionId":"afcad7","runId":"post-fix","hypothesisId":"H3","location":"slider.js:goTo","message":"goTo applied","data":{"from":0,"requested":1,"index":1,"width":1920,"transform":"translateX(-1920px)"},"timestamp":1785807337202}
|
||||||
|
{"sessionId":"afcad7","runId":"post-fix","hypothesisId":"H4","location":"slider.js:logHeights","message":"after-goTo","data":{"index":1,"containerHeight":640,"containerStyleHeight":"","slideHeights":[640,608,608,622,608,640],"trackHeight":640,"imgNatural":[{"nw":1118,"nh":375,"h":640},{"nw":1200,"nh":380,"h":608},{"nw":1200,"nh":380,"h":608},{"nw":1078,"nh":349,"h":622},{"nw":1820,"nh":576,"h":608},{"nw":734,"nh":375,"h":640}]},"timestamp":1785807337202}
|
||||||
|
{"sessionId":"afcad7","runId":"post-fix","hypothesisId":"H1","location":"slider.js:onPointerDown","message":"pointerdown","data":{"pointerType":"mouse","clientX":1256.9200439453125,"targetTag":"A","width":1920,"index":1,"defaultPrevented":true},"timestamp":1785807338351}
|
||||||
|
{"sessionId":"afcad7","runId":"post-fix","hypothesisId":"H2","location":"slider.js:onPointerMove","message":"pointermove","data":{"dragDelta":-0.3525390625,"moveCount":1,"width":1920,"transform":"translateX(-1920.35px)","index":1},"timestamp":1785807338352}
|
||||||
|
{"sessionId":"afcad7","runId":"post-fix","hypothesisId":"H2","location":"slider.js:onPointerMove","message":"pointermove","data":{"dragDelta":-585.7520751953125,"moveCount":8,"width":1920,"transform":"translateX(-2505.75px)","index":1},"timestamp":1785807338470}
|
||||||
|
{"sessionId":"afcad7","runId":"post-fix","hypothesisId":"H1","location":"slider.js:onPointerUp","message":"pointerup","data":{"dragDelta":-752.0836791992188,"threshold":153.6,"passed":true,"direction":"next","moveCount":9,"indexBefore":1,"eventType":"pointerup"},"timestamp":1785807338485}
|
||||||
|
{"sessionId":"afcad7","runId":"post-fix","hypothesisId":"H3","location":"slider.js:goTo","message":"goTo applied","data":{"from":1,"requested":2,"index":2,"width":1920,"transform":"translateX(-3840px)"},"timestamp":1785807338485}
|
||||||
|
{"sessionId":"afcad7","runId":"post-fix","hypothesisId":"H4","location":"slider.js:logHeights","message":"after-goTo","data":{"index":2,"containerHeight":640,"containerStyleHeight":"","slideHeights":[640,608,608,622,608,640],"trackHeight":640,"imgNatural":[{"nw":1118,"nh":375,"h":640},{"nw":1200,"nh":380,"h":608},{"nw":1200,"nh":380,"h":608},{"nw":1078,"nh":349,"h":622},{"nw":1820,"nh":576,"h":608},{"nw":734,"nh":375,"h":640}]},"timestamp":1785807338486}
|
||||||
|
{"sessionId":"afcad7","runId":"post-fix","hypothesisId":"H1","location":"slider.js:onPointerDown","message":"pointerdown","data":{"pointerType":"mouse","clientX":1142.9139404296875,"targetTag":"A","width":1920,"index":2,"defaultPrevented":true},"timestamp":1785807339001}
|
||||||
|
{"sessionId":"afcad7","runId":"post-fix","hypothesisId":"H2","location":"slider.js:onPointerMove","message":"pointermove","data":{"dragDelta":-1.5576171875,"moveCount":1,"width":1920,"transform":"translateX(-3841.56px)","index":2},"timestamp":1785807339002}
|
||||||
|
{"sessionId":"afcad7","runId":"post-fix","hypothesisId":"H2","location":"slider.js:onPointerMove","message":"pointermove","data":{"dragDelta":-448.53369140625,"moveCount":8,"width":1920,"transform":"translateX(-4288.53px)","index":2},"timestamp":1785807339120}
|
||||||
|
{"sessionId":"afcad7","runId":"post-fix","hypothesisId":"H1","location":"slider.js:onPointerUp","message":"pointerup","data":{"dragDelta":-594.7726440429688,"threshold":153.6,"passed":true,"direction":"next","moveCount":9,"indexBefore":2,"eventType":"pointerup"},"timestamp":1785807339134}
|
||||||
|
{"sessionId":"afcad7","runId":"post-fix","hypothesisId":"H3","location":"slider.js:goTo","message":"goTo applied","data":{"from":2,"requested":3,"index":3,"width":1920,"transform":"translateX(-5760px)"},"timestamp":1785807339135}
|
||||||
|
{"sessionId":"afcad7","runId":"post-fix","hypothesisId":"H4","location":"slider.js:logHeights","message":"after-goTo","data":{"index":3,"containerHeight":640,"containerStyleHeight":"","slideHeights":[640,608,608,622,608,640],"trackHeight":640,"imgNatural":[{"nw":1118,"nh":375,"h":640},{"nw":1200,"nh":380,"h":608},{"nw":1200,"nh":380,"h":608},{"nw":1078,"nh":349,"h":622},{"nw":1820,"nh":576,"h":608},{"nw":734,"nh":375,"h":640}]},"timestamp":1785807339135}
|
||||||
|
{"sessionId":"afcad7","runId":"post-fix","hypothesisId":"H1","location":"slider.js:onPointerDown","message":"pointerdown","data":{"pointerType":"mouse","clientX":973.7495727539062,"targetTag":"A","width":1920,"index":3,"defaultPrevented":true},"timestamp":1785807339834}
|
||||||
|
{"sessionId":"afcad7","runId":"post-fix","hypothesisId":"H2","location":"slider.js:onPointerMove","message":"pointermove","data":{"dragDelta":-0.1461181640625,"moveCount":1,"width":1920,"transform":"translateX(-5760.15px)","index":3},"timestamp":1785807339870}
|
||||||
|
{"sessionId":"afcad7","runId":"post-fix","hypothesisId":"H2","location":"slider.js:onPointerMove","message":"pointermove","data":{"dragDelta":-519.3838806152344,"moveCount":8,"width":1920,"transform":"translateX(-6279.38px)","index":3},"timestamp":1785807339987}
|
||||||
|
{"sessionId":"afcad7","runId":"post-fix","hypothesisId":"H1","location":"slider.js:onPointerUp","message":"pointerup","data":{"dragDelta":-519.3838806152344,"threshold":153.6,"passed":true,"direction":"next","moveCount":8,"indexBefore":3,"eventType":"pointerup"},"timestamp":1785807340000}
|
||||||
|
{"sessionId":"afcad7","runId":"post-fix","hypothesisId":"H3","location":"slider.js:goTo","message":"goTo applied","data":{"from":3,"requested":4,"index":4,"width":1920,"transform":"translateX(-7680px)"},"timestamp":1785807340001}
|
||||||
|
{"sessionId":"afcad7","runId":"post-fix","hypothesisId":"H4","location":"slider.js:logHeights","message":"after-goTo","data":{"index":4,"containerHeight":640,"containerStyleHeight":"","slideHeights":[640,608,608,622,608,640],"trackHeight":640,"imgNatural":[{"nw":1118,"nh":375,"h":640},{"nw":1200,"nh":380,"h":608},{"nw":1200,"nh":380,"h":608},{"nw":1078,"nh":349,"h":622},{"nw":1820,"nh":576,"h":608},{"nw":734,"nh":375,"h":640}]},"timestamp":1785807340001}
|
||||||
|
{"sessionId":"afcad7","runId":"post-fix","hypothesisId":"H1","location":"slider.js:onPointerDown","message":"pointerdown","data":{"pointerType":"mouse","clientX":1261.7843017578125,"targetTag":"A","width":1920,"index":4,"defaultPrevented":true},"timestamp":1785807340951}
|
||||||
|
{"sessionId":"afcad7","runId":"post-fix","hypothesisId":"H2","location":"slider.js:onPointerMove","message":"pointermove","data":{"dragDelta":-8.4583740234375,"moveCount":1,"width":1920,"transform":"translateX(-7688.46px)","index":4},"timestamp":1785807340952}
|
||||||
|
{"sessionId":"afcad7","runId":"post-fix","hypothesisId":"H2","location":"slider.js:onPointerMove","message":"pointermove","data":{"dragDelta":-778.1910400390625,"moveCount":8,"width":1920,"transform":"translateX(-8458.19px)","index":4},"timestamp":1785807341070}
|
||||||
|
{"sessionId":"afcad7","runId":"post-fix","hypothesisId":"H1","location":"slider.js:onPointerUp","message":"pointerup","data":{"dragDelta":-852.7561950683594,"threshold":153.6,"passed":true,"direction":"next","moveCount":9,"indexBefore":4,"eventType":"pointerup"},"timestamp":1785807341085}
|
||||||
|
{"sessionId":"afcad7","runId":"post-fix","hypothesisId":"H3","location":"slider.js:goTo","message":"goTo applied","data":{"from":4,"requested":5,"index":5,"width":1920,"transform":"translateX(-9600px)"},"timestamp":1785807341085}
|
||||||
|
{"sessionId":"afcad7","runId":"post-fix","hypothesisId":"H4","location":"slider.js:logHeights","message":"after-goTo","data":{"index":5,"containerHeight":640,"containerStyleHeight":"","slideHeights":[640,608,608,622,608,640],"trackHeight":640,"imgNatural":[{"nw":1118,"nh":375,"h":640},{"nw":1200,"nh":380,"h":608},{"nw":1200,"nh":380,"h":608},{"nw":1078,"nh":349,"h":622},{"nw":1820,"nh":576,"h":608},{"nw":734,"nh":375,"h":640}]},"timestamp":1785807341086}
|
||||||
|
{"sessionId":"afcad7","runId":"post-fix","hypothesisId":"H1","location":"slider.js:onPointerDown","message":"pointerdown","data":{"pointerType":"mouse","clientX":1173.8970947265625,"targetTag":"A","width":1920,"index":5,"defaultPrevented":true},"timestamp":1785807341766}
|
||||||
|
{"sessionId":"afcad7","runId":"post-fix","hypothesisId":"H2","location":"slider.js:onPointerMove","message":"pointermove","data":{"dragDelta":-0.0526123046875,"moveCount":1,"width":1920,"transform":"translateX(-9600.05px)","index":5},"timestamp":1785807341803}
|
||||||
|
{"sessionId":"afcad7","runId":"post-fix","hypothesisId":"H2","location":"slider.js:onPointerMove","message":"pointermove","data":{"dragDelta":-244.54132080078125,"moveCount":8,"width":1920,"transform":"translateX(-9844.54px)","index":5},"timestamp":1785807341920}
|
||||||
|
{"sessionId":"afcad7","runId":"post-fix","hypothesisId":"H1","location":"slider.js:onPointerUp","message":"pointerup","data":{"dragDelta":-332.81939697265625,"threshold":153.6,"passed":true,"direction":"next","moveCount":9,"indexBefore":5,"eventType":"pointerup"},"timestamp":1785807341951}
|
||||||
|
{"sessionId":"afcad7","runId":"post-fix","hypothesisId":"H3","location":"slider.js:goTo","message":"goTo applied","data":{"from":5,"requested":6,"index":0,"width":1920,"transform":"translateX(0px)"},"timestamp":1785807341951}
|
||||||
|
{"sessionId":"afcad7","runId":"post-fix","hypothesisId":"H4","location":"slider.js:logHeights","message":"after-goTo","data":{"index":0,"containerHeight":640,"containerStyleHeight":"","slideHeights":[640,608,608,622,608,640],"trackHeight":640,"imgNatural":[{"nw":1118,"nh":375,"h":640},{"nw":1200,"nh":380,"h":608},{"nw":1200,"nh":380,"h":608},{"nw":1078,"nh":349,"h":622},{"nw":1820,"nh":576,"h":608},{"nw":734,"nh":375,"h":640}]},"timestamp":1785807341952}
|
||||||
|
{"sessionId":"afcad7","runId":"post-fix","hypothesisId":"H5","location":"slider.js:mouseleave","message":"mouseleave during/after drag","data":{"dragging":false,"index":0},"timestamp":1785807342906}
|
||||||
|
{"sessionId":"afcad7","runId":"post-fix","hypothesisId":"H3","location":"slider.js:goTo","message":"goTo applied","data":{"from":0,"requested":1,"index":1,"width":1920,"transform":"translateX(-1920px)"},"timestamp":1785807346908}
|
||||||
|
{"sessionId":"afcad7","runId":"post-fix","hypothesisId":"H4","location":"slider.js:logHeights","message":"after-goTo","data":{"index":1,"containerHeight":640,"containerStyleHeight":"","slideHeights":[640,608,608,622,608,640],"trackHeight":640,"imgNatural":[{"nw":1118,"nh":375,"h":640},{"nw":1200,"nh":380,"h":608},{"nw":1200,"nh":380,"h":608},{"nw":1078,"nh":349,"h":622},{"nw":1820,"nh":576,"h":608},{"nw":734,"nh":375,"h":640}]},"timestamp":1785807346908}
|
||||||
|
{"sessionId":"afcad7","runId":"post-fix","hypothesisId":"H3","location":"slider.js:goTo","message":"goTo applied","data":{"from":1,"requested":2,"index":2,"width":1920,"transform":"translateX(-3840px)"},"timestamp":1785807350908}
|
||||||
|
{"sessionId":"afcad7","runId":"post-fix","hypothesisId":"H4","location":"slider.js:logHeights","message":"after-goTo","data":{"index":2,"containerHeight":640,"containerStyleHeight":"","slideHeights":[640,608,608,622,608,640],"trackHeight":640,"imgNatural":[{"nw":1118,"nh":375,"h":640},{"nw":1200,"nh":380,"h":608},{"nw":1200,"nh":380,"h":608},{"nw":1078,"nh":349,"h":622},{"nw":1820,"nh":576,"h":608},{"nw":734,"nh":375,"h":640}]},"timestamp":1785807350909}
|
||||||
|
{"sessionId":"afcad7","runId":"post-fix","hypothesisId":"H3","location":"slider.js:goTo","message":"goTo applied","data":{"from":2,"requested":3,"index":3,"width":1920,"transform":"translateX(-5760px)"},"timestamp":1785807354908}
|
||||||
|
{"sessionId":"afcad7","runId":"post-fix","hypothesisId":"H4","location":"slider.js:logHeights","message":"after-goTo","data":{"index":3,"containerHeight":640,"containerStyleHeight":"","slideHeights":[640,608,608,622,608,640],"trackHeight":640,"imgNatural":[{"nw":1118,"nh":375,"h":640},{"nw":1200,"nh":380,"h":608},{"nw":1200,"nh":380,"h":608},{"nw":1078,"nh":349,"h":622},{"nw":1820,"nh":576,"h":608},{"nw":734,"nh":375,"h":640}]},"timestamp":1785807354909}
|
||||||
|
{"sessionId":"afcad7","runId":"post-fix","hypothesisId":"H3","location":"slider.js:goTo","message":"goTo applied","data":{"from":3,"requested":4,"index":4,"width":1920,"transform":"translateX(-7680px)"},"timestamp":1785807358908}
|
||||||
|
{"sessionId":"afcad7","runId":"post-fix","hypothesisId":"H4","location":"slider.js:logHeights","message":"after-goTo","data":{"index":4,"containerHeight":640,"containerStyleHeight":"","slideHeights":[640,608,608,622,608,640],"trackHeight":640,"imgNatural":[{"nw":1118,"nh":375,"h":640},{"nw":1200,"nh":380,"h":608},{"nw":1200,"nh":380,"h":608},{"nw":1078,"nh":349,"h":622},{"nw":1820,"nh":576,"h":608},{"nw":734,"nh":375,"h":640}]},"timestamp":1785807358908}
|
||||||
|
{"sessionId":"afcad7","runId":"post-fix","hypothesisId":"H3","location":"slider.js:goTo","message":"goTo applied","data":{"from":4,"requested":5,"index":5,"width":1920,"transform":"translateX(-9600px)"},"timestamp":1785807362908}
|
||||||
|
{"sessionId":"afcad7","runId":"post-fix","hypothesisId":"H4","location":"slider.js:logHeights","message":"after-goTo","data":{"index":5,"containerHeight":640,"containerStyleHeight":"","slideHeights":[640,608,608,622,608,640],"trackHeight":640,"imgNatural":[{"nw":1118,"nh":375,"h":640},{"nw":1200,"nh":380,"h":608},{"nw":1200,"nh":380,"h":608},{"nw":1078,"nh":349,"h":622},{"nw":1820,"nh":576,"h":608},{"nw":734,"nh":375,"h":640}]},"timestamp":1785807362908}
|
||||||
|
{"sessionId":"afcad7","runId":"post-fix","hypothesisId":"H3","location":"slider.js:goTo","message":"goTo applied","data":{"from":5,"requested":6,"index":0,"width":1920,"transform":"translateX(0px)"},"timestamp":1785807366908}
|
||||||
|
{"sessionId":"afcad7","runId":"post-fix","hypothesisId":"H4","location":"slider.js:logHeights","message":"after-goTo","data":{"index":0,"containerHeight":640,"containerStyleHeight":"","slideHeights":[640,608,608,622,608,640],"trackHeight":640,"imgNatural":[{"nw":1118,"nh":375,"h":640},{"nw":1200,"nh":380,"h":608},{"nw":1200,"nh":380,"h":608},{"nw":1078,"nh":349,"h":622},{"nw":1820,"nh":576,"h":608},{"nw":734,"nh":375,"h":640}]},"timestamp":1785807366909}
|
||||||
|
{"sessionId":"afcad7","runId":"post-fix","hypothesisId":"H4","location":"slider.js:logHeights","message":"resize","data":{"index":0,"containerHeight":640,"containerStyleHeight":"","slideHeights":[640,608,608,622,608,640],"trackHeight":640,"imgNatural":[{"nw":1118,"nh":375,"h":640},{"nw":1200,"nh":380,"h":608},{"nw":1200,"nh":380,"h":608},{"nw":1078,"nh":349,"h":622},{"nw":1820,"nh":576,"h":608},{"nw":734,"nh":375,"h":640}]},"timestamp":1785807368870}
|
||||||
+41
-130
@@ -168,154 +168,65 @@ blockquote {
|
|||||||
}
|
}
|
||||||
/* END Basic styles */
|
/* END Basic styles */
|
||||||
|
|
||||||
/* CAROUSEL */
|
/* Main homepage slider */
|
||||||
.image {
|
|
||||||
width: 100%;
|
|
||||||
height: 70%;
|
|
||||||
}
|
|
||||||
|
|
||||||
.images {
|
.images {
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
top: 0;
|
|
||||||
bottom: 0;
|
|
||||||
left: 0;
|
|
||||||
right: 0;
|
|
||||||
width: 100%;
|
width: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
.images-inner {
|
.custom-slider {
|
||||||
width: 500%;
|
overflow: hidden;
|
||||||
transition: all 800ms cubic-bezier(0.770, 0.000, 0.175, 1.000);
|
width: 100%;
|
||||||
transition-timing-function: cubic-bezier(0.770, 0.000, 0.175, 1.000);
|
position: relative;
|
||||||
|
touch-action: pan-y;
|
||||||
|
cursor: grab;
|
||||||
|
max-height: 640px;
|
||||||
|
max-width: 1280px;
|
||||||
|
margin: 0 auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
.image-slide {
|
.custom-slider:active {
|
||||||
width: 20%;
|
cursor: grabbing;
|
||||||
float: left;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.image-slide,
|
.custom-slider .slider-track {
|
||||||
.fake-radio,
|
display: flex;
|
||||||
.radio-btn {
|
align-items: flex-start;
|
||||||
transition: all 0.5s ease-out;
|
width: 100%;
|
||||||
|
transition: transform 0.6s ease;
|
||||||
|
will-change: transform;
|
||||||
}
|
}
|
||||||
|
|
||||||
.fake-radio {
|
.custom-slider .slider-track.is-dragging {
|
||||||
float: right;
|
transition: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Move slides overflowed container */
|
.custom-slider .slider-slide {
|
||||||
#slide1:checked~.images .images-inner {
|
flex: 0 0 100%;
|
||||||
margin-left: 0;
|
width: 100%;
|
||||||
|
min-width: 100%;
|
||||||
|
max-height: 640px;
|
||||||
|
user-select: none;
|
||||||
|
-webkit-user-drag: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
#slide2:checked~.images .images-inner {
|
.custom-slider .slider-slide img {
|
||||||
margin-left: -100%;
|
display: block;
|
||||||
|
width: 100%;
|
||||||
|
max-width: 100%;
|
||||||
|
max-height: 640px;
|
||||||
|
height: auto;
|
||||||
|
object-fit: contain;
|
||||||
|
margin: 0 auto;
|
||||||
|
pointer-events: none;
|
||||||
|
-webkit-user-drag: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
#slide3:checked~.images .images-inner {
|
.custom-slider .slider-slide a {
|
||||||
margin-left: -200%;
|
display: block;
|
||||||
|
-webkit-user-drag: none;
|
||||||
}
|
}
|
||||||
|
/* END main homepage slider */
|
||||||
/* Color of bullets */
|
|
||||||
#slide1:checked~div .fake-radio .radio-btn:nth-child(1),
|
|
||||||
#slide2:checked~div .fake-radio .radio-btn:nth-child(2),
|
|
||||||
#slide3:checked~div .fake-radio .radio-btn:nth-child(3) {
|
|
||||||
background: red;
|
|
||||||
}
|
|
||||||
|
|
||||||
.radio-btn {
|
|
||||||
width: 9px;
|
|
||||||
height: 9px;
|
|
||||||
border-radius: 5px;
|
|
||||||
background: gray;
|
|
||||||
display: inline-block !important;
|
|
||||||
margin: 0 1px;
|
|
||||||
cursor: pointer;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Color of bullets - END */
|
|
||||||
|
|
||||||
/* Text of slides */
|
|
||||||
#slide1:checked~.labels .label:nth-child(1),
|
|
||||||
#slide2:checked~.labels .label:nth-child(2),
|
|
||||||
#slide3:checked~.labels .label:nth-child(3) {
|
|
||||||
opacity: 1;
|
|
||||||
}
|
|
||||||
|
|
||||||
.label {
|
|
||||||
opacity: 0;
|
|
||||||
position: absolute;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Text of slides - END */
|
|
||||||
|
|
||||||
|
|
||||||
#play1:checked~div .fake-radio .radio-btn:nth-child(1) {
|
|
||||||
animation: bullet 12300ms infinite -1000ms;
|
|
||||||
}
|
|
||||||
|
|
||||||
#play1:checked~div .fake-radio .radio-btn:nth-child(2) {
|
|
||||||
animation: bullet 12300ms infinite 3100ms;
|
|
||||||
}
|
|
||||||
|
|
||||||
#play1:checked~div .fake-radio .radio-btn:nth-child(3) {
|
|
||||||
animation: bullet 12300ms infinite 7200ms;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Calculate AUTOPLAY for BULLETS - END */
|
|
||||||
|
|
||||||
/* Calculate AUTOPLAY for SLIDES */
|
|
||||||
@keyframes slide {
|
|
||||||
|
|
||||||
0%,
|
|
||||||
25.203252032520325% {
|
|
||||||
margin-left: 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
33.333333333333336%,
|
|
||||||
58.53658536585366% {
|
|
||||||
margin-left: -100%;
|
|
||||||
}
|
|
||||||
|
|
||||||
66.66666666666667%,
|
|
||||||
91.869918699187% {
|
|
||||||
margin-left: -200%;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.st-slider>#play1:checked~.images .images-inner {
|
|
||||||
animation: slide 12300ms infinite;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Calculate AUTOPLAY for SLIDES - END */
|
|
||||||
|
|
||||||
/* Calculate AUTOPLAY for CAPTION */
|
|
||||||
@keyframes caption {
|
|
||||||
|
|
||||||
0%,
|
|
||||||
33.32333333333334% {
|
|
||||||
opacity: 1;
|
|
||||||
}
|
|
||||||
|
|
||||||
33.333333333333336%,
|
|
||||||
100% {
|
|
||||||
opacity: 0;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
#play1:checked~.labels .label:nth-child(1) {
|
|
||||||
animation: caption 12300ms infinite -1000ms;
|
|
||||||
}
|
|
||||||
|
|
||||||
#play1:checked~.labels .label:nth-child(2) {
|
|
||||||
animation: caption 12300ms infinite 3100ms;
|
|
||||||
}
|
|
||||||
|
|
||||||
#play1:checked~.labels .label:nth-child(3) {
|
|
||||||
animation: caption 12300ms infinite 7200ms;
|
|
||||||
}
|
|
||||||
/* END CAROUSEL */
|
|
||||||
|
|
||||||
/* Slider */
|
/* Slider */
|
||||||
.mySlides {
|
.mySlides {
|
||||||
|
|||||||
@@ -2,8 +2,5 @@
|
|||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"daisyui": "^4.6.0",
|
"daisyui": "^4.6.0",
|
||||||
"tailwindcss": "^3.4.1"
|
"tailwindcss": "^3.4.1"
|
||||||
},
|
|
||||||
"dependencies": {
|
|
||||||
"swiper": "^11.1.0"
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
+1
-1
@@ -1 +1 @@
|
|||||||
/*! tailwindcss v3.4.1 | MIT License | https://tailwindcss.com*/*,:after,:before{box-sizing:border-box;border:0 solid #e5e7eb}:after,:before{--tw-content:""}:host,html{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,pre,samp{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:initial}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}[type=button],[type=reset],[type=submit],button{-webkit-appearance:button;background-color:initial;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:initial}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dd,dl,figure,h1,h2,h3,h4,h5,h6,hr,p,pre{margin:0}fieldset{margin:0}fieldset,legend{padding:0}menu,ol,ul{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}[role=button],button{cursor:pointer}:disabled{cursor:default}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]{display:none}:root,[data-theme]{background-color:var(--fallback-b1,oklch(var(--b1)/1));color:var(--fallback-bc,oklch(var(--bc)/1))}@supports not (color:oklch(0 0 0)){:root{color-scheme:light;--fallback-p:#491eff;--fallback-pc:#d4dbff;--fallback-s:#ff41c7;--fallback-sc:#fff9fc;--fallback-a:#00cfbd;--fallback-ac:#00100d;--fallback-n:#2b3440;--fallback-nc:#d7dde4;--fallback-b1:#fff;--fallback-b2:#e5e6e6;--fallback-b3:#e5e6e6;--fallback-bc:#1f2937;--fallback-in:#00b3f0;--fallback-inc:#000;--fallback-su:#00ca92;--fallback-suc:#000;--fallback-wa:#ffc22d;--fallback-wac:#000;--fallback-er:#ff6f70;--fallback-erc:#000}@media (prefers-color-scheme:dark){:root{color-scheme:dark;--fallback-p:#7582ff;--fallback-pc:#050617;--fallback-s:#ff71cf;--fallback-sc:#190211;--fallback-a:#00c7b5;--fallback-ac:#000e0c;--fallback-n:#2a323c;--fallback-nc:#a6adbb;--fallback-b1:#1d232a;--fallback-b2:#191e24;--fallback-b3:#15191e;--fallback-bc:#a6adbb;--fallback-in:#00b3f0;--fallback-inc:#000;--fallback-su:#00ca92;--fallback-suc:#000;--fallback-wa:#ffc22d;--fallback-wac:#000;--fallback-er:#ff6f70;--fallback-erc:#000}}}html{-webkit-tap-highlight-color:transparent}:root{color-scheme:light;--in:0.7206 0.191 231.6;--su:64.8% 0.150 160;--wa:0.8471 0.199 83.87;--er:0.7176 0.221 22.18;--pc:0.89824 0.06192 275.75;--ac:0.15352 0.0368 183.61;--inc:0 0 0;--suc:0 0 0;--wac:0 0 0;--erc:0 0 0;--rounded-box:1rem;--rounded-btn:0.5rem;--rounded-badge:1.9rem;--animation-btn:0.25s;--animation-input:.2s;--btn-focus-scale:0.95;--border-btn:1px;--tab-border:1px;--tab-radius:0.5rem;--p:0.4912 0.3096 275.75;--s:0.6971 0.329 342.55;--sc:0.9871 0.0106 342.55;--a:0.7676 0.184 183.61;--n:0.321785 0.02476 255.701624;--nc:0.894994 0.011585 252.096176;--b1:1 0 0;--b2:0.961151 0 0;--b3:0.924169 0.00108 197.137559;--bc:0.278078 0.029596 256.847952}*,::backdrop,:after,:before{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:#3b82f680;--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saLine truncated
|
/*! tailwindcss v3.4.1 | MIT License | https://tailwindcss.com*/*,:after,:before{box-sizing:border-box;border:0 solid #e5e7eb}:after,:before{--tw-content:""}:host,html{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,pre,samp{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:initial}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}[type=button],[type=reset],[type=submit],button{-webkit-appearance:button;background-color:initial;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:initial}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dd,dl,figure,h1,h2,h3,h4,h5,h6,hr,p,pre{margin:0}fieldset{margin:0}fieldset,legend{padding:0}menu,ol,ul{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}[role=button],button{cursor:pointer}:disabled{cursor:default}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]{display:none}:root,[data-theme]{background-color:var(--fallback-b1,oklch(var(--b1)/1));color:var(--fallback-bc,oklch(var(--bc)/1))}@supports not (color:oklch(0 0 0)){:root{color-scheme:light;--fallback-p:#491eff;--fallback-pc:#d4dbff;--fallback-s:#ff41c7;--fallback-sc:#fff9fc;--fallback-a:#00cfbd;--fallback-ac:#00100d;--fallback-n:#2b3440;--fallback-nc:#d7dde4;--fallback-b1:#fff;--fallback-b2:#e5e6e6;--fallback-b3:#e5e6e6;--fallback-bc:#1f2937;--fallback-in:#00b3f0;--fallback-inc:#000;--fallback-su:#00ca92;--fallback-suc:#000;--fallback-wa:#ffc22d;--fallback-wac:#000;--fallback-er:#ff6f70;--fallback-erc:#000}@media (prefers-color-scheme:dark){:root{color-scheme:dark;--fallback-p:#7582ff;--fallback-pc:#050617;--fallback-s:#ff71cf;--fallback-sc:#190211;--fallback-a:#00c7b5;--fallback-ac:#000e0c;--fallback-n:#2a323c;--fallback-nc:#a6adbb;--fallback-b1:#1d232a;--fallback-b2:#191e24;--fallback-b3:#15191e;--fallback-bc:#a6adbb;--fallback-in:#00b3f0;--fallback-inc:#000;--fallback-su:#00ca92;--fallback-suc:#000;--fallback-wa:#ffc22d;--fallback-wac:#000;--fallback-er:#ff6f70;--fallback-erc:#000}}}html{-webkit-tap-highlight-color:transparent}:root{color-scheme:light;--in:0.7206 0.191 231.6;--su:64.8% 0.150 160;--wa:0.8471 0.199 83.87;--er:0.7176 0.221 22.18;--pc:0.89824 0.06192 275.75;--ac:0.15352 0.0368 183.61;--inc:0 0 0;--suc:0 0 0;--wac:0 0 0;--erc:0 0 0;--rounded-box:1rem;--rounded-btn:0.5rem;--rounded-badge:1.9rem;--animation-btn:0.25s;--animation-input:.2s;--btn-focus-scale:0.95;--border-btn:1px;--tab-border:1px;--tab-radius:0.5rem;--p:0.4912 0.3096 275.75;--s:0.6971 0.329 342.55;--sc:0.9871 0.0106 342.55;--a:0.7676 0.184 183.61;--n:0.321785 0.02476 255.701624;--nc:0.894994 0.011585 252.096176;--b1:1 0 0;--b2:0.961151 0 0;--b3:0.924169 0.00108 197.137559;--bc:0.278078 0.029596 256.847952}*,::backdrop,:after,:before{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:#3b82f680;--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saLine truncated
|
||||||
Vendored
-13
@@ -1,13 +0,0 @@
|
|||||||
/**
|
|
||||||
* Swiper 11.1.0
|
|
||||||
* Most modern mobile touch slider and framework with hardware accelerated transitions
|
|
||||||
* https://swiperjs.com
|
|
||||||
*
|
|
||||||
* Copyright 2014-2024 Vladimir Kharlampidi
|
|
||||||
*
|
|
||||||
* Released under the MIT License
|
|
||||||
*
|
|
||||||
* Released on: March 28, 2024
|
|
||||||
*/
|
|
||||||
|
|
||||||
@font-face{font-family:swiper-icons;src:url('data:application/font-woff;charset=utf-8;base64, d09GRgABAAAAAAZgABAAAAAADAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABGRlRNAAAGRAAAABoAAAAci6qHkUdERUYAAAWgAAAAIwAAACQAYABXR1BPUwAABhQAAAAuAAAANuAY7+xHU1VCAAAFxAAAAFAAAABm2fPczU9TLzIAAAHcAAAASgAAAGBP9V5RY21hcAAAAkQAAACIAAABYt6F0cBjdnQgAAACzAAAAAQAAAAEABEBRGdhc3AAAAWYAAAACAAAAAj//wADZ2x5ZgAAAywAAADMAAAD2MHtryVoZWFkAAABbAAAADAAAAA2E2+eoWhoZWEAAAGcAAAAHwAAACQC9gDzaG10eAAAAigAAAAZAAAArgJkABFsb2NhAAAC0AAAAFoAAABaFQAUGG1heHAAAAG8AAAAHwAAACAAcABAbmFtZQAAA/gAAAE5AAACXvFdBwlwb3N0AAAFNAAAAGIAAACE5s74hXjaY2BkYGAAYpf5Hu/j+W2+MnAzMYDAzaX6QjD6/4//Bxj5GA8AuRwMYGkAPywL13jaY2BkYGA88P8Agx4j+/8fQDYfA1AEBWgDAIB2BOoAeNpjYGRgYNBh4GdgYgABEMnIABJzYNADCQAACWgAsQB42mNgYfzCOIGBlYGB0YcxjYGBwR1Kf2WQZGhhYGBiYGVmgAFGBiQQkOaawtDAoMBQxXjg/wEGPcYDDA4wNUA2CCgwsAAAO4EL6gAAeNpj2M0gyAACqxgGNWBkZ2D4/wMA+xkDdgAAAHjaY2BgYGaAYBkGRgYQiAHyGMF8FgYHIM3DwMHABGQrMOgyWDLEM1T9/w8UBfEMgLzE////P/5//f/V/xv+r4eaAAeMbAxwIUYmIMHEgKYAYjUcsDAwsLKxc3BycfPw8jEQA/gZBASFhEVExcQlJKWkZWTl5BUUlZRVVNXUNTQZBgMAAMR+E+gAEQFEAAAAKgAqACoANAA+AEgAUgBcAGYAcAB6AIQAjgCYAKIArAC2AMAAygDUAN4A6ADyAPwBBgEQARoBJAEuATgBQgFMAVYBYAFqAXQBfgGIAZIBnAGmAbIBzgHsAAB42u2NMQ6CUAyGW568x9AneYYgm4MJbhKFaExIOAVX8ApewSt4Bic4AfeAid3VOBixDxfPYEza5O+Xfi04YADggiUIULCuEJK8VhO4bSvpdnktHI5QCYtdi2sl8ZnXaHlqUrNKzdKcT8cjlq+rwZSvIVczNiezsfnP/uznmfPFBNODM2K7MTQ45YEAZqGP81AmGGcF3iPqOop0r1SPTaTbVkfUe4HXj97wYE+yNwWYxwWu4v1ugWHgo3S1XdZEVqWM7ET0cfnLGxWfkgR42o2PvWrDMBSFj/IHLaF0zKjRgdiVMwScNRAoWUoH78Y2icB/yIY09An6AH2Bdu/UB+yxopYshQiEvnvu0dURgDt8QeC8PDw7Fpji3fEA4z/PEJ6YOB5hKh4dj3EvXhxPqH/SKUY3rJ7srZ4FZnh1PMAtPhwP6fl2PMJMPDgeQ4rY8YT6Gzao0eAEA409DuggmTnFnOcSCiEiLMgxCiTI6Cq5DZUd3Qmp10vO0LaLTd2cjN4fOumlc7lUYbSQcZFkutRG7g6JKZKy0RmdLY680CDnEJ+UMkpFFe1RN7nxdVpXrC4aTtnaurOnYercZg2YVmLN/d/gczfEimrE/fs/bOuq29Zmn8tloORaXgZgGa78yO9/cnXm2BpaGvq25Dv9S4E9+5SIc9PqupJKhYFSSl47+Qcr1mYNAAAAeNptw0cKwkAAAMDZJA8Q7OUJvkLsPfZ6zFVERPy8qHh2YER+3i/BP83vIBLLySsoKimrqKqpa2hp6+jq6RsYGhmbmJqZSy0sraxtbO3sHRydnEMU4uR6yx7JJXveP7WrDycAAAAAAAH//wACeNpjYGRgYOABYhkgZgJCZgZNBkYGLQZtIJsFLMYAAAw3ALgAeNolizEKgDAQBCchRbC2sFER0YD6qVQiBCv/H9ezGI6Z5XBAw8CBK/m5iQQVauVbXLnOrMZv2oLdKFa8Pjuru2hJzGabmOSLzNMzvutpB3N42mNgZGBg4GKQYzBhYMxJLMlj4GBgAYow/P/PAJJhLM6sSoWKfWCAAwDAjgbRAAB42mNgYGBkAIIbCZo5IPrmUn0hGA0AO8EFTQAA');font-weight:400;font-style:normal}:root{--swiper-theme-color:#007aff}:host{position:relative;display:block;margin-left:auto;margin-right:auto;z-index:1}.swiper{margin-left:auto;margin-right:auto;position:relative;overflow:hidden;list-style:none;padding:0;z-index:1;display:block}.swiper-vertical>.swiper-wrapper{flex-direction:column}.swiper-wrapper{position:relative;width:100%;height:100%;z-index:1;display:flex;transition-property:transform;transition-timing-function:var(--swiper-wrapper-transition-timing-function,initial);box-sizing:content-box}.swiper-android .swiper-slide,.swiper-ios .swiper-slide,.swiper-wrapper{transform:translate3d(0px,0,0)}.swiper-horizontal{touch-action:pan-y}.swiper-vertical{touch-action:pan-x}.swiper-slide{flex-shrink:0;width:100%;height:100%;position:relative;transition-property:transform;display:block}.swiper-slide-invisible-blank{visibility:hidden}.swiper-autoheight,.swiper-autoheight .swiper-slide{height:auto}.swiper-autoheight .swiper-wrapper{align-items:flex-start;transition-property:transform,height}.swiper-backface-hidden .swiper-slide{transform:translateZ(0);-webkit-backface-visibility:hidden;backface-visibility:hidden}.swiper-3d.swiper-css-mode .swiper-wrapper{perspective:1200px}.swiper-3d .swiper-wrapper{transform-style:preserve-3d}.swiper-3d{perspective:1200px}.swiper-3d .swiper-cube-shadow,.swiper-3d .swiper-slide{transform-style:preserve-3d}.swiper-css-mode>.swiper-wrapper{overflow:auto;scrollbar-width:none;-ms-overflow-style:none}.swiper-css-mode>.swiper-wrapper::-webkit-scrollbar{display:none}.swiper-css-mode>.swiper-wrapper>.swiper-slide{scroll-snap-align:start start}.swiper-css-mode.swiper-horizontal>.swiper-wrapper{scroll-snap-type:x mandatory}.swiper-css-mode.swiper-vertical>.swiper-wrapper{scroll-snap-type:y mandatory}.swiper-css-mode.swiper-free-mode>.swiper-wrapper{scroll-snap-type:none}.swiper-css-mode.swiper-free-mode>.swiper-wrapper>.swiper-slide{scroll-snap-align:none}.swiper-css-mode.swiper-centered>.swiper-wrapper::before{content:'';flex-shrink:0;order:9999}.swiper-css-mode.swiper-centered>.swiper-wrapper>.swiper-slide{scroll-snap-align:center center;scroll-snap-stop:always}.swiper-css-mode.swiper-centered.swiper-horizontal>.swiper-wrapper>.swiper-slide:first-child{margin-inline-start:var(--swiper-centered-offset-before)}.swiper-css-mode.swiper-centered.swiper-horizontal>.swiper-wrapper::before{height:100%;min-height:1px;width:var(--swiper-centered-offset-after)}.swiper-css-mode.swiper-centered.swiper-vertical>.swiper-wrapper>.swiper-slide:first-child{margin-block-start:var(--swiper-centered-offset-before)}.swiper-css-mode.swiper-centered.swiper-vertical>.swiper-wrapper::before{width:100%;min-width:1px;height:var(--swiper-cLine truncated
|
|
||||||
+7
-21
@@ -20,7 +20,7 @@
|
|||||||
|
|
||||||
<title class="translate-text">TÜRKMENISTANYŇ "TÜRKMENBAŞY" PAÝDARLAR TÄJIRÇILIK BANKY</title>
|
<title class="translate-text">TÜRKMENISTANYŇ "TÜRKMENBAŞY" PAÝDARLAR TÄJIRÇILIK BANKY</title>
|
||||||
<link rel="icon" type="image/x-icon" href="/images/tbb_logo.svg">
|
<link rel="icon" type="image/x-icon" href="/images/tbb_logo.svg">
|
||||||
<link rel="stylesheet" href="/css/app.css?v=2">
|
<link rel="stylesheet" href="/css/app.css?v=5">
|
||||||
|
|
||||||
<script defer src="https://track.webulgam.com/script.js" data-website-id="79e22534-b5d7-4b5a-849c-c0f338c1018d"></script>
|
<script defer src="https://track.webulgam.com/script.js" data-website-id="79e22534-b5d7-4b5a-849c-c0f338c1018d"></script>
|
||||||
<style>
|
<style>
|
||||||
@@ -142,7 +142,7 @@
|
|||||||
<button type="submit" class="btn btn-sm text-white" style="background:#67b03d">Iber</button>
|
<button type="submit" class="btn btn-sm text-white" style="background:#67b03d">Iber</button>
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
<button type="button" id="chatbot-fab" aria-expanded="false" title="Sorag-jogap boty">Soraglar</button>
|
<!-- <button type="button" id="chatbot-fab" aria-expanded="false" title="Sorag-jogap boty">Soraglar</button> -->
|
||||||
</div>
|
</div>
|
||||||
<section class="hidden lg:block mt-2 px-6 py-4">
|
<section class="hidden lg:block mt-2 px-6 py-4">
|
||||||
<header class="max-w-6xl mx-auto flex justify-between items-center">
|
<header class="max-w-6xl mx-auto flex justify-between items-center">
|
||||||
@@ -238,27 +238,14 @@
|
|||||||
|
|
||||||
<!-- Main slider -->
|
<!-- Main slider -->
|
||||||
<div id="homepage-slider" class="st-slider block">
|
<div id="homepage-slider" class="st-slider block">
|
||||||
<input type="radio" class="cs_anchor radio hidden" name="slider" id="slide1" />
|
|
||||||
<input type="radio" class="cs_anchor radio hidden" name="slider" id="slide2" />
|
|
||||||
<input type="radio" class="cs_anchor radio hidden" name="slider" id="slide3" />
|
|
||||||
<input type="radio" class="cs_anchor radio hidden" name="slider" id="play1" checked="" />
|
|
||||||
|
|
||||||
<div class="images">
|
<div class="images">
|
||||||
<div class="homepage-slider-loader p-16 w-1/full">
|
<div class="homepage-slider-loader p-16 w-1/full">
|
||||||
<div class="skeleton h-64 w-full"></div>
|
<div class="skeleton h-64 w-full"></div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<swiper-container id="slider-images-container" class="mySwiper" space-between="30" autoplay-delay="4000">
|
<div id="slider-images-container" class="custom-slider">
|
||||||
|
<div class="slider-track"></div>
|
||||||
</swiper-container>
|
</div>
|
||||||
|
|
||||||
<!-- <div class="images-inner" id="slider-images-container"> -->
|
|
||||||
|
|
||||||
<!-- <div class="homepage-slider-loader p-16 w-1/5">
|
|
||||||
<div class="skeleton h-64 w-full"></div>
|
|
||||||
</div> -->
|
|
||||||
|
|
||||||
<!-- </div> -->
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@@ -463,8 +450,7 @@
|
|||||||
</footer>
|
</footer>
|
||||||
|
|
||||||
</body>
|
</body>
|
||||||
<script src="/js/slider.js?v=2"></script>
|
<script src="/js/slider.js?v=7"></script>
|
||||||
<script src="/js/app.js?v=2"></script>
|
<script src="/js/app.js?v=3"></script>
|
||||||
<script src="/js/swiper-element-bundle.min.js"></script>
|
|
||||||
<script src="/js/chatbot.js?v=8"></script>
|
<script src="/js/chatbot.js?v=8"></script>
|
||||||
</html>
|
</html>
|
||||||
+17
-15
@@ -180,30 +180,32 @@ async function fetchMenuItems() {
|
|||||||
|
|
||||||
async function fetchSliders() {
|
async function fetchSliders() {
|
||||||
const imageSliderContainer = $_ID('slider-images-container')
|
const imageSliderContainer = $_ID('slider-images-container')
|
||||||
|
const track = imageSliderContainer && imageSliderContainer.querySelector('.slider-track')
|
||||||
|
|
||||||
|
if (!track) return
|
||||||
|
|
||||||
const response = await postData('/api/v1/main_slider/get-all')
|
const response = await postData('/api/v1/main_slider/get-all')
|
||||||
|
|
||||||
removeByClassName('homepage-slider-loader')
|
removeByClassName('homepage-slider-loader')
|
||||||
|
|
||||||
response.data.forEach(slider => {
|
response.data.forEach(slider => {
|
||||||
imageSliderContainer.insertAdjacentHTML('beforeend', `
|
track.insertAdjacentHTML('beforeend', `
|
||||||
<swiper-slide>
|
<div class="slider-slide">
|
||||||
|
|
||||||
<a href="${
|
<a href="${
|
||||||
slider.UUID
|
slider.UUID
|
||||||
? `/banner.html?uuid=${slider.UUID}` + '&lang=' + getCurrentLang()
|
? `/banner.html?uuid=${slider.UUID}` + '&lang=' + getCurrentLang()
|
||||||
: ''
|
: ''
|
||||||
}">
|
}">
|
||||||
<img
|
<img
|
||||||
src="${baseUrl() + slider.slider}"
|
src="${baseUrl() + slider.slider}"
|
||||||
class="mx-auto w-fit cursor-pointer" alt="slider"
|
class="mx-auto w-fit cursor-pointer" alt="slider"
|
||||||
>
|
>
|
||||||
</a>
|
</a>
|
||||||
|
</div>
|
||||||
</swiper-slide>
|
|
||||||
|
|
||||||
`)
|
`)
|
||||||
})
|
})
|
||||||
|
|
||||||
|
initializeMainSlider()
|
||||||
}
|
}
|
||||||
|
|
||||||
async function fetchMiniSliders() {
|
async function fetchMiniSliders() {
|
||||||
|
|||||||
@@ -1,3 +1,143 @@
|
|||||||
|
function initializeMainSlider() {
|
||||||
|
var container = document.getElementById('slider-images-container');
|
||||||
|
if (!container) return;
|
||||||
|
|
||||||
|
var track = container.querySelector('.slider-track');
|
||||||
|
if (!track) return;
|
||||||
|
|
||||||
|
var slides = track.querySelectorAll('.slider-slide');
|
||||||
|
if (slides.length <= 1) return;
|
||||||
|
|
||||||
|
var index = 0;
|
||||||
|
var intervalId = null;
|
||||||
|
var delay = 4000;
|
||||||
|
var dragging = false;
|
||||||
|
var dragStartX = 0;
|
||||||
|
var dragDelta = 0;
|
||||||
|
var suppressClick = false;
|
||||||
|
|
||||||
|
function slideWidth() {
|
||||||
|
return container.offsetWidth || 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
function dragThreshold() {
|
||||||
|
return Math.max(40, slideWidth() * 0.08);
|
||||||
|
}
|
||||||
|
|
||||||
|
function applyTransform(withTransition) {
|
||||||
|
if (withTransition) {
|
||||||
|
track.classList.remove('is-dragging');
|
||||||
|
} else {
|
||||||
|
track.classList.add('is-dragging');
|
||||||
|
}
|
||||||
|
var offset = (-index * slideWidth()) + dragDelta;
|
||||||
|
track.style.transform = 'translateX(' + offset + 'px)';
|
||||||
|
}
|
||||||
|
|
||||||
|
function goTo(i) {
|
||||||
|
index = i;
|
||||||
|
if (index >= slides.length) index = 0;
|
||||||
|
if (index < 0) index = slides.length - 1;
|
||||||
|
dragDelta = 0;
|
||||||
|
applyTransform(true);
|
||||||
|
}
|
||||||
|
|
||||||
|
function next() {
|
||||||
|
goTo(index + 1);
|
||||||
|
}
|
||||||
|
|
||||||
|
function prev() {
|
||||||
|
goTo(index - 1);
|
||||||
|
}
|
||||||
|
|
||||||
|
function start() {
|
||||||
|
stop();
|
||||||
|
intervalId = setInterval(next, delay);
|
||||||
|
}
|
||||||
|
|
||||||
|
function stop() {
|
||||||
|
if (intervalId) {
|
||||||
|
clearInterval(intervalId);
|
||||||
|
intervalId = null;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
function onPointerDown(e) {
|
||||||
|
if (e.pointerType === 'mouse' && e.button !== 0) return;
|
||||||
|
e.preventDefault();
|
||||||
|
dragging = true;
|
||||||
|
dragStartX = e.clientX;
|
||||||
|
dragDelta = 0;
|
||||||
|
stop();
|
||||||
|
track.classList.add('is-dragging');
|
||||||
|
try {
|
||||||
|
container.setPointerCapture(e.pointerId);
|
||||||
|
} catch (err) {}
|
||||||
|
}
|
||||||
|
|
||||||
|
function onPointerMove(e) {
|
||||||
|
if (!dragging) return;
|
||||||
|
dragDelta = e.clientX - dragStartX;
|
||||||
|
applyTransform(false);
|
||||||
|
}
|
||||||
|
|
||||||
|
function onPointerUp() {
|
||||||
|
if (!dragging) return;
|
||||||
|
dragging = false;
|
||||||
|
track.classList.remove('is-dragging');
|
||||||
|
|
||||||
|
if (Math.abs(dragDelta) > dragThreshold()) {
|
||||||
|
suppressClick = true;
|
||||||
|
if (dragDelta < 0) {
|
||||||
|
next();
|
||||||
|
} else {
|
||||||
|
prev();
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
dragDelta = 0;
|
||||||
|
applyTransform(true);
|
||||||
|
}
|
||||||
|
|
||||||
|
dragDelta = 0;
|
||||||
|
start();
|
||||||
|
}
|
||||||
|
|
||||||
|
Array.prototype.forEach.call(slides, function (slide) {
|
||||||
|
var link = slide.querySelector('a');
|
||||||
|
var img = slide.querySelector('img');
|
||||||
|
if (link) link.setAttribute('draggable', 'false');
|
||||||
|
if (img) img.setAttribute('draggable', 'false');
|
||||||
|
});
|
||||||
|
|
||||||
|
container.addEventListener('pointerdown', onPointerDown, { passive: false });
|
||||||
|
container.addEventListener('pointermove', onPointerMove);
|
||||||
|
container.addEventListener('pointerup', onPointerUp);
|
||||||
|
container.addEventListener('pointercancel', onPointerUp);
|
||||||
|
container.addEventListener('dragstart', function (e) {
|
||||||
|
e.preventDefault();
|
||||||
|
}, true);
|
||||||
|
|
||||||
|
container.addEventListener('click', function (e) {
|
||||||
|
if (suppressClick) {
|
||||||
|
e.preventDefault();
|
||||||
|
e.stopPropagation();
|
||||||
|
suppressClick = false;
|
||||||
|
}
|
||||||
|
}, true);
|
||||||
|
|
||||||
|
container.addEventListener('mouseenter', stop);
|
||||||
|
container.addEventListener('mouseleave', function () {
|
||||||
|
if (!dragging) start();
|
||||||
|
});
|
||||||
|
|
||||||
|
window.addEventListener('resize', function () {
|
||||||
|
applyTransform(true);
|
||||||
|
});
|
||||||
|
|
||||||
|
goTo(0);
|
||||||
|
start();
|
||||||
|
}
|
||||||
|
|
||||||
function initializeMiniSlider() {
|
function initializeMiniSlider() {
|
||||||
var slideIndex = 1;
|
var slideIndex = 1;
|
||||||
showSlides(slideIndex);
|
showSlides(slideIndex);
|
||||||
|
|||||||
Vendored
-14
@@ -1,14 +0,0 @@
|
|||||||
/**
|
|
||||||
* Swiper 11.1.0
|
|
||||||
* Most modern mobile touch slider and framework with hardware accelerated transitions
|
|
||||||
* https://swiperjs.com
|
|
||||||
*
|
|
||||||
* Copyright 2014-2024 Vladimir Kharlampidi
|
|
||||||
*
|
|
||||||
* Released under the MIT License
|
|
||||||
*
|
|
||||||
* Released on: March 28, 2024
|
|
||||||
*/
|
|
||||||
|
|
||||||
var Swiper=function(){"use strict";function e(e){return null!==e&&"object"==typeof e&&"constructor"in e&&e.constructor===Object}function t(s,a){void 0===s&&(s={}),void 0===a&&(a={}),Object.keys(a).forEach((i=>{void 0===s[i]?s[i]=a[i]:e(a[i])&&e(s[i])&&Object.keys(a[i]).length>0&&t(s[i],a[i])}))}const s={body:{},addEventListener(){},removeEventListener(){},activeElement:{blur(){},nodeName:""},querySelector:()=>null,querySelectorAll:()=>[],getElementById:()=>null,createEvent:()=>({initEvent(){}}),createElement:()=>({children:[],childNodes:[],style:{},setAttribute(){},getElementsByTagName:()=>[]}),createElementNS:()=>({}),importNode:()=>null,location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""}};function a(){const e="undefined"!=typeof document?document:{};return t(e,s),e}const i={document:s,navigator:{userAgent:""},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""},history:{replaceState(){},pushState(){},go(){},back(){}},CustomEvent:function(){return this},addEventListener(){},removeEventListener(){},getComputedStyle:()=>({getPropertyValue:()=>""}),Image(){},Date(){},screen:{},setTimeout(){},clearTimeout(){},matchMedia:()=>({}),requestAnimationFrame:e=>"undefined"==typeof setTimeout?(e(),null):setTimeout(e,0),cancelAnimationFrame(e){"undefined"!=typeof setTimeout&&clearTimeout(e)}};function r(){const e="undefined"!=typeof window?window:{};return t(e,i),e}function n(e){return void 0===e&&(e=""),e.trim().split(" ").filter((e=>!!e.trim()))}function l(e,t){return void 0===t&&(t=0),setTimeout(e,t)}function o(){return Date.now()}function d(e,t){void 0===t&&(t="x");const s=r();let a,i,n;const l=function(e){const t=r();let s;return t.getComputedStyle&&(s=t.getComputedStyle(e,null)),!s&&e.currentStyle&&(s=e.currentStyle),s||(s=e.style),s}(e);return s.WebKitCSSMatrix?(i=l.transform||l.webkitTransform,i.split(",").length>6&&(i=i.split(", ").map((e=>e.replace(",","."))).join(", ")),n=new s.WebKitCSSMatrix("none"===i?"":i)):(n=l.MozTransform||l.OTransform||l.MsTransform||l.msTransform||l.transform||l.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,"),a=n.toString().split(",")),"x"===t&&(i=s.WebKitCSSMatrix?n.m41:16===a.length?parseFloat(a[12]):parseFloat(a[4])),"y"===t&&(i=s.WebKitCSSMatrix?n.m42:16===a.length?parseFloat(a[13]):parseFloat(a[5])),i||0}function c(e){return"object"==typeof e&&null!==e&&e.constructor&&"Object"===Object.prototype.toString.call(e).slice(8,-1)}function p(){const e=Object(arguments.length<=0?void 0:arguments[0]),t=["__proto__","constructor","prototype"];for(let a=1;a<arguments.length;a+=1){const i=a<0||arguments.length<=a?void 0:arguments[a];if(null!=i&&(s=i,!("undefined"!=typeof window&&void 0!==window.HTMLElement?s instanceof HTMLElement:s&&(1===s.nodeType||11===s.nodeType)))){const s=Object.keys(Object(i)).filter((e=>t.indexOf(e)<0));for(let t=0,a=s.length;t<a;t+=1){const a=s[t],r=Object.getOwnPropertyDescriptor(i,a);void 0!==r&&r.enumerable&&(c(e[a])&&c(i[a])?i[a].__swiper__?e[a]=i[a]:p(e[a],i[a]):!c(e[a])&&c(i[a])?(e[a]={},i[a].__swiper__?e[a]=i[a]:p(e[a],i[a])):e[a]=i[a])}}}var s;return e}function u(e,t,s){e.style.setProperty(t,s)}function m(e){let{swiper:t,targetPosition:s,side:a}=e;const i=r(),n=-t.translate;let l,o=null;const d=t.params.speed;t.wrapperEl.style.scrollSnapType="none",i.cancelAnimationFrame(t.cssModeFrameID);const c=s>n?"next":"prev",p=(e,t)=>"next"===c&&e>=t||"prev"===c&&e<=t,u=()=>{l=(new Date).getTime(),null===o&&(o=l);const e=Math.max(Math.min((l-o)/d,1),0),r=.5-Math.cos(e*Math.PI)/2;let c=n+r*(s-n);if(p(c,s)&&(c=s),t.wrapperEl.scrollTo({[a]:c}),p(c,s))return t.wrapperEl.style.overflow="hidden",t.wrapperEl.style.scrollSnapType="",setTimeout((()=>{t.wrapperEl.style.overflow="",t.wrapperEl.scrollTo({[a]:c})})),void i.cancelAnimationFrame(t.cssModeFrameID);t.cssModeFrameID=i.requestAnimationFrame(u)};u()}function h(e){return e.querySelector(".swiper-slide-transform")||e.shadowRoot&&e.shadowRoot.querySelector(".swiper-slide-transform")||e}function f(e,t){return void 0===t&&(t=""),[...e.children].filter((e=>e.matches(t)))}function g(e){try{return void console.warn(e)}catch(e){}}function v(e,t){void 0===t&&(t=[]);const s=document.createElement(e);return s.classList.add(...Array.isArray(t)?t:n(t)),s}function w(e){const t=r(),s=a(),i=e.getBoundingClientRect(),n=s.body,l=e.clientTop||n.clientTop||0,o=e.clientLeft||n.clientLeft||0,d=e===t?t.scrollY:e.scrollTop,c=e===t?t.scrollX:e.scrollLeft;return{top:i.top+d-l,left:i.left+c-o}}function b(e,t){return r().getComputedStyle(e,null).getPropertyValue(t)}function y(e){let t,s=e;if(s){for(t=0;null!==(s=s.previousSibling);)1===s.nodeType&&(t+=1);return t}}function E(e,t){const s=[];let a=e.parentElement;for(;a;)t?a.matches(t)&&s.push(a):s.push(a),a=a.parentElement;return s}function x(e,t){t&&e.addEventListener("transitionend",(function s(a){a.target===e&&(t.call(e,a),e.removeEventListener("transitionend",s))}))}function S(e,t,s){const a=r(Line truncated
|
|
||||||
//# sourceMappingURL=swiper-bundle.min.js.map
|
|
||||||
Vendored
-14
@@ -1,14 +0,0 @@
|
|||||||
/**
|
|
||||||
* Swiper Custom Element 11.1.4
|
|
||||||
* Most modern mobile touch slider and framework with hardware accelerated transitions
|
|
||||||
* https://swiperjs.com
|
|
||||||
*
|
|
||||||
* Copyright 2014-2024 Vladimir Kharlampidi
|
|
||||||
*
|
|
||||||
* Released under the MIT License
|
|
||||||
*
|
|
||||||
* Released on: May 30, 2024
|
|
||||||
*/
|
|
||||||
|
|
||||||
!function(){"use strict";function e(e){return null!==e&&"object"==typeof e&&"constructor"in e&&e.constructor===Object}function t(s,i){void 0===s&&(s={}),void 0===i&&(i={}),Object.keys(i).forEach((a=>{void 0===s[a]?s[a]=i[a]:e(i[a])&&e(s[a])&&Object.keys(i[a]).length>0&&t(s[a],i[a])}))}const s={body:{},addEventListener(){},removeEventListener(){},activeElement:{blur(){},nodeName:""},querySelector:()=>null,querySelectorAll:()=>[],getElementById:()=>null,createEvent:()=>({initEvent(){}}),createElement:()=>({children:[],childNodes:[],style:{},setAttribute(){},getElementsByTagName:()=>[]}),createElementNS:()=>({}),importNode:()=>null,location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""}};function i(){const e="undefined"!=typeof document?document:{};return t(e,s),e}const a={document:s,navigator:{userAgent:""},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""},history:{replaceState(){},pushState(){},go(){},back(){}},CustomEvent:function(){return this},addEventListener(){},removeEventListener(){},getComputedStyle:()=>({getPropertyValue:()=>""}),Image(){},Date(){},screen:{},setTimeout(){},clearTimeout(){},matchMedia:()=>({}),requestAnimationFrame:e=>"undefined"==typeof setTimeout?(e(),null):setTimeout(e,0),cancelAnimationFrame(e){"undefined"!=typeof setTimeout&&clearTimeout(e)}};function r(){const e="undefined"!=typeof window?window:{};return t(e,a),e}function n(e){return void 0===e&&(e=""),e.trim().split(" ").filter((e=>!!e.trim()))}function l(e,t){return void 0===t&&(t=0),setTimeout(e,t)}function o(){return Date.now()}function d(e,t){void 0===t&&(t="x");const s=r();let i,a,n;const l=function(e){const t=r();let s;return t.getComputedStyle&&(s=t.getComputedStyle(e,null)),!s&&e.currentStyle&&(s=e.currentStyle),s||(s=e.style),s}(e);return s.WebKitCSSMatrix?(a=l.transform||l.webkitTransform,a.split(",").length>6&&(a=a.split(", ").map((e=>e.replace(",","."))).join(", ")),n=new s.WebKitCSSMatrix("none"===a?"":a)):(n=l.MozTransform||l.OTransform||l.MsTransform||l.msTransform||l.transform||l.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,"),i=n.toString().split(",")),"x"===t&&(a=s.WebKitCSSMatrix?n.m41:16===i.length?parseFloat(i[12]):parseFloat(i[4])),"y"===t&&(a=s.WebKitCSSMatrix?n.m42:16===i.length?parseFloat(i[13]):parseFloat(i[5])),a||0}function p(e){return"object"==typeof e&&null!==e&&e.constructor&&"Object"===Object.prototype.toString.call(e).slice(8,-1)}function c(){const e=Object(arguments.length<=0?void 0:arguments[0]),t=["__proto__","constructor","prototype"];for(let i=1;i<arguments.length;i+=1){const a=i<0||arguments.length<=i?void 0:arguments[i];if(null!=a&&(s=a,!("undefined"!=typeof window&&void 0!==window.HTMLElement?s instanceof HTMLElement:s&&(1===s.nodeType||11===s.nodeType)))){const s=Object.keys(Object(a)).filter((e=>t.indexOf(e)<0));for(let t=0,i=s.length;t<i;t+=1){const i=s[t],r=Object.getOwnPropertyDescriptor(a,i);void 0!==r&&r.enumerable&&(p(e[i])&&p(a[i])?a[i].__swiper__?e[i]=a[i]:c(e[i],a[i]):!p(e[i])&&p(a[i])?(e[i]={},a[i].__swiper__?e[i]=a[i]:c(e[i],a[i])):e[i]=a[i])}}}var s;return e}function u(e,t,s){e.style.setProperty(t,s)}function m(e){let{swiper:t,targetPosition:s,side:i}=e;const a=r(),n=-t.translate;let l,o=null;const d=t.params.speed;t.wrapperEl.style.scrollSnapType="none",a.cancelAnimationFrame(t.cssModeFrameID);const p=s>n?"next":"prev",c=(e,t)=>"next"===p&&e>=t||"prev"===p&&e<=t,u=()=>{l=(new Date).getTime(),null===o&&(o=l);const e=Math.max(Math.min((l-o)/d,1),0),r=.5-Math.cos(e*Math.PI)/2;let p=n+r*(s-n);if(c(p,s)&&(p=s),t.wrapperEl.scrollTo({[i]:p}),c(p,s))return t.wrapperEl.style.overflow="hidden",t.wrapperEl.style.scrollSnapType="",setTimeout((()=>{t.wrapperEl.style.overflow="",t.wrapperEl.scrollTo({[i]:p})})),void a.cancelAnimationFrame(t.cssModeFrameID);t.cssModeFrameID=a.requestAnimationFrame(u)};u()}function h(e){return e.querySelector(".swiper-slide-transform")||e.shadowRoot&&e.shadowRoot.querySelector(".swiper-slide-transform")||e}function f(e,t){return void 0===t&&(t=""),[...e.children].filter((e=>e.matches(t)))}function g(e){try{return void console.warn(e)}catch(e){}}function v(e,t){void 0===t&&(t=[]);const s=document.createElement(e);return s.classList.add(...Array.isArray(t)?t:n(t)),s}function w(e){const t=r(),s=i(),a=e.getBoundingClientRect(),n=s.body,l=e.clientTop||n.clientTop||0,o=e.clientLeft||n.clientLeft||0,d=e===t?t.scrollY:e.scrollTop,p=e===t?t.scrollX:e.scrollLeft;return{top:a.top+d-l,left:a.left+p-o}}function b(e,t){return r().getComputedStyle(e,null).getPropertyValue(t)}function y(e){let t,s=e;if(s){for(t=0;null!==(s=s.previousSibling);)1===s.nodeType&&(t+=1);return t}}function x(e,t){const s=[];let i=e.parentElement;for(;i;)t?i.matches(t)&&s.push(i):s.push(i),i=i.parentElement;return s}function E(e,t){t&&e.addEventListener("transitionend",(function s(i){i.target===e&&(t.call(e,i),e.removeEventListener("transitionend",s))}))}function S(e,t,s){const i=r();return sLine truncated
|
|
||||||
//# sourceMappingURL=swiper-element-bundle.min.js.map
|
|
||||||
Reference in new issue
Block a user