Thread Starter
canho
(@canho)
This code that causes the floating button to be relocated in the window makes the slide not work:
var width;
var height;
$ (window) .resize (function () {
var newWidth = $ (window) .width ();
var newHeight = $ (window) .height ();
if (newWidth! = width || newHeight! = height) {
width = newWidth;
height = newHeight;
doneResizing ();
}
});
function doneResizing () {
jQuery (“# requestQuote”). css (“bottom”, “100px”);
jQuery (“# requestQuote”). css (“right”, “0px”);
setTimeout (function () {
jQuery (“# requestQuote”). animate ({“right”: “- = 140px”}, “slow”);
}, 8000);
}
For what?