Add this after the include/exclude part:
Code: Select all
var screenWidth;
if (document.documentElement && document.documentElement.clientWidth)
screenWidth = document.documentElement.clientWidth;
else if (document.body && document.body.clientWidth)
screenWidth = document.body.clientWidth;
else
screenWidth = window.innerWidth;
Replace screen.width with screenWidth.
Just noticed that my screenshots didn't get resized totally ^^

