From 8ca877bdd3fbfd6f3b5ef1764c38ce39b2244c95 Mon Sep 17 00:00:00 2001 From: Mario Vavti Date: Thu, 3 Mar 2016 12:31:49 +0100 Subject: slide up cover on click --- view/tpl/cover_photo_widget.tpl | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'view/tpl') 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'}); + } -
+
{{$photo_html}}
-- cgit v1.2.3