appscms-tools-theme 0.2.2 → 0.2.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e0a332d5a035ad29f04a4d688b4919d6398318363008e114c5aecfbabb979fa4
4
- data.tar.gz: f408416b5b7adcef1b45e2698b4bf2086e8181be93a7f98e0823b1f683d2353c
3
+ metadata.gz: d22054ec07496321ab4fcdbec1939dad589d6e0a6dd6ef628a153e64decb45f3
4
+ data.tar.gz: 17df3e1f3326ebb1ad4feff5e50019a3a27d8ceda87701715e136697f777566b
5
5
  SHA512:
6
- metadata.gz: 34430b46bdfbfc3eedd4adb67497c59576299d074125f0aab5bac5ebc639827f5b3e4865759c5ffd3b3b4556ff3c5cda18b07ccac77ea2a1b41d0fd3cb63c895
7
- data.tar.gz: fe3d214831ecb3725f204c93696e1ac17d2d947414b0ac254de3940e34e9f50da82cb68ef2c6863958b019584ec17bee40f58802c425b1e254fab01dadb39fc9
6
+ metadata.gz: aac5542cb6cae559ec84847bc7e6910b2826f3b47d385acc444af6efb95151d7d1f250de6f4ee3807c00867e0f5d35332754274aaeaf642ece4f0a88b9c20792
7
+ data.tar.gz: 25b270c912b9db2ec00262fdc2dc983ee89bcf2147dd385ae57fd578c7597697a565dc5086203daba6589a7474cf930dc2d9a0d4986d7a72635ca8e6c2b274ad
data/_layouts/blog.html CHANGED
@@ -63,7 +63,7 @@
63
63
  {% include section/count.html %}
64
64
  </section>
65
65
  {%- include section/alertbar.html -%}
66
- <script src="/js/TopScroll.js"></script>
66
+ <script src="{{ '/assets/js/TopScroll.js' | relative_url }}"></script>
67
67
  </body>
68
68
 
69
69
  </html>
@@ -0,0 +1,9 @@
1
+ const alertbar = document.querySelector('.alertbar')
2
+ window.addEventListener('scroll', () => {
3
+ if (pageYOffset > 200) {
4
+ alertbar.style.display = 'block'
5
+ } else {
6
+ alertbar.style.display = 'none'
7
+ }
8
+ })
9
+ //
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: appscms-tools-theme
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.2
4
+ version: 0.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - vivek-appscms
@@ -85,6 +85,7 @@ files:
85
85
  - assets/easy.svg
86
86
  - assets/guaranty.svg
87
87
  - assets/images/avatar.png
88
+ - assets/js/TopScroll.js
88
89
  - assets/pdf.svg
89
90
  - assets/protect.svg
90
91
  - assets/support.svg