aboutsummaryrefslogtreecommitdiffstats
path: root/templates/web/fixmystreet.com/header_extra.html
blob: 4ea87a5e13366f700d2f74f24872bb8685e76c2e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
<meta name='theme-color' content='#ffd000'>
<link rel="Shortcut Icon" type="image/x-icon" href="/cobrands/fixmystreet.com/favicon.ico">

[%# Code for flex box usage on councils page %]
<script nonce="[% csp_nonce %]">
(function(d){
  var c = " ", f = "flex", fw = "-webkit-"+f, g = d.createElement('b');
  try {
    g.style.display = fw;
    g.style.display = f;
    c += (g.style.display == f || g.style.display == fw) ? f : "no-"+f;
  } catch(e) {
    c += "no-"+f;
  }
  d.documentElement.className += c;
})(document);
</script>

[%# We are conducting an A/B experiment %]
[% IF c.config.BASE_URL == "https://www.fixmystreet.com" AND not admin AND NOT c.req.header('User-Agent').match('Google Page Speed') %]
<script src="//www.google-analytics.com/cx/api.js?experiment=ZwMlZkAhSbK_tP_QG64QrQ"></script>
<script nonce="[% csp_nonce %]">
var variation = typeof cxApi !== "undefined" ? cxApi.chooseVariation() : 0,
    docElement = document.documentElement,
    className = docElement.className;
if (!/about\/council/.test(location.pathname)) {
    docElement.className = className + ' variant' + variation;
}
</script>
[% END %]
<style>
html .variant1 { display: none !important; }
html.variant1 .variant0 { display: none !important; }
html.variant1 .variant1 { display: block !important; }
</style>

[% INCLUDE 'tracking_code.html' %]