Enhance slider functionality by adding dynamic height adjustment based on image size. Update CSS for smoother transitions and increment version numbers for app.css and slider.js. Adjust HTML to reflect new stylesheet and script versions.

This commit is contained in:
Mekan1206
2026-08-04 06:43:37 +05:00
parent 11e7398f29
commit 331acbbeb9
5 changed files with 23 additions and 102 deletions

View File

@@ -1,98 +1,3 @@
{"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}
{"sessionId":"afcad7","runId":"post-fix","hypothesisId":"H1","location":"slider.js:logGap","message":"updateHeight","data":{"index":5,"activeSlideH":640,"activeImgH":640,"containerH":405,"containerStyleH":"640px","trackH":640,"imagesParentH":405,"gapContainerMinusImg":-235,"gapTrackMinusActiveSlide":0,"maxSlideH":640,"trackEqualsMaxSlide":true,"heights":[{"slideH":429,"imgH":429,"naturalH":375},{"slideH":405,"imgH":405,"naturalH":380},{"slideH":405,"imgH":405,"naturalH":380},{"slideH":414,"imgH":414,"naturalH":349},{"slideH":405,"imgH":405,"naturalH":576},{"slideH":640,"imgH":640,"naturalH":375}],"containerMaxH":"640px"},"timestamp":1785807808474}
{"sessionId":"afcad7","runId":"post-fix","hypothesisId":"H1","location":"slider.js:logGap","message":"updateHeight","data":{"index":0,"activeSlideH":429,"activeImgH":429,"containerH":640,"containerStyleH":"429px","trackH":640,"imagesParentH":640,"gapContainerMinusImg":211,"gapTrackMinusActiveSlide":211,"maxSlideH":640,"trackEqualsMaxSlide":true,"heights":[{"slideH":429,"imgH":429,"naturalH":375},{"slideH":405,"imgH":405,"naturalH":380},{"slideH":405,"imgH":405,"naturalH":380},{"slideH":414,"imgH":414,"naturalH":349},{"slideH":405,"imgH":405,"naturalH":576},{"slideH":640,"imgH":640,"naturalH":375}],"containerMaxH":"640px"},"timestamp":1785807810924}
{"sessionId":"afcad7","runId":"post-fix","hypothesisId":"H1","location":"slider.js:logGap","message":"updateHeight","data":{"index":1,"activeSlideH":405,"activeImgH":405,"containerH":429,"containerStyleH":"405px","trackH":640,"imagesParentH":429,"gapContainerMinusImg":24,"gapTrackMinusActiveSlide":235,"maxSlideH":640,"trackEqualsMaxSlide":true,"heights":[{"slideH":429,"imgH":429,"naturalH":375},{"slideH":405,"imgH":405,"naturalH":380},{"slideH":405,"imgH":405,"naturalH":380},{"slideH":414,"imgH":414,"naturalH":349},{"slideH":405,"imgH":405,"naturalH":576},{"slideH":640,"imgH":640,"naturalH":375}],"containerMaxH":"640px"},"timestamp":1785807814923}

View File

@@ -183,6 +183,7 @@ blockquote {
max-height: 640px;
max-width: 1280px;
margin: 0 auto;
transition: height 0.35s ease;
}
.custom-slider:active {

File diff suppressed because one or more lines are too long

View File

@@ -20,7 +20,7 @@
<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="stylesheet" href="/css/app.css?v=5">
<link rel="stylesheet" href="/css/app.css?v=6">
<script defer src="https://track.webulgam.com/script.js" data-website-id="79e22534-b5d7-4b5a-849c-c0f338c1018d"></script>
<style>
@@ -450,7 +450,7 @@
</footer>
</body>
<script src="/js/slider.js?v=7"></script>
<script src="/js/slider.js?v=10"></script>
<script src="/js/app.js?v=3"></script>
<script src="/js/chatbot.js?v=8"></script>
</html>

View File

@@ -34,12 +34,23 @@ function initializeMainSlider() {
track.style.transform = 'translateX(' + offset + 'px)';
}
function updateHeight() {
var slide = slides[index];
if (!slide) return;
var img = slide.querySelector('img');
var height = (img && img.offsetHeight) || slide.offsetHeight;
if (height > 0) {
container.style.height = height + 'px';
}
}
function goTo(i) {
index = i;
if (index >= slides.length) index = 0;
if (index < 0) index = slides.length - 1;
dragDelta = 0;
applyTransform(true);
updateHeight();
}
function next() {
@@ -106,7 +117,10 @@ function initializeMainSlider() {
var link = slide.querySelector('a');
var img = slide.querySelector('img');
if (link) link.setAttribute('draggable', 'false');
if (img) img.setAttribute('draggable', 'false');
if (img) {
img.setAttribute('draggable', 'false');
img.addEventListener('load', updateHeight);
}
});
container.addEventListener('pointerdown', onPointerDown, { passive: false });
@@ -132,6 +146,7 @@ function initializeMainSlider() {
window.addEventListener('resize', function () {
applyTransform(true);
updateHeight();
});
goTo(0);