Created
August 6, 2014 20:24
-
-
Save osvik/8e0eec7bb75522a159f9 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Greenpeace España</title> | |
<!-- Page header free html --> | |
<meta name="msvalidate.01" content="0EFA63D991131147715CF37F8DB5CE8C" /> | |
<meta name='yandex-verification' content='6af16d6b271bec04' /> | |
<!-- Javascripts to include --> | |
<script src="/espana/Templates/Planet3/Pages/IncludeJavascript.aspx?id=254538&epslanguage=es-ES"></script> | |
<script src="https://www.google-analytics.com/cx/api.js?experiment=w_6AD-BGQCKqQbVtt16onA"></script> | |
<!-- Page header stylesheet --> | |
<style> | |
#nav li a.donate, #nav li a.donate-active { | |
background: url("/espana/Templates/Planet3/Styles/images/bg-nav-don.png") no-repeat scroll left bottom transparent; | |
color: #fff; | |
margin-right: 4px; | |
text-align: center; | |
} | |
#nav li a.donate:hover span, #nav li a.donate-active span { | |
background-position: right top; | |
color: rgb(86, 176, 4); | |
} | |
#nav li a.donate span, #nav li a.donate-active span { | |
background: url("/espana/Templates/Planet3/Styles/images/nav-r-don.png") no-repeat scroll right bottom transparent; | |
color: #fff; | |
margin-right: -4px; | |
} | |
#nav li a.donate:hover, #nav li a.donate-active { | |
background-position: left top; | |
} | |
.actions li { | |
font-size: 14px; | |
} | |
/* COOKIES */ | |
.cookiebar .content .noticetext { | |
width: 470px; | |
margin-left: 90px; | |
} | |
</style> | |
<!-- Page header javascript --> | |
<script> | |
$(document).ready(function() { | |
$("a.donate").on("click" , function() { | |
typeof(_gaq) == "object" && _gaq.push(['_trackEvent', 'HazteSocio', 'Click', 'Menu']); | |
typeof ( yaCounter24729443 ) == "object" && yaCounter24729443.reachGoal('BTN_Hazte_socio'); | |
}); | |
$(".donate-sidebar").on( "click", function(){ | |
typeof(_gaq) == "object" && _gaq.push(['_trackEvent', 'HazteSocio', 'Click', 'BarraLateral']); | |
typeof ( yaCounter24729443 ) == "object" && yaCounter24729443.reachGoal('BTN_Hazte_socio'); | |
}); | |
$(".donate-footer").on( "click", function(){ | |
typeof(_gaq) == "object" && _gaq.push(['_trackEvent', 'HazteSocio', 'Click', 'Footer']); | |
typeof ( yaCounter24729443 ) == "object" && yaCounter24729443.reachGoal('BTN_Hazte_socio'); | |
}); | |
$(".tienda-footer").on( "click", function(){ | |
typeof(_gaq) == "object" && _gaq.push(['_trackEvent', 'Tienda', 'Click', 'Footer']); | |
typeof ( yaCounter24729443 ) == "object" && yaCounter24729443.reachGoal('BTN_Tienda'); | |
}); | |
}); | |
/* COOKIE TITLE TEMPORARY FIX */ | |
$(document).ready(function(){ | |
$("#cookiebarakkoord li a.akkoord").removeAttr( "title" ); | |
$("#cookiebarakkoord li a.akkoord").on("click", function() { | |
_gaq.push(['_trackEvent', 'Cookies', 'Esconder', 'Mensaje']); | |
}); | |
$(".cookiebar .linktext").on("click", function() { | |
_gaq.push(['_trackEvent', 'Cookies', 'Click', 'MasInformacion']); | |
}); | |
}); | |
/* AB TESTING */ | |
cxApi.setDomainName('.greenpeace.org'); | |
var chosenVariation = cxApi.chooseVariation(); | |
var pageVariations = [ | |
function() { // ORIGINAL: | |
$('#banner_lateral_socio').prop('src', '/espana/Global/espana/2014/imgs/banner/hazteSocioMono-05-03-14.jpg'); | |
}, | |
function() { // VARIATION 1 | |
$('#banner_lateral_socio').prop('src', '/espana/Global/espana/2014/imgs/banner/home-osos275x185.jpg'); | |
}, | |
function() { // VARIATION 2 | |
$('#banner_lateral_socio').prop('src', '/espana/Global/espana/2014/imgs/banner/home-oso275x185.jpg'); | |
} | |
]; | |
$(document).ready( function() { | |
pageVariations[chosenVariation](); | |
}); | |
</script> | |
<!-- Styles are inheritable: checked --> | |
<!-- Scripts are inheritable: checked --> | |
</head> | |
<body> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment