cec-nuxt-lib 0.11.0 → 0.11.1
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
|
@@ -83,9 +83,6 @@ const config = {
|
|
|
83
83
|
removeAbout: true
|
|
84
84
|
}
|
|
85
85
|
};
|
|
86
|
-
let updateToggleText = () => {
|
|
87
|
-
console.log("no op");
|
|
88
|
-
};
|
|
89
86
|
const doSearch = async () => {
|
|
90
87
|
if (searchTerms.value) {
|
|
91
88
|
await navigateTo(
|
|
@@ -95,25 +92,11 @@ const doSearch = async () => {
|
|
|
95
92
|
}
|
|
96
93
|
};
|
|
97
94
|
onMounted(() => {
|
|
98
|
-
updateToggleText = () => {
|
|
99
|
-
const x = document.getElementById("baToggleText");
|
|
100
|
-
if (x.innerText === "Listen and translate") {
|
|
101
|
-
x.innerText = "Close listen and translate";
|
|
102
|
-
} else {
|
|
103
|
-
x.innerText = "Listen and translate";
|
|
104
|
-
}
|
|
105
|
-
BrowseAloud.panel.toggleBar();
|
|
106
|
-
};
|
|
107
95
|
try {
|
|
108
96
|
CookieControl.load(config);
|
|
109
97
|
} catch (ignore) {
|
|
110
98
|
console.log("No cookie control");
|
|
111
99
|
}
|
|
112
|
-
try {
|
|
113
|
-
BrowseAloud.disableBrowsealoudAnalytics();
|
|
114
|
-
} catch (ignore) {
|
|
115
|
-
console.log("No reachdeck.");
|
|
116
|
-
}
|
|
117
100
|
let accordions = document.getElementsByClassName("access-acc-container");
|
|
118
101
|
if (accordions.length) {
|
|
119
102
|
let hash = window.location.hash;
|
|
@@ -329,47 +312,6 @@ onMounted(() => {
|
|
|
329
312
|
</div>
|
|
330
313
|
<div class="float-end icon-bank">
|
|
331
314
|
<ul class="mb-2 mb-lg-0 ps-0 ms-auto d-inline list-unstyled">
|
|
332
|
-
<li class="nav-item d-inline text-end">
|
|
333
|
-
<div class="ba_listenTranslateToggle d-inline">
|
|
334
|
-
<a
|
|
335
|
-
class="nav-link pe-0 d-inline ps-0"
|
|
336
|
-
@click="updateToggleText()"
|
|
337
|
-
href="#"
|
|
338
|
-
>
|
|
339
|
-
<i role="img" aria-label="Listen">
|
|
340
|
-
<svg
|
|
341
|
-
class="d-inline"
|
|
342
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
343
|
-
width="22"
|
|
344
|
-
height="22"
|
|
345
|
-
viewBox="0 0 24 24"
|
|
346
|
-
>
|
|
347
|
-
<path
|
|
348
|
-
d="M22 0v24l-11-6v-2.278l9 4.909v-17.262l-9 4.91v-2.279l11-6zm-13 6v12h-7v-12h7z"
|
|
349
|
-
></path>
|
|
350
|
-
<title>Audio icon</title>
|
|
351
|
-
</svg>
|
|
352
|
-
</i>
|
|
353
|
-
<i role="img" aria-label="Translate">
|
|
354
|
-
<svg
|
|
355
|
-
class="d-inline"
|
|
356
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
357
|
-
width="24"
|
|
358
|
-
height="24"
|
|
359
|
-
viewBox="0 0 24 24"
|
|
360
|
-
>
|
|
361
|
-
<path
|
|
362
|
-
d="M17.246 4.042c-3.36 0-3.436-2.895-7.337-2.895-2.108 0-4.075.98-4.909 1.694v-2.841h-2v24h2v-9.073c1.184-.819 2.979-1.681 4.923-1.681 3.684 0 4.201 2.754 7.484 2.754 2.122 0 3.593-1.359 3.593-1.359v-12.028s-1.621 1.429-3.754 1.429zm1.754 9.544c-.4.207-.959.414-1.593.414-.972 0-1.498-.363-2.371-.964-1.096-.755-2.596-1.79-5.113-1.79-1.979 0-3.71.679-4.923 1.339v-7.488c1.019-.902 2.865-1.949 4.909-1.949 1.333 0 1.894.439 2.741 1.103.966.756 2.288 1.792 4.596 1.792.627 0 1.215-.086 1.754-.223v7.766z"
|
|
363
|
-
></path>
|
|
364
|
-
<title>Translate icon</title>
|
|
365
|
-
</svg>
|
|
366
|
-
</i>
|
|
367
|
-
<span id="baToggleText" class="d-none d-lg-inline"
|
|
368
|
-
>Listen and translate</span
|
|
369
|
-
>
|
|
370
|
-
</a>
|
|
371
|
-
</div>
|
|
372
|
-
</li>
|
|
373
315
|
<li class="nav-item d-inline text-end">
|
|
374
316
|
<a
|
|
375
317
|
class="nav-link d-inline pe-0"
|
package/package.json
CHANGED