Line 289: | Line 289: | ||
$(window).resize(function(){ | $(window).resize(function(){ | ||
var windowWidth; | var windowWidth; | ||
− | windowWidth = document.documentElement.clientWidth; | + | windowWidth = document.documentElement.clientWidth; |
$('#Project').attr("coords",("'" + (640*windowWidth/1280) + "," + (20*windowWidth/1280) + "," + (880*windowWidth/1280) + "," + (95*windowWidth/1280) +"'")); | $('#Project').attr("coords",("'" + (640*windowWidth/1280) + "," + (20*windowWidth/1280) + "," + (880*windowWidth/1280) + "," + (95*windowWidth/1280) +"'")); | ||
+ | |||
}); | }); |
Revision as of 02:24, 19 October 2016