sinatra-hexacta 1.2.3 → 1.2.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/sinatra/views/libraries/include_js_before.slim +9 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9e90a3677be430822cfa304d87e0e2083cb678d51007eef3ee2213e3830417bd
|
4
|
+
data.tar.gz: f71c13e6243ba309c1a74e003177fb94cc258ba79864d21351a71cc8f2e61985
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fd47cb2c5c388d0cc9f310000ce47e4ecfc178d0fdb9a23217b662df86508f0352df045a92e052d9f062e73564d03968a2344272ae45c41ded5a8eb23da40e69
|
7
|
+
data.tar.gz: f51bfabb3069961d8d77287d837494ed942a7dc81572a3ca24f1c84dafa00e6562d15d0053bb982ab1dec02400d249eaa5c914232d1ebab5a49345d0b8ab2717
|
@@ -5,7 +5,15 @@ script src="/sinatra-hexacta/vendors/typeahead.js/typeahead.bundle.min.js"
|
|
5
5
|
script src="/sinatra-hexacta/vendors/chartist/chartist.min.js"
|
6
6
|
script src="/sinatra-hexacta/vendors/chartist/chartist-plugin-legend.js"
|
7
7
|
|
8
|
-
|
9
8
|
script src="/sinatra-hexacta/js/app.js?ver=#{settings.version}" type='text/javascript'
|
10
9
|
script src="/sinatra-hexacta/js/finder.js?ver=#{settings.version}" type='text/javascript'
|
11
10
|
script src="/sinatra-hexacta/js/process.js?ver=#{settings.version}" type='text/javascript'
|
11
|
+
|
12
|
+
javascript:
|
13
|
+
const storeScroll = () => {
|
14
|
+
document.documentElement.dataset.scroll = window.scrollY;
|
15
|
+
}
|
16
|
+
// Listen for new scroll events
|
17
|
+
document.addEventListener('scroll', storeScroll);
|
18
|
+
// Update scroll position for first time
|
19
|
+
storeScroll();
|