Set Image to Fullscreen for window.onresize

Hello, I'm just trying to create an event so that when the app/window size changes (or in this case, when you switch from landscape to portrait mode) - an image will change to full-screen. I've tried to use fancybox, but the plugin won't seem to work. So I'm just curious if anyone can give me some assistance.
1 person has
this question