cara mengubah ukuran elemen di js saat lebar halaman kustom berubah

how to change element size in js when custom page width changes
Combative Cod