-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Data: 2023/4/27
- Loading branch information
Showing
49 changed files
with
1,095 additions
and
0 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,120 @@ | ||
let _togl = document.querySelector('._cart') | ||
const progressCircle = document.querySelector(".autoplay-progress svg"); | ||
const progressContent = document.querySelector(".autoplay-progress span"); | ||
const friba = document.querySelectorAll('#friba>figure') | ||
|
||
|
||
|
||
|
||
document.getElementById('_cart').addEventListener('click', function () { | ||
|
||
_togl.style.opacity = " 1" | ||
}) | ||
document.getElementById("_cart").addEventListener('mouseenter', function () { | ||
|
||
_togl.style.opacity = " 0" | ||
}) | ||
|
||
document.getElementById("search_").addEventListener("click", function () { | ||
document.querySelector('.search-box').style.opacity = "1" | ||
document.querySelector('.search-box').style.visibility = "visible" | ||
}) | ||
|
||
|
||
document.querySelector(".close").addEventListener("click", function (e) { | ||
e.stopPropagation() | ||
document.querySelector('.search-box').style.opacity = "0" | ||
document.querySelector('.search-box').style.visibility = "hidden" | ||
}) | ||
|
||
|
||
|
||
const swiper = new Swiper(".mySwiper", { | ||
pagination: { | ||
el: ".swiper-pagination", | ||
}, | ||
autoplay: { | ||
delay: 2500, | ||
disableOnInteraction: false | ||
}, | ||
|
||
on: { | ||
autoplayTimeLeft(s, time, progress) { | ||
progressCircle.style.setProperty("--progress", 1 - progress); | ||
progressContent.textContent = `${Math.ceil(time / 1000)}s`; | ||
} | ||
} | ||
}); | ||
|
||
|
||
/* top swiperslider to top */ | ||
|
||
|
||
const topSwiper = new Swiper("._mySwiper", { | ||
//direction: "vertical", | ||
slidesPerView: 1, | ||
mousewheel: true, | ||
autoplay: { | ||
delay: 2500, | ||
disableOnInteraction: false | ||
}, | ||
|
||
pagination: { | ||
el: ".swiper-pagination", | ||
clickable: true, | ||
}, | ||
|
||
}); | ||
|
||
|
||
|
||
friba.forEach((val) => { | ||
val.addEventListener("click", function () { | ||
let temp = val.children[0] | ||
|
||
temp.style.border = '4px solid #E8AE1A ' | ||
}) | ||
val.addEventListener("mouseleave", function () { | ||
let temp = val.children[0] | ||
|
||
temp.style.border = '4px solid #565555' | ||
}) | ||
}) | ||
|
||
|
||
const roSwiper = new Swiper("#myswiper", { | ||
|
||
slidesPerView: 4, | ||
spaceBetween: 30, | ||
autoplay: { | ||
delay: 2500, | ||
disableOnInteraction: false | ||
}, | ||
navigation: { | ||
nextEl: ".swiper-button-next", | ||
prevEl: ".swiper-button-prev", | ||
}, | ||
breakpoints: { | ||
400: { | ||
slidesPerView: 1, | ||
spaceBetween: 20, | ||
}, | ||
640: { | ||
slidesPerView: 2, | ||
spaceBetween: 20, | ||
}, | ||
768: { | ||
slidesPerView: 3, | ||
spaceBetween: 30, | ||
}, | ||
1024: { | ||
slidesPerView: 4, | ||
spaceBetween: 30, | ||
}, | ||
}, | ||
|
||
pagination: { | ||
el: ".swiper-pagination", | ||
clickable: true, | ||
}, | ||
}); |
Oops, something went wrong.