codeformat

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

View File

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