aboutsummaryrefslogtreecommitdiffstats
path: root/view
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2016-12-13 10:23:56 +0100
committerMario Vavti <mario@mariovavti.com>2016-12-13 10:23:56 +0100
commit0979f11cc32e581ed42f8b42302605a31887be67 (patch)
treec230737633f14d04d8a368d1acdc01b2d05ef532 /view
parent68bdd26426269ff641ef97bdecb3d2cff38fb6b5 (diff)
downloadvolse-hubzilla-0979f11cc32e581ed42f8b42302605a31887be67.tar.gz
volse-hubzilla-0979f11cc32e581ed42f8b42302605a31887be67.tar.bz2
volse-hubzilla-0979f11cc32e581ed42f8b42302605a31887be67.zip
do not increase opacity to more than 1
Diffstat (limited to 'view')
-rwxr-xr-xview/tpl/cover_photo_widget.tpl2
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));
}
});