codeformat

This commit is contained in:
Claude 2012-04-13 21:42:49 +02:00
parent 18d14e9b23
commit 1119b59886

View File

@ -24,16 +24,17 @@ ST.show = function() {
ST.expand = function() { ST.expand = function() {
$('.expand').click(function() { $('.expand').click(function() {
var window_width = $(window).width(); var window_width = $(window).width();
if(window_width > 900){ var spacer = 20;
var spacer = 20; //Math.round(window_width / 10); if (window_width < 900) {
var new_width = (window_width - (spacer * 3)); window_width = 900;
spacer = 0;
$('.text_formatted').animate({
'width': new_width+'px',
'left': '-'+(((window_width - 900) / 2 - spacer))+'px'
}, 200);
} }
var new_width = (window_width - (spacer * 3));
$('.text_formatted').animate({
'width': new_width + 'px',
'left': '-' + (((window_width - 900) / 2 - spacer)) + 'px'
},
200);
return false; return false;
}); });
}; };