skip to Main Content

How to detect browser viewport size change using JavaScript's matchMedia method?

How can I detect a change in viewport? The scripts: let vwChange = window.matchMedia("(min-width: 360px ) and (max-width: 765px )"); document.addEventListener("scroll", function(vwChange) { const headerChangek = document.querySelector(".footer_bottom_content"); if (window.scrollY < 3296) { headerChangek.classList.add("scrolledz"); } else { headerChangek.classList.remove("scrolledz"); } }) .footer_bottom_content…

VIEW QUESTION

nginx unable to load media files – 404 (Not found) – Docker

I have tried everything to serve my media file but yet getting same 404 error. Please guide. My docker-compose file: version: "3.9" services: nginx: container_name: realestate_preprod_nginx_con build: ./nginx volumes: - static_volume:/home/inara/RealEstatePreProd/static - media_volume:/home/inara/RealEstatePreProd/media networks: glory1network: ipv4_address: 10.1.1.8 expose: - 8000…

VIEW QUESTION
Back To Top
Search