Whats wrong with this jquery?
$(function(){
totalwidth = $(window).width();
if ( totalwidth < 1295 ){
$("#maininvite").width(((1295 - totalwidth)x100 / 1295) + 50 +'%');
}
});
the purpose of it is to make the calculations and then add it to the already set width of 50%.
it gives me unexpected identifier in the chrome inspect
Looks like this line is your issue
supposed to be
Better calculate the value and then concatenate to the
'%'