diff --git a/WebNews/index.html b/WebNews/index.html index 8aa1286..a55586f 100644 --- a/WebNews/index.html +++ b/WebNews/index.html @@ -56,12 +56,21 @@ Prostick.style.width = pro + '%' }) document.addEventListener("DOMContentLoaded",function(){ - const imgs =[]; + let imgs =[]; const carouselImages = document.querySelector('.banner img'); const dotsContainer = document.querySelector('.dots-container'); let currentIndex = 0; }) - + document.addEventListener("DOMContentLoaded",function(){ + let newszyLis = []; + const liContent = document.querySelector('.newszy li'); + document.write(`
${newsInfo.text}
`) + })