There is a function that should work only if the width of the window changes, while it should not respond to a change in height, how to do this?
$(window).resize(function () { console.log("Π Π°Π·ΠΌΠ΅ΡΡ ΠΎΠΊΠ½Π° ΠΈΠ·ΠΌΠ΅Π½ΠΈΠ»ΠΈΡΡ"); }) <script src="https://ajax.googleapis.com/ajax/libs/jquery/2.0.0/jquery.min.js"></script>