word-games-theme 2.0.0 → 2.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/_layouts/xyzpages.html +1 -1
- data/assets/js/theme.js +19 -8
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d6c4cda93d8f04a1ea6d4126e359a11313e2560b86eb1472f1613b1cc56ff167
|
4
|
+
data.tar.gz: 7683b1dd548dd585bd459033629707858e5724958e60a076fbf4799dfc8e74de
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bf928684f668b03b3ee8aec09712c6994cb8fa589f3f6be2a0d2abde5d29f462d43253931f133adb37cbe2630c2889f17608cd0b466509eac166b9280a7ceaa2
|
7
|
+
data.tar.gz: 7f10afd081cc4bc323f1d964efbd0e04996332e231b9585420a87ffa5561b0de07859a2995618020c04e4199a40b38fc20b56779431293533d5df87ecc13ebaf
|
data/_layouts/xyzpages.html
CHANGED
@@ -110,7 +110,7 @@
|
|
110
110
|
|
111
111
|
{% include xyzpages/xyzFooter.html %}
|
112
112
|
|
113
|
-
<script defer src="/assets/js/xyz.js"></script>
|
113
|
+
<script defer src="{{ site.baseurl }}/{% ministamp assets/js/xyz.js assets/js/xyz.js %}"></script>
|
114
114
|
{%- include script.html -%}
|
115
115
|
</body>
|
116
116
|
|
data/assets/js/theme.js
CHANGED
@@ -24,22 +24,33 @@ if ("{{ site.removeBootstrapJs }}" === "true") {
|
|
24
24
|
});
|
25
25
|
}
|
26
26
|
|
27
|
-
|
28
|
-
|
29
|
-
|
27
|
+
|
28
|
+
var x = window.matchMedia("(max-width: 768px)")
|
29
|
+
let navbarDropdown = document.querySelector("#navbarDropdown");
|
30
|
+
let dropmenu = document.querySelector(".dropmenu");
|
31
|
+
navbarDropdown.addEventListener("click", () => {
|
30
32
|
if (dropmenu.classList.contains("show")) {
|
31
33
|
dropmenu.classList.remove("show");
|
34
|
+
dropmenu.style.display = "none"
|
32
35
|
} else {
|
33
36
|
dropmenu.classList.add("show");
|
37
|
+
if (x.matches) {
|
38
|
+
dropmenu.style.display = "block"
|
39
|
+
} else {
|
40
|
+
dropmenu.style.display = "grid"
|
41
|
+
}
|
42
|
+
|
34
43
|
}
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
44
|
+
});
|
45
|
+
const navbarToggler = document.querySelector('.navbar-toggler')
|
46
|
+
const navBar = document.querySelector('#navbarSupportedContent')
|
47
|
+
navbarToggler.addEventListener('click', () => {
|
39
48
|
if (navBar.classList.contains("show")) {
|
40
49
|
navBar.classList.remove("show");
|
50
|
+
navBar.style.display = "none"
|
41
51
|
} else {
|
42
52
|
navBar.classList.add("show");
|
53
|
+
navBar.style.display = "block"
|
43
54
|
}
|
44
|
-
|
55
|
+
})
|
45
56
|
}
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: word-games-theme
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.
|
4
|
+
version: 2.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- manpreet-appscms
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-05-
|
11
|
+
date: 2023-05-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jekyll
|