govuk_publishing_components 24.15.0 → 24.15.1
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c6904321e51846b4273128559fa2ae25c311eda4750e0bcff5c093a43dac9fb5
|
4
|
+
data.tar.gz: 489b5e4af1f5487de4694cc80335b48aaa61479e76ae1f3669de4403672752dc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cb398f43c5ccaf87dcd6f2dfb4d82918eb7f65c16af20964ae7240c2a8355c63fb22df8e54969fe8adb1f546978c261b8d4ec5c426a8284a06612082801a7adb
|
7
|
+
data.tar.gz: ea37f75dcaf0250704d32daa1f4f110e47623f0f60b6f8a743b153ac6cef9520fcf6200c752d092dba1e10a5fb79d16e024518ce1ce0949e1f1f488f2141e21f
|
@@ -47,3 +47,23 @@
|
|
47
47
|
}
|
48
48
|
}
|
49
49
|
}).call(this)
|
50
|
+
|
51
|
+
;(function () {
|
52
|
+
var $menuToggleButtons = document.querySelectorAll('.govuk-js-header-toggle')
|
53
|
+
|
54
|
+
for (var j = 0; j < $menuToggleButtons.length; j++) {
|
55
|
+
var element = $menuToggleButtons[j]
|
56
|
+
|
57
|
+
element.addEventListener('click', function (event) {
|
58
|
+
var expanded = event.target.getAttribute('aria-expanded')
|
59
|
+
|
60
|
+
if (window.GOVUK.analytics && window.GOVUK.analytics.trackEvent) {
|
61
|
+
if (expanded === 'true') {
|
62
|
+
window.GOVUK.analytics.trackEvent('headerClicked', 'menuClosed', { label: 'none' })
|
63
|
+
} else {
|
64
|
+
window.GOVUK.analytics.trackEvent('headerClicked', 'menuOpened', { label: 'none' })
|
65
|
+
}
|
66
|
+
}
|
67
|
+
})
|
68
|
+
}
|
69
|
+
})()
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: govuk_publishing_components
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 24.15.
|
4
|
+
version: 24.15.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- GOV.UK Dev
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-06-
|
11
|
+
date: 2021-06-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: govuk_app_config
|