cec-nuxt-lib 0.6.7 → 0.6.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/module.json
CHANGED
|
@@ -116,35 +116,34 @@ onMounted(() => {
|
|
|
116
116
|
} catch (ignore) {
|
|
117
117
|
console.log('No reachdeck.');
|
|
118
118
|
}
|
|
119
|
-
});
|
|
120
119
|
|
|
121
|
-
// Make accordions spring open if there is a hash (looks for an H3)
|
|
122
|
-
let hash = window.location.hash;
|
|
123
|
-
if (hash) {
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
120
|
+
// Make accordions spring open if there is a hash (looks for an H3)
|
|
121
|
+
let hash = window.location.hash;
|
|
122
|
+
if (hash) {
|
|
123
|
+
hash = hash.toLowerCase().replace(/^#/, '').replace(/_/g, ' ');
|
|
124
|
+
Array.from(document.getElementsByTagName('H3'))
|
|
125
|
+
.filter((e) => e.innerHTML.toLowerCase().includes(hash))
|
|
126
|
+
.forEach((h3, i) => {
|
|
127
|
+
let parent = h3.parentNode;
|
|
128
|
+
if (parent.tagName === 'ARTICLE') {
|
|
129
|
+
let el = parent.previousElementSibling;
|
|
130
|
+
let input =
|
|
131
|
+
el.tagName === 'LABEL'
|
|
132
|
+
? el.control
|
|
133
|
+
: el.tagName === 'INPUT'
|
|
134
|
+
? el
|
|
135
|
+
: undefined;
|
|
136
|
+
if (input) {
|
|
137
|
+
input.checked = true;
|
|
138
|
+
if (!i) {
|
|
139
|
+
el.scrollIntoView();
|
|
140
|
+
}
|
|
141
141
|
}
|
|
142
142
|
}
|
|
143
|
-
}
|
|
144
|
-
|
|
145
|
-
}
|
|
143
|
+
});
|
|
144
|
+
}
|
|
146
145
|
|
|
147
|
-
// Canvas stuff
|
|
146
|
+
// Canvas stuff
|
|
148
147
|
const getQuInfo = (b) => {
|
|
149
148
|
let temp = b.id.split('_');
|
|
150
149
|
let id = temp[3];
|
package/package.json
CHANGED