mirror of
https://github.com/claudehohl/Stikked.git
synced 2025-04-28 05:51:23 -05:00
codeformat
This commit is contained in:
parent
18d14e9b23
commit
1119b59886
@ -23,17 +23,18 @@ 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',
|
var new_width = (window_width - (spacer * 3));
|
||||||
'left': '-'+(((window_width - 900) / 2 - spacer))+'px'
|
$('.text_formatted').animate({
|
||||||
}, 200);
|
'width': new_width + 'px',
|
||||||
}
|
'left': '-' + (((window_width - 900) / 2 - spacer)) + 'px'
|
||||||
|
},
|
||||||
|
200);
|
||||||
return false;
|
return false;
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user