@onsvisual/svelte-components 0.1.74 → 0.1.76
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.
|
@@ -46,6 +46,7 @@
|
|
|
46
46
|
let message = "";
|
|
47
47
|
let lang = $page && $page.url.host.startsWith("cy") ? "cy" : "en";
|
|
48
48
|
let location = null; // For keeping track of navigation multi-page apps
|
|
49
|
+
let baseurl = "//www.ons.gov.uk";
|
|
49
50
|
|
|
50
51
|
function hasCookiesPreferencesSet() {
|
|
51
52
|
return -1 < document.cookie.indexOf("cookies_preferences_set=true");
|
|
@@ -166,7 +167,7 @@
|
|
|
166
167
|
>
|
|
167
168
|
{#if !showConfirm}
|
|
168
169
|
<form
|
|
169
|
-
action="/cookies/accept-all"
|
|
170
|
+
action="{baseurl + '/cookies/accept-all'}"
|
|
170
171
|
method="GET"
|
|
171
172
|
id="global-cookie-message"
|
|
172
173
|
aria-label="cookie banner"
|
|
@@ -185,7 +186,8 @@
|
|
|
185
186
|
)}
|
|
186
187
|
</p>
|
|
187
188
|
<p>
|
|
188
|
-
{i18n("We would like to set")}
|
|
189
|
+
{i18n("We would like to set")}
|
|
190
|
+
<a href="{baseurl + '/cookies'}">{i18n("additional cookies")}</a>
|
|
189
191
|
{i18n(
|
|
190
192
|
"to remember your settings and understand how you use the site. This helps us to improve our services."
|
|
191
193
|
)}
|
|
@@ -219,7 +221,9 @@
|
|
|
219
221
|
</button>
|
|
220
222
|
</div>
|
|
221
223
|
<div class="ons-grid__col">
|
|
222
|
-
<a class="ons-cookies-banner__link" href="
|
|
224
|
+
<a class="ons-cookies-banner__link" href="{baseurl + '/cookies'}"
|
|
225
|
+
>{i18n("View cookies")}</a
|
|
226
|
+
>
|
|
223
227
|
</div>
|
|
224
228
|
</div>
|
|
225
229
|
</div>
|
|
@@ -236,7 +240,8 @@
|
|
|
236
240
|
<p class="ons-cookies-banner__desc ons-u-mb-no@s ons-u-mr-s@s">
|
|
237
241
|
<span>{i18n(message)}</span>
|
|
238
242
|
<span class="ons-cookies-banner__preferences-text"
|
|
239
|
-
>{i18n("You can")}
|
|
243
|
+
>{i18n("You can")}
|
|
244
|
+
<a href="{baseurl + '/cookies'}">{i18n("change your cookie preferences")}</a>
|
|
240
245
|
{i18n("at any time")}.</span
|
|
241
246
|
>
|
|
242
247
|
</p>
|