JS, , , . , -, , (, , / , ).
In fact, you can leave the parrot at the top for narrow screens and save some real estate, as well as refuse to misinterpret the version position:fixedfor older versions of the Safari browser. Of course, you could implement a more advanced approach, but this should be a good starting point - try it out, run the following script on your page (just the console is ok):
$('head').append('<style type="text/css">#parrot-box.fixed {position:absolute;}</style><style type="text/css" media="screen and (min-width: 982px)">#parrot-box.fixed {position:fixed !important;}</style>');
First, it redefines the original ad #parrot-box.fixed, and then applies your floating style to each window with a width of at least 982 pixels (the width of the page wrapper).
source
share