Skip to content

Commit

Permalink
Merge pull request #1372 from DEFRA/release/3_14
Browse files Browse the repository at this point in the history
Release/3_14
  • Loading branch information
sreedhar-civica authored Oct 2, 2023
2 parents 9ff2c4c + 4803a39 commit 7ceaada
Show file tree
Hide file tree
Showing 5 changed files with 115 additions and 71 deletions.
22 changes: 20 additions & 2 deletions src/EA.Weee.Web/EA.Weee.Web.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,24 @@
<Reference Include="Flurl.Http, Version=3.2.4.0, Culture=neutral, processorArchitecture=MSIL">
<HintPath>..\packages\Flurl.Http.3.2.4\lib\net472\Flurl.Http.dll</HintPath>
</Reference>
<Reference Include="Google.Apis, Version=1.61.0.0, Culture=neutral, PublicKeyToken=4b01fa6e34db77ab, processorArchitecture=MSIL">
<HintPath>..\packages\Google.Apis.1.61.0\lib\net45\Google.Apis.dll</HintPath>
</Reference>
<Reference Include="Google.Apis.Auth, Version=1.61.0.0, Culture=neutral, PublicKeyToken=4b01fa6e34db77ab, processorArchitecture=MSIL">
<HintPath>..\packages\Google.Apis.Auth.1.61.0\lib\net461\Google.Apis.Auth.dll</HintPath>
</Reference>
<Reference Include="Google.Apis.Auth.PlatformServices, Version=1.61.0.0, Culture=neutral, PublicKeyToken=4b01fa6e34db77ab, processorArchitecture=MSIL">
<HintPath>..\packages\Google.Apis.Auth.1.61.0\lib\net461\Google.Apis.Auth.PlatformServices.dll</HintPath>
</Reference>
<Reference Include="Google.Apis.Core, Version=1.61.0.0, Culture=neutral, PublicKeyToken=4b01fa6e34db77ab, processorArchitecture=MSIL">
<HintPath>..\packages\Google.Apis.Core.1.61.0\lib\net45\Google.Apis.Core.dll</HintPath>
</Reference>
<Reference Include="Google.Apis.PlatformServices, Version=1.61.0.0, Culture=neutral, PublicKeyToken=4b01fa6e34db77ab, processorArchitecture=MSIL">
<HintPath>..\packages\Google.Apis.1.61.0\lib\net45\Google.Apis.PlatformServices.dll</HintPath>
</Reference>
<Reference Include="Google.Apis.TagManager.v2, Version=1.61.0.3107, Culture=neutral, PublicKeyToken=4b01fa6e34db77ab, processorArchitecture=MSIL">
<HintPath>..\packages\Google.Apis.TagManager.v2.1.61.0.3107\lib\net45\Google.Apis.TagManager.v2.dll</HintPath>
</Reference>
<Reference Include="IdentityModel, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL">
<HintPath>..\packages\IdentityModel.1.13.1\lib\net45\IdentityModel.dll</HintPath>
</Reference>
Expand Down Expand Up @@ -215,8 +233,7 @@
<Private>True</Private>
</Reference>
<Reference Include="Newtonsoft.Json, Version=13.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed, processorArchitecture=MSIL">
<HintPath>..\packages\Newtonsoft.Json.13.0.2\lib\net45\Newtonsoft.Json.dll</HintPath>
<Private>True</Private>
<HintPath>..\packages\Newtonsoft.Json.13.0.3\lib\net45\Newtonsoft.Json.dll</HintPath>
</Reference>
<Reference Include="Owin, Version=1.0.0.0, Culture=neutral, PublicKeyToken=f0ebd12fd5e55cc5, processorArchitecture=MSIL">
<HintPath>..\packages\Owin.1.0\lib\net40\Owin.dll</HintPath>
Expand Down Expand Up @@ -288,6 +305,7 @@
<Reference Include="System.Memory, Version=4.0.1.2, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51, processorArchitecture=MSIL">
<HintPath>..\packages\System.Memory.4.5.5\lib\net461\System.Memory.dll</HintPath>
</Reference>
<Reference Include="System.Net.Http" />
<Reference Include="System.Net.Http.Extensions, Version=2.2.29.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
<HintPath>..\packages\Microsoft.Net.Http.2.2.29\lib\net45\System.Net.Http.Extensions.dll</HintPath>
</Reference>
Expand Down
38 changes: 16 additions & 22 deletions src/EA.Weee.Web/Views/NewUser/Cookies.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -145,19 +145,9 @@
<td class="govuk-table__cell">2 years</td>
</tr>
<tr class="govuk-table__row">
<td class="govuk-table__cell">_gid</td>
<td class="govuk-table__cell">Helps us count how many people visit the site by tracking us if you've visited before.</td>
<td class="govuk-table__cell">24 hours</td>
</tr>
<tr class="govuk-table__row">
<td class="govuk-table__cell">_gat</td>
<td class="govuk-table__cell">Helps Google to manage the rate at which they track your site interactions (when high traffic occurs).</td>
<td class="govuk-table__cell">1 minute</td>
</tr>
<tr class="govuk-table__row">
<td class="govuk-table__cell">_gat_govuk_shared</td>
<td class="govuk-table__cell">Helps Google to manage the rate at which they track your site interactions (when high traffic occurs).</td>
<td class="govuk-table__cell">1 minute</td>
<td class="govuk-table__cell">_ga_container-id</td>
<td class="govuk-table__cell">Used to persist session state.</td>
<td class="govuk-table__cell">2 years</td>
</tr>
</tbody>
</table>
Expand All @@ -170,15 +160,19 @@

<div class="govuk-form-group">
<fieldset class="govuk-fieldset inline">
<div class="govuk-radios__item">
<input name="cookieChoices" type="hidden" value="True">
<input id="cookieChoiceYes" name="cookieChoices" class="govuk-radios__input" type="radio" value="True">
<label class="govuk-label govuk-radios__label" for="yes">Yes</label>
</div>
<div class="govuk-radios__item">
<input name="cookieChoices" type="hidden" value="False">
<input id="cookieChoiceNo" name="cookieChoices" class="govuk-radios__input" type="radio" value="False">
<label class="govuk-label govuk-radios__label" for="no">No</label>
<div class="govuk-radios" data-module="govuk-radios">
<div class="govuk-radios__item">
<input type="radio" id="cookieChoiceYes" name="cookieChoices" value="True" class="govuk-radios__input">
<label class="govuk-label govuk-radios__label" for="cookieChoiceYes">
Yes
</label>
</div>
<div class="govuk-radios__item">
<input type="radio" id="cookieChoiceNo" name="cookieChoices" value="False" class="govuk-radios__input">
<label class="govuk-label govuk-radios__label" for="cookieChoiceNo">
No
</label>
</div>
</div>
</fieldset>
</div>
Expand Down
109 changes: 68 additions & 41 deletions src/EA.Weee.Web/Views/Shared/_Layout.GovUK.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,8 @@
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="format-detection" content="telephone=no" />
<meta name="theme-color" content="#0b0c0c" />
<title>@Html.Raw(ViewBag.Title ?? "GOV.UK - The best place to find government services and information")</title>

@*<script type="text/javascript">
(function () { if (navigator.userAgent.match(/IEMobile\/10\.0/)) { var d = document, c = "appendChild", a = d.createElement("style"); a[c](d.createTextNode("@@-ms-viewport{width:auto!important}")); d.getElementsByTagName("head")[0][c](a); } })();
</script>*@
<title>@Html.Raw(ViewBag.Title ?? "GOV.UK - The best place to find government services and information")</title>

<link rel="shortcut icon" href="@Url.Content("~/Content/govuk_frontend/assets/images/favicon.ico")" type="image/x-icon" />
<link rel="shortcut icon" sizes="16x16 32x32 48x48" href="@Url.Content("~/Content/govuk_frontend/assets/images/favicon.ico")" type="image/x-icon" />
Expand All @@ -26,10 +23,20 @@

<meta property="og:image" content="@Url.Content("~/Content/govuk_frontend/assets/images/govuk-opengraph-image.png")" />
@RenderSection("head", required: false)

<!-- Google tag (gtag.js) -->
<script async src="https://www.googletagmanager.com/gtag/js?id=@System.Web.Configuration.WebConfigurationManager.AppSettings["Weee.GA4DataLayerId"].ToString()"></script>
</head>

<body class="govuk-template__body @Html.Raw(ViewBag.BodyClasses ?? string.Empty)">
<script>

<!-- Google Tag Manager (no script) -->
<noscript>
<iframe src="https://www.googletagmanager.com/ns.html?id=@System.Web.Configuration.WebConfigurationManager.AppSettings["Weee.GA4DataLayerId"].ToString()" height="0" width="0" style="display:none;visibility:hidden"></iframe>
</noscript>
<!-- End Google Tag Manager (no script) -->

<script type="text/javascript">
document.body.className = ((document.body.className) ? document.body.className + ' js-enabled' : 'js-enabled');
</script>

Expand Down Expand Up @@ -78,28 +85,24 @@
</div>
<!--end global-cookie-message-->


<header class="govuk-header @Html.Raw(ViewBag.HeaderClass ?? string.Empty)" role="banner" data-module="govuk-header">
<div class="govuk-header__container govuk-width-container">

<div class="govuk-header__logo govuk-input govuk-!-width-one-quarter">
<a href="@Html.Raw(ViewBag.HomepageUrl ?? "https://www.gov.uk/")" title="@Html.Raw(ViewBag.LogoLinkTitle ?? "Go to the GOV.UK homepage")" id="logo" class="govuk-header__link govuk-header__link--homepage">
<span class="govuk-header__logotype">

<svg aria-hidden="true" focusable="false" class="govuk-header__logotype-crown" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 132 97" height="30" width="36">
<path fill="currentColor" fill-rule="evenodd" d="M25 30.2c3.5 1.5 7.7-.2 9.1-3.7 1.5-3.6-.2-7.8-3.9-9.2-3.6-1.4-7.6.3-9.1 3.9-1.4 3.5.3 7.5 3.9 9zM9 39.5c3.6 1.5 7.8-.2 9.2-3.7 1.5-3.6-.2-7.8-3.9-9.1-3.6-1.5-7.6.2-9.1 3.8-1.4 3.5.3 7.5 3.8 9zM4.4 57.2c3.5 1.5 7.7-.2 9.1-3.8 1.5-3.6-.2-7.7-3.9-9.1-3.5-1.5-7.6.3-9.1 3.8-1.4 3.5.3 7.6 3.9 9.1zm38.3-21.4c3.5 1.5 7.7-.2 9.1-3.8 1.5-3.6-.2-7.7-3.9-9.1-3.6-1.5-7.6.3-9.1 3.8-1.3 3.6.4 7.7 3.9 9.1zm64.4-5.6c-3.6 1.5-7.8-.2-9.1-3.7-1.5-3.6.2-7.8 3.8-9.2 3.6-1.4 7.7.3 9.2 3.9 1.3 3.5-.4 7.5-3.9 9zm15.9 9.3c-3.6 1.5-7.7-.2-9.1-3.7-1.5-3.6.2-7.8 3.7-9.1 3.6-1.5 7.7.2 9.2 3.8 1.5 3.5-.3 7.5-3.8 9zm4.7 17.7c-3.6 1.5-7.8-.2-9.2-3.8-1.5-3.6.2-7.7 3.9-9.1 3.6-1.5 7.7.3 9.2 3.8 1.3 3.5-.4 7.6-3.9 9.1zM89.3 35.8c-3.6 1.5-7.8-.2-9.2-3.8-1.4-3.6.2-7.7 3.9-9.1 3.6-1.5 7.7.3 9.2 3.8 1.4 3.6-.3 7.7-3.9 9.1zM69.7 17.7l8.9 4.7V9.3l-8.9 2.8c-.2-.3-.5-.6-.9-.9L72.4 0H59.6l3.5 11.2c-.3.3-.6.5-.9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3.2z"></path>
</svg>
<span class="govuk-header__logotype-text">
@Html.Raw(ViewBag.GlobalHeaderText ?? "GOV.UK")
</span>
<div class="govuk-header__logo govuk-input govuk-!-width-one-quarter">
<a href="@Html.Raw(ViewBag.HomepageUrl ?? "https://www.gov.uk/")" title="@Html.Raw(ViewBag.LogoLinkTitle ?? "Go to the GOV.UK homepage")" id="logo" class="govuk-header__link govuk-header__link--homepage">
<span class="govuk-header__logotype">

<svg aria-hidden="true" focusable="false" class="govuk-header__logotype-crown" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 132 97" height="30" width="36">
<path fill="currentColor" fill-rule="evenodd" d="M25 30.2c3.5 1.5 7.7-.2 9.1-3.7 1.5-3.6-.2-7.8-3.9-9.2-3.6-1.4-7.6.3-9.1 3.9-1.4 3.5.3 7.5 3.9 9zM9 39.5c3.6 1.5 7.8-.2 9.2-3.7 1.5-3.6-.2-7.8-3.9-9.1-3.6-1.5-7.6.2-9.1 3.8-1.4 3.5.3 7.5 3.8 9zM4.4 57.2c3.5 1.5 7.7-.2 9.1-3.8 1.5-3.6-.2-7.7-3.9-9.1-3.5-1.5-7.6.3-9.1 3.8-1.4 3.5.3 7.6 3.9 9.1zm38.3-21.4c3.5 1.5 7.7-.2 9.1-3.8 1.5-3.6-.2-7.7-3.9-9.1-3.6-1.5-7.6.3-9.1 3.8-1.3 3.6.4 7.7 3.9 9.1zm64.4-5.6c-3.6 1.5-7.8-.2-9.1-3.7-1.5-3.6.2-7.8 3.8-9.2 3.6-1.4 7.7.3 9.2 3.9 1.3 3.5-.4 7.5-3.9 9zm15.9 9.3c-3.6 1.5-7.7-.2-9.1-3.7-1.5-3.6.2-7.8 3.7-9.1 3.6-1.5 7.7.2 9.2 3.8 1.5 3.5-.3 7.5-3.8 9zm4.7 17.7c-3.6 1.5-7.8-.2-9.2-3.8-1.5-3.6.2-7.7 3.9-9.1 3.6-1.5 7.7.3 9.2 3.8 1.3 3.5-.4 7.6-3.9 9.1zM89.3 35.8c-3.6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.7 3.3-1.3 7.1-5.7 7.9-3.5.7-9-1.8-13.5-11.2 2.5.1 4.7 1.3 7.5 3.3l-4.7-15.4c-1.2 4.4-2.7 7.2-4.3 8.7-1.1-3-.9-5.3 0-10.2l-9.5 3.4c5 6.9 9.9 16.7 14 33.5 14.8-2.1 30.8-3.2 47.7-3.2z"></path>
</svg>
<span class="govuk-header__logotype-text">
@Html.Raw(ViewBag.GlobalHeaderText ?? "GOV.UK")
</span>
</a>
</div>
@RenderSection("inside_header", required: false)

</span>
</a>
</div>
@RenderSection("proposition_header", required: false)

@RenderSection("inside_header", required: false)
</div>
@RenderSection("proposition_header", required: false)
</header>

@RenderSection("after_header", required: false)
Expand All @@ -109,7 +112,7 @@
<footer class="govuk-footer" role="contentinfo" id="footer">
<div class="govuk-width-container">
@RenderSection("footer_top", required: false)

<div class="govuk-footer__meta">
<div class="govuk-footer__meta-item govuk-footer__meta-item--grow govuk-!-margin-left-6">
@RenderSection("footer_support_links", required: false)
Expand All @@ -129,7 +132,6 @@
</div>
</footer>


<div hidden="hidden" class="govuk-visually-hidden">
Version: @Startup.ApplicationVersion
</div>
Expand All @@ -139,7 +141,6 @@
@RenderSection("body_end", required: false)

</body>

</html>

<script>
Expand All @@ -150,7 +151,7 @@
} else if (cookieConsent !== null && cookieConsent === 'yes') {
loadAnalytics();
} else {
document.getElementById("global-cookie-message").style.display = "none";
rejectCookies();
}
$("#acceptCookies").click(function () {
Expand Down Expand Up @@ -180,21 +181,33 @@
function loadAnalytics() {
var googleAnalyticsAccountId = String("@System.Web.Configuration.WebConfigurationManager.AppSettings["Weee.GoogleAnalyticsAccountId"].ToString()");
var gaDataLayerId = '@(System.Web.Configuration.WebConfigurationManager.AppSettings["Weee.GA4DataLayerId"].ToString())';
(function (w, d, s, l, i) {
w[l] = w[l] || [];
w[l].push({ 'gtm.start': new Date().getTime(), event: 'gtm.js' });
var f = d.getElementsByTagName(s)[0],
j = d.createElement(s), dl = l != 'dataLayer' ? '&l=' + l : '';
j.async = true;
j.src = 'https://www.googletagmanager.com/gtm.js?id=' + i + dl;
f.parentNode.insertBefore(j, f);
})(window, document, 'script', 'dataLayer', gaDataLayerId);
gtag('js', new Date());
gtag('config', gaDataLayerId);
gtag('create', googleAnalyticsAccountId, 'auto');
gtag('create', 'UA-145652997-1', 'auto', 'govuk_shared', { 'allowLinker': true });
gtag('govuk_shared.require', 'linker');
gtag('govuk_shared.linker.set', 'anonymizeIp', true);
gtag('govuk_shared.linker.set', 'allowAdFeatures', false);
gtag('govuk_shared.linker:autoLink', ['www.gov.uk', 'www.nationalarchives.gov.uk', 'www.daera-ni.gov.uk', 'www.data.gov.uk']);
gtag('send', 'pageview');
gtag('govuk_shared.send', 'pageview');
}
(function (i, s, o, g, r, a, m) {
i['GoogleAnalyticsObject'] = r; i[r] = i[r] || function () {
(i[r].q = i[r].q || []).push(arguments)
}, i[r].l = 1 * new Date(); a = s.createElement(o),
m = s.getElementsByTagName(o)[0]; a.async = 1; a.src = g; m.parentNode.insertBefore(a, m)
})(window, document, 'script', '//www.google-analytics.com/analytics.js', 'ga');
ga('create', googleAnalyticsAccountId, 'auto');
ga('create', 'UA-145652997-1', 'auto', 'govuk_shared', { 'allowLinker': true });
ga('govuk_shared.require', 'linker');
ga('govuk_shared.linker.set', 'anonymizeIp', true);
ga('govuk_shared.linker.set', 'allowAdFeatures', false);
ga('govuk_shared.linker:autoLink', ['www.gov.uk', 'www.nationalarchives.gov.uk', 'www.daera-ni.gov.uk', 'www.data.gov.uk']);
ga('send', 'pageview');
ga('govuk_shared.send', 'pageview');
window.dataLayer = window.dataLayer || [];
function gtag() {
dataLayer.push(arguments);
}
var element = document.getElementById('saveCookieChoice');
Expand All @@ -213,6 +226,7 @@
}
function rejectCookies() {
deleteGA4Cookies();
GOVUK.cookie('weee-cookie-consent', 'no', { days: 365 });
document.getElementById("global-cookie-message").style.display = "none";
GOVUK.cookie('_ga', null);
Expand All @@ -221,6 +235,19 @@
GOVUK.cookie('_gat_govuk_shared', null);
}
function deleteGA4Cookies() {
if (document.cookie && document.cookie != '') {
var cookies = document.cookie.split(';');
for (var i = 0; i < cookies.length; i++) {
var cookie_name = cookies[i].split("=");
var isCookie_GA4_Available = (cookie_name[0].trim().indexOf("_ga_") > -1);
if (isCookie_GA4_Available) {
GOVUK.cookie(cookie_name[0].trim(), null);
}
}
}
}
function setCookieChoice() {
if (document.getElementById("cookieChoiceYes").checked === false &&
document.getElementById("cookieChoiceNo").checked === false) {
Expand Down
Loading

0 comments on commit 7ceaada

Please sign in to comment.