diff options
author | Mario Vavti <mario@mariovavti.com> | 2016-12-13 10:23:56 +0100 |
---|---|---|
committer | Mario Vavti <mario@mariovavti.com> | 2016-12-13 10:24:30 +0100 |
commit | c434d98365da57eabed85a3fe878866fec48e044 (patch) | |
tree | b2ea3eab50a9acef1b883afa03ded91483c2e111 /view/tpl/cover_photo_widget.tpl | |
parent | 342c4384e449fce8daf3d352f19306b93f8c7039 (diff) | |
download | volse-hubzilla-c434d98365da57eabed85a3fe878866fec48e044.tar.gz volse-hubzilla-c434d98365da57eabed85a3fe878866fec48e044.tar.bz2 volse-hubzilla-c434d98365da57eabed85a3fe878866fec48e044.zip |
do not increase opacity to more than 1
Diffstat (limited to 'view/tpl/cover_photo_widget.tpl')
-rwxr-xr-x | view/tpl/cover_photo_widget.tpl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/view/tpl/cover_photo_widget.tpl b/view/tpl/cover_photo_widget.tpl index 2b47270c9..bc1f421bd 100755 --- a/view/tpl/cover_photo_widget.tpl +++ b/view/tpl/cover_photo_widget.tpl @@ -53,7 +53,7 @@ } } } - if($('#cover-photo').length) { + if($('#cover-photo').length && $('main').css('opacity') < 1) { $('main').css('opacity', ($(window).scrollTop()/$('#cover-photo').height()).toFixed(1)); } }); |