
Solar Portable Power Station(AC 300W / 65W PD Output, 284Wh Battery, 76800mAh)
samueldiv { background: #f4f4f4; font-family: Helvetica Neue, Helvetica, Arial, sans-serif; font-size: 14px; color: #333; margin: 0; padding: 0; } .swiper { width: 100%; height: auto; margin: 10px auto; } .swiper-slide { text-align: center; font-size: 18px; background: #fff; display: flex; justify-content: center; align-items: center; } .append-buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; } .append-buttons a { flex: 1 1 120px; max-width: 160px; height: 40px; display: flex; justify-content: center; align-items: center; text-align: center; border: 2px solid #ff6500; border-radius: 5px; color: #ff6500; font-size: 16px; } .append-buttons a:hover { background-color: #ff6500; color: #fff; } .append-buttons a.active { background-color: #ff6500; color: #fff; } /**************video********************/ .product-Description-samuel-video{ position: relative; width: 100%; margin: 0px 0 10px 0; } .product-Description-samuel-video video { display: block; width: 100%; cursor: pointer; } /**************************************/ /**************双图********************/ .image-grid-two-description { display: grid; grid-template-columns: repeat(2, 1fr); /* 电脑端每行2个图片 */ gap: 10px; /* 图片间距 */ max-width: 100%; margin: 0px 0 10px 0; } /* 响应式布局,手机端自适应 */ @media screen and (max-width: 600px) { .image-grid-two-description { grid-template-columns: 1fr; /* 手机端一行一个图片 */ gap: 5px; /* 图片间距 */ } } /* 图片容器样式 */ .image-container-two-description { position: relative; } /* 图片样式 */ .image-container-two-description img { width: 100%; display: block; } /* 文本样式 */ .image-container-two-description p { text-align: center; color: #000000; /* 字体颜色:黑色 */ font-size: 18px; /* 字体大小 */ font-weight: bold; /* 加粗 */ margin: 8px 0 0px 0; /* 控制文本与图片的间距 */ } /**************************************/ /**************单长图********************/ /* 图片容器的基本布局 */ .single-image-container-description { max-width: 100%; /* 最大宽度,调整以适应你的需求 */ margin: auto; /* 居中对齐 */ margin: 0px 0 10px 0; } /* 响应式布局 */ @media screen and (max-width: 600px) { .single-image-container-description img { height: 180px; /* 手机端图片固定高度 */ object-fit: cover; /* 图片覆盖,保持比例 */ } } /* 图片样式 */ .single-image-container-description img { width: 100%; height:100%; display: block; } /**************************************/ Backyard Party RV Travel Outdoor Emergency Emergencies Hidden Solar Panels Multiple Fast Ports Visible Data Portable // Swiper 1 const swiper1 = new Swiper('.swiper-1', { slidesPerView: 1, centeredSlides: true, spaceBetween: 0, mousewheel: false // Disable mousewheel scroll }); // Swiper 2 const swiper2 = new Swiper('.swiper-2', { slidesPerView: 1, centeredSlides: true, spaceBetween: 0, mousewheel: false // Disable mousewheel scroll }); const buttons1 = document.querySelectorAll('.buttons-1 a'); const buttons2 = document.querySelectorAll('.buttons-2 a'); function setActiveButton(buttons, clickedButton) { buttons.forEach(button => button.classList.remove('active')); clickedButton.classList.add('active'); } // Event listeners for Swiper 1 buttons1.forEach((button, index) => { button.addEventListener('click', function (e) { e.preventDefault(); swiper1.slideTo(index, 0); setActiveButton(buttons1, this); }); }); // Event listeners for Swiper 2 buttons2.forEach((button, index) => { button.addEventListener('click', function (e) { e.preventDefault(); swiper2.slideTo(index, 0); setActiveButton(buttons2, this); }); }); // Update active button when Swiper 1 slide changes swiper1.on('slideChange', function () { const activeIndex = swiper1.activeIndex; setActiveButton(buttons1, buttons1[activeIndex]); }); // Update active button when Swiper 2 slide changes swiper2.on('slideChange', function () { const activeIndex = swiper2.activeIndex; setActiveButton(buttons2, buttons2[activeIndex]); }); // Function to update images for mainimg function mainimg() { const imgSrcs = [ "https://cdn.shopify.com/s/files/1/0515/3937/8330/files/1_mian.jpg"//首图移动 ]; imgSrcs.forEach((src, index) => { document.getElementById(`firstimg`).src = src; }); } // Function to update images for Swiper 1 function updateImages01() { const imgSrcs = [ "https://cdn.shopify.com/s/files/1/0515/3937/8330/files/3_01e71adb-a21a-4292-9882-0543a76bb55d.jpg",//滑块01_img01 "https://cdn.shopify.com/s/files/1/0515/3937/8330/files/4_4c54df71-dede-4b8f-ba27-f04bebff4b0e.jpg",//滑块01_img02 "https://cdn.shopify.com/s/files/1/0515/3937/8330/files/5_8c49c4ed-60a7-41e2-963e-57fc350e3d03.jpg",//滑块01_img03 "https://cdn.shopify.com/s/files/1/0515/3937/8330/files/10_67298188-352a-4b6f-96fe-9c2139cf2506.jpg"//滑块01_img04 ]; imgSrcs.forEach((src, index) => { document.getElementById(`img-slide-01-${index}`).src = src; }); } // Function to update images for Swiper 2 function updateImages02() { const imgSrcs = [ "https://cdn.shopify.com/s/files/1/0515/3937/8330/files/6_8329cba3-f644-42da-8d6d-9040c61e7cb4.jpg",//滑块02_img01 "https://cdn.shopify.com/s/files/1/0515/3937/8330/files/7_a93365c6-c914-43a0-8f3c-5dbe8d5e1569.jpg",//滑块02_img02 "https://cdn.shopify.com/s/files/1/0515/3937/8330/files/8_3aebf73b-78b6-4240-a061-1af9e91d237a.jpg", "https://cdn.shopify.com/s/files/1/0515/3937/8330/files/9_ba884b9e-b7ee-4fff-b108-de79a8da4c47.jpg" ]; imgSrcs.forEach((src, index) => { document.getElementById(`img-slide-02-${index}`).src = src; }); } // Update images for mobile view if (window.innerWidth