1 2function sliderStart() { 3 4 const slide = document.getElementById('slide_wrapp'); //ã¹ã©ã¤ãã¼è¦ª 5 const slideItem = slide.querySelectorAll('.slide_item'); //ã¹ã©ã¤ãè¦ç´ 6 const totalNum = slideItem.length - 1; // ã¹ã©ã¤ãã®ææ°ãåå¾ 7 const FadeTime = 2000; //ãã§ã¼ãã¤ã³ã®æé 8 const IntarvalTime = 5000; //ã¯ãã¹ãã§ã¼ããããã¾ã§ã®éé 9 let actNum = 0; //ç¾å¨ã¢ã¯ãã£ããªçªå· 10 let nowSlide; //ç¾å¨è¡¨ç¤ºä¸ã®ã¹ã©ã¤ã 11 let NextSlide; //次ã«è¡¨ç¤ºããã¹ã©ã¤ã 12 13 // DOMèªã¿è¾¼ã¿æã«ã¹ã©ã¤ãã®1æç®ããã§ã¼ãã¤ã³ 14 slideItem[0].classList.add('show_', 'zoom_'); 15 16 // å¦çãç¹°ãè¿ã 17 setInterval(() => { 18 if (actNum < totalNum) { 19 20 nowSlide = slideItem[actNum]; 21 NextSlide = slideItem[++actNum]; 22 23 //.show_åé¤ã§ãã§ã¼ãã¢ã¦ã 24 nowSlide.classList.remove('show_'); 25 // ã¨åæã«ã次ã®ã¹ã©ã¤ãããºã¼ã ããªãããã§ã¼ãã¤ã³ãã 26 NextSlide.classList.add('show_', 'zoom_'); 27 //ãã§ã¼ãã¢ã¦ãå®äºå¾ã.zoom_åé¤ 28 setTimeout(() => { 29 nowSlide.classList.remove('zoom_'); 30 }, FadeTime); 31 32 33 } else { 34 35 nowSlide = slideItem[actNum]; 36 NextSlide = slideItem[actNum = 0]; 37 38 //.show_åé¤ã§ãã§ã¼ãã¢ã¦ã 39 nowSlide.classList.remove('show_'); 40 // ã¨åæã«ã次ã®ã¹ã©ã¤ãããºã¼ã ããªãããã§ã¼ãã¤ã³ãã 41 NextSlide.classList.add('show_', 'zoom_'); 42 //ãã§ã¼ãã¢ã¦ãå®äºå¾ã.zoom_åé¤ 43 setTimeout(() => { 44 nowSlide.classList.remove('zoom_'); 45 }, FadeTime); 46 47 }; 48 }, IntarvalTime); 49 50}
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.