Changed behaviour on resize

Alert will only shown once if window width is > 760. On resize from
<=760 to > 760, alert is shown once. After that, resizing window again
and again will not show the alert.