Skip to content

Commit

Permalink
Revert "[fixmystreet.com] Homepage button step A/B test."
Browse files Browse the repository at this point in the history
This reverts commit 838708d.

Conflicts:
	web/cobrands/fixmystreet/base.scss
	web/cobrands/fixmystreet/layout.scss
  • Loading branch information
dracos committed Jul 31, 2015
1 parent 0032b9c commit 939c6d6
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 126 deletions.
48 changes: 0 additions & 48 deletions templates/web/fixmystreet.com/around/postcode_form.html

This file was deleted.

20 changes: 0 additions & 20 deletions templates/web/fixmystreet.com/header_extra.html
Expand Up @@ -2,24 +2,4 @@

<script src="[% start %][% version('/js/jquery.cookie.min.js') %]" type="text/javascript" charset="utf-8"></script>

[%# We are conducting an A/B experiment on the homepage %]
[% IF c.req.uri.path == '/' %]
<script src="//www.google-analytics.com/cx/api.js?experiment=cX9Tbz_VRl-cZDM5WVRgTQ"></script>
<script>
var variation = cxApi.chooseVariation(),
docElement = document.documentElement,
className = docElement.className;
docElement.className = className + ' ' + 'variant' + variation;
</script>
<style>
html.variant1 #homepage-ab-test {
display: block;
}
html.variant1 #postcodeForm,
html.variant1 #front-main a#geolocate_link {
display: none;
}
</style>
[% END %]

[% INCLUDE 'tracking_code.html' %]
39 changes: 0 additions & 39 deletions web/cobrands/fixmystreet/base.scss
Expand Up @@ -85,45 +85,6 @@
}
}

#homepage-ab-test {
display: none; // header_extra.html will override this if Analytics tells it to

a {
display: inline-block;
cursor: pointer;
}

#cta-report {
padding: 0.4em 1em;
margin-top: 0.5em;
font-size: 1.5em;
font-weight: bold;
color: #333;
background-color: #ffd000;
border-radius: 0.3em;
box-shadow: 0 3px 5px 0 rgba(0,0,0,0.2);
background-image: linear-gradient(rgba(255,255,255,0.3), transparent);
text-shadow: 0 1px 0 rgba(255,255,255,0.6);
border: 2px solid #BB9900;
text-decoration: none;

&:hover,
&:focus {
background-color: #FFDB3E;
}

&:active {
position: relative;
top: 1px;
box-shadow: 0 2px 2px 0 rgba(0,0,0,0.3);
}
}

#cta-view {
margin: 0.5em 0 1em 0;
}
}

.unresponsive-council-warning {
margin: 1em -1em;
padding: 2em 2em;
Expand Down
20 changes: 1 addition & 19 deletions web/cobrands/fixmystreet/layout.scss
Expand Up @@ -284,24 +284,6 @@ body.alertindex {
}
}

#homepage-ab-test {
#cta-report {
font-size: 2em;
}

#cta-view {
line-height: 1.2em;
font-size: 1.2em;
color: #333;
border-bottom: 1px solid #917F00;
text-decoration: none;

&:hover, &:focus {
border-bottom-color: #BD942A;
}
}
}

body.unresponsive-council {
.container .content {
padding: 0;
Expand Down Expand Up @@ -351,4 +333,4 @@ body.unresponsive-council {
background-image: url(images/unresponsive-council-cta-arrow@2.png);
background-size: 60px;
}
}
}

0 comments on commit 939c6d6

Please sign in to comment.