|
|
|
@ -29,6 +29,7 @@
|
|
|
|
|
<img src="">
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
<div class="dots-container"></div>
|
|
|
|
|
<div class="newszy">
|
|
|
|
|
<h3>新闻的作用</h3>
|
|
|
|
|
<ul>
|
|
|
|
@ -54,10 +55,13 @@
|
|
|
|
|
let pro = (window.pageYOffset / totalHight) * 100
|
|
|
|
|
Prostick.style.width = pro + '%'
|
|
|
|
|
})
|
|
|
|
|
const carouselImages = document.querySelector('.banner img')
|
|
|
|
|
document.addEventListener("DOMContentLoaded",function(){
|
|
|
|
|
const imgs =[]
|
|
|
|
|
const imgs =[];
|
|
|
|
|
const carouselImages = document.querySelector('.banner img');
|
|
|
|
|
const dotsContainer = document.querySelector('.dots-container');
|
|
|
|
|
let currentIndex = 0;
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
</script>
|
|
|
|
|
</body>
|
|
|
|
|
|
|
|
|
|