aboutsummaryrefslogtreecommitdiffstats
path: root/view/tpl/cover_photo_widget.tpl
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2016-03-03 12:31:49 +0100
committerMario Vavti <mario@mariovavti.com>2016-03-03 12:31:49 +0100
commit8ca877bdd3fbfd6f3b5ef1764c38ce39b2244c95 (patch)
tree025bdfb76e0aff5aa2b0bbb7c73c10ea39d63b96 /view/tpl/cover_photo_widget.tpl
parentb704f977daa93f84662b7857dd882d6c5a2c5963 (diff)
downloadvolse-hubzilla-8ca877bdd3fbfd6f3b5ef1764c38ce39b2244c95.tar.gz
volse-hubzilla-8ca877bdd3fbfd6f3b5ef1764c38ce39b2244c95.tar.bz2
volse-hubzilla-8ca877bdd3fbfd6f3b5ef1764c38ce39b2244c95.zip
slide up cover on click
Diffstat (limited to 'view/tpl/cover_photo_widget.tpl')
-rwxr-xr-xview/tpl/cover_photo_widget.tpl6
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">