mirror of
https://github.com/claudehohl/Stikked.git
synced 2025-04-25 12:31:06 -05:00
codeformat
This commit is contained in:
parent
18d14e9b23
commit
1119b59886
@ -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;
|
||||
});
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user