I wan't to include this script in my wordpress theme, making it resize all of the images inside posts according to the current window height:
https://github.com/gutierrezalex/photo-resize
I've made a basic test page in my text editor and it resizes the image just fine. However, when I try to apply/include it in my wordpress theme I simply can't get it to work.