#Side_slide width hard coded in script.js

Hi,

Could you please update script.js to dynamically fetch the width of the #Side_slide element to allow us to override its width in CSS?

Right now, you have four lines of code with a hard-coded width of 250px or 125px (half of the width) in the sideSlide() function.

Could you please change them in the "button" function:

$('body').animate({ 'right':-125 },300);
to
$('body').animate({ 'right':-(slide.width()/2) },300);

and in the "close" function:

slide.animate({ 'left':-250 },300); 
to
slide.animate({ 'left':-(slide.width()) },300); 


Thanks

Comments

Sign In or Register to comment.