summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorScott Rowe <scottrowe@google.com>2014-11-01 16:28:23 +0000
committerAndroid Git Automerger <android-git-automerger@android.com>2014-11-01 16:28:23 +0000
commitde7409859315de19f081325a82a9c3ef99f28f26 (patch)
treeeb2646f5edd8c862ef8b253486af72e3389ea70e
parent20207a83c989fde1d57b45a4c1373ca25fd49bd7 (diff)
parentaa275bf989f0bf9e968f0804bb57ec7b1a7c1f54 (diff)
downloadframeworks_base-de7409859315de19f081325a82a9c3ef99f28f26.zip
frameworks_base-de7409859315de19f081325a82a9c3ef99f28f26.tar.gz
frameworks_base-de7409859315de19f081325a82a9c3ef99f28f26.tar.bz2
am aa275bf9: Merge "docs: b/15180738 - invalid urls in badge generator" into lmp-docs
* commit 'aa275bf989f0bf9e968f0804bb57ec7b1a7c1f54': docs: b/15180738 - invalid urls in badge generator
-rw-r--r--docs/html/distribute/tools/promote/badges.jd12
1 files changed, 6 insertions, 6 deletions
diff --git a/docs/html/distribute/tools/promote/badges.jd b/docs/html/distribute/tools/promote/badges.jd
index 4bea8be..eb09333 100644
--- a/docs/html/distribute/tools/promote/badges.jd
+++ b/docs/html/distribute/tools/promote/badges.jd
@@ -66,7 +66,7 @@ div.button-row input {
var APP_LANGS = ['it','pt-br','pt-pt','nl','ko','ja','fr','es','es-419','en','de'];
// variables for creating 'try it out' demo button
-var imagePath = "{@docRoot}images/brand/"
+var imagePath = "https://developer.android.com/images/brand/"
var linkStart = "<a href=\"https://play.google.com/store/";
var imageStart = "\">\n"
+ " <img alt=\"";
@@ -99,7 +99,7 @@ function buildButton(form) {
$("#button-preview").html(linkStart + "apps/details?id=" + packageName
+ imageStart + altText + imageSrc
+ selectedValue + imageEnd);
-
+
// Send the event to Analytics
ga('send', 'event', 'Distribute', 'Create Google Play Badge', 'Package ' + selectedValue);
} else if (form["publisher"].value != "Example, Inc.") {
@@ -111,7 +111,7 @@ function buildButton(form) {
$("#button-preview").html(linkStart + "search?q=pub:" + publisherName
+ imageStart + altText + imageSrc
+ selectedValue + imageEnd);
-
+
// Send the event to Analytics
ga('send', 'event', 'Distribute', 'Create Google Play Badge', 'Publisher ' + selectedValue);
} else {
@@ -159,7 +159,7 @@ function clearLabel(id, example) {
/** Switch the badge urls for selected language */
function changeBadgeLang() {
var lang = $('#locale option:selected').val();
-
+
// check if we have the 'app' badge for this lang and show notice if not
$("div.button-row.error").remove(); // remove any existing instance of error message
if ($.inArray(lang,APP_LANGS) == -1) {
@@ -173,7 +173,7 @@ function changeBadgeLang() {
} else {
$("div.button-row.app").show(); // show the 'app' badge row
}
-
+
$('.button-row img').each(function() {
var id = $(this).parent().attr('for');
var imgName = lang + $('input#'+id).attr('value') + '.png';
@@ -356,7 +356,7 @@ alt="Get it on Google Play (large)" /></label>
style="font-family:monospace;background-color:#efefef;padding:5px;display:none;margin-bottom:1em">
</textarea >
-<p>Try it out:</p>
+<p>Test your badge:</p>
<div id="button-preview" style="margin-top:1em"></div>
</div>