diff options
author | Nicolas LÅ“uillet <nicolas@loeuillet.org> | 2016-10-03 09:09:45 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-10-03 09:09:45 +0200 |
commit | ab809de18415a9ce3bbc95d3a0a1af6c50a41c4f (patch) | |
tree | bee406df7af4b6e024764e153d8844dfe69aeda1 /src/Wallabag/CoreBundle/Resources/views/themes/baggy/Entry/entry.html.twig | |
parent | dfbbf0e18ad585e318c2609e46963e4b9fd198ef (diff) | |
parent | 49f25d6ee820619a15851b12a33667d707e4edf7 (diff) | |
download | wallabag-ab809de18415a9ce3bbc95d3a0a1af6c50a41c4f.tar.gz wallabag-ab809de18415a9ce3bbc95d3a0a1af6c50a41c4f.tar.zst wallabag-ab809de18415a9ce3bbc95d3a0a1af6c50a41c4f.zip |
Merge pull request #2314 from wallabag/assets
Assets work
Diffstat (limited to 'src/Wallabag/CoreBundle/Resources/views/themes/baggy/Entry/entry.html.twig')
-rw-r--r-- | src/Wallabag/CoreBundle/Resources/views/themes/baggy/Entry/entry.html.twig | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/src/Wallabag/CoreBundle/Resources/views/themes/baggy/Entry/entry.html.twig b/src/Wallabag/CoreBundle/Resources/views/themes/baggy/Entry/entry.html.twig index bec4b70f..be1e3647 100644 --- a/src/Wallabag/CoreBundle/Resources/views/themes/baggy/Entry/entry.html.twig +++ b/src/Wallabag/CoreBundle/Resources/views/themes/baggy/Entry/entry.html.twig | |||
@@ -82,22 +82,4 @@ | |||
82 | "entryId": "{{ entry.id }}" | 82 | "entryId": "{{ entry.id }}" |
83 | } | 83 | } |
84 | </script> | 84 | </script> |
85 | <script src="{{ asset('bundles/wallabagcore/themes/_global/js/restoreScroll.js')}}"></script> | ||
86 | <script type="text/javascript"> | ||
87 | $(document).ready(function() { | ||
88 | $(window).scroll(function(e){ | ||
89 | var scrollTop = $(window).scrollTop(); | ||
90 | var docHeight = $(document).height(); | ||
91 | var scrollPercent = (scrollTop) / (docHeight); | ||
92 | var scrollPercentRounded = Math.round(scrollPercent*100)/100; | ||
93 | savePercent({{ entry.id }}, scrollPercentRounded); | ||
94 | }); | ||
95 | |||
96 | retrievePercent({{ entry.id }}); | ||
97 | |||
98 | $(window).resize(function(){ | ||
99 | retrievePercent({{ entry.id }}); | ||
100 | }); | ||
101 | }); | ||
102 | </script> | ||
103 | {% endblock %} | 85 | {% endblock %} |