add helpouts banner thing to recruit providers
includes script to randomly change the URL and text of link as an A/B test it's a bad A/B test because it does not save the A/B per session Change-Id: Ie8338a7403834d2322c5088039f2936207db734b
This commit is contained in:
@@ -157,7 +157,36 @@
|
||||
<?cs elif:training || guide || reference || tools || develop || google || samples ?>
|
||||
<!-- Secondary x-nav -->
|
||||
<div id="nav-x">
|
||||
<div class="wrap">
|
||||
<div class="wrap" style="position:relative">
|
||||
|
||||
<?cs if:reference ?>
|
||||
<a id="helpoutsLink" class="resource resource-card resource-card-6x2x3 resource-card-6x2 helpouts-card"
|
||||
href="http://helpouts.google.com/partner/landing/provider/googledevelopers" target="_blank">
|
||||
<div class="card-bg helpouts-card-bg"></div>
|
||||
<div class="card-info">
|
||||
<div class="helpouts-description">
|
||||
<div class="text">Help developers solve problems<br/>
|
||||
<span id="helpoutsLinkText" class="link-color" style="display:block;padding-top:5px;text-align:right">Learn more</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</a>
|
||||
<script>
|
||||
var textA = "LEARN MORE";
|
||||
var linkA = "http://helpouts.google.com/partner/landing/provider/googledevelopers?utm_source=android_banner1&utm_medium=banner&utm_campaign=android_provider_banner1";
|
||||
var textB = "SIGN UP NOW";
|
||||
var linkB = "http://helpouts.google.com/partner/landing/provider/googledevelopers?utm_source=android_banner2&utm_medium=banner&utm_campaign=android_provider_banner2";
|
||||
|
||||
if (Math.floor(1/Math.random()) > 1) {
|
||||
$("a#helpoutsLink").attr('href', linkA);
|
||||
$("span#helpoutsLinkText").text(textA);
|
||||
} else {
|
||||
$("a#helpoutsLink").attr('href', linkB);
|
||||
$("span#helpoutsLinkText").text(textB);
|
||||
}
|
||||
</script>
|
||||
<?cs /if ?>
|
||||
|
||||
<ul class="nav-x col-9 develop" style="width:100%">
|
||||
<li class="training"><a href="<?cs var:toroot ?>training/index.html"
|
||||
zh-tw-lang="訓練課程"
|
||||
|
Reference in New Issue
Block a user