diff options
author | Mario Vavti <mario@mariovavti.com> | 2016-03-03 12:31:49 +0100 |
---|---|---|
committer | Mario Vavti <mario@mariovavti.com> | 2016-03-03 12:31:49 +0100 |
commit | 8ca877bdd3fbfd6f3b5ef1764c38ce39b2244c95 (patch) | |
tree | 025bdfb76e0aff5aa2b0bbb7c73c10ea39d63b96 /view | |
parent | b704f977daa93f84662b7857dd882d6c5a2c5963 (diff) | |
download | volse-hubzilla-8ca877bdd3fbfd6f3b5ef1764c38ce39b2244c95.tar.gz volse-hubzilla-8ca877bdd3fbfd6f3b5ef1764c38ce39b2244c95.tar.bz2 volse-hubzilla-8ca877bdd3fbfd6f3b5ef1764c38ce39b2244c95.zip |
slide up cover on click
Diffstat (limited to 'view')
-rwxr-xr-x | view/tpl/cover_photo_widget.tpl | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/view/tpl/cover_photo_widget.tpl b/view/tpl/cover_photo_widget.tpl index 68571d257..d6d2517e7 100755 --- a/view/tpl/cover_photo_widget.tpl +++ b/view/tpl/cover_photo_widget.tpl @@ -34,9 +34,13 @@ } }); + + function slideUpCover() { + $('html, body').animate({scrollTop: $('#cover-photo').height() + 'px'}); + } </script> -<div id="cover-photo"> +<div id="cover-photo" onclick="slideUpCover();"> {{$photo_html}} <div id="cover-photo-caption"> <div class="cover-photo-title"> |