Skip to content

Commit

Permalink
chore(html): fix spacing on inline javascript
Browse files Browse the repository at this point in the history
  • Loading branch information
thekaveman committed Oct 14, 2022
1 parent aa42012 commit efac987
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions benefits/core/templates/core/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -129,20 +129,20 @@ <h1>{{ page.headline }}</h1>
<script src="https://california.azureedge.net/cdt/statetemplate/6.0.7/js/cagov.core.min.js"></script>

<script>
$(function() {
document.cookie = "testcookie"
if (document.cookie.indexOf("testcookie") < 0) {
$(".nocookies").removeClass("d-none");
}
else {
document.cookie = "testcookie; expires=Thu, 01-Jan-1970 00:00:01 GMT";
$(".nocookies").addClass("d-none");
}
$(function() {
document.cookie = "testcookie"
if (document.cookie.indexOf("testcookie") < 0) {
$(".nocookies").removeClass("d-none");
}
else {
document.cookie = "testcookie; expires=Thu, 01-Jan-1970 00:00:01 GMT";
$(".nocookies").addClass("d-none");
}

$("a[href^='https'], a[href^='tel'], [href*='#']").on("click", function(e) {
amplitude.getInstance().logEvent('clicked link', {'href': e.target.href, 'path': window.location.pathname});
});
});
$("a[href^='https'], a[href^='tel'], [href*='#']").on("click", function(e) {
amplitude.getInstance().logEvent('clicked link', {'href': e.target.href, 'path': window.location.pathname});
});
});
</script>

{% if request.recaptcha %}<script src="{{ request.recaptcha.script_api }}"></script>{% endif %}
Expand Down

0 comments on commit efac987

Please sign in to comment.