I\'ve got a problem with window.resize . My code js/jquery is here
var x = $(window).width();
var y = $(window).height();
var z = $(\'#card\').height();
var a =
I think you have to use this, because the way you are doing it, the function is executed and the return value of the function is set as the callback function, which will not work:
$(document).ready(function() {
updateBodySize();
}); //kiedy zaladowany
$(window).resize(function() {
updateBodySize();
}); //kiedy zmiana rozmiaru