mirror of
https://github.com/golang/go
synced 2024-11-05 18:46:11 -07:00
godoc/static: show relevant test instructions on install page
Fixes golang/go#12490 Change-Id: Ifb408f225a84b3c5daf739e1e0afc4f5540e4ebd Reviewed-on: https://go-review.googlesource.com/18278 Reviewed-by: Russ Cox <rsc@golang.org>
This commit is contained in:
parent
542ffc7e75
commit
791f468ced
@ -273,6 +273,8 @@ function personalizeInstallInstructions() {
|
|||||||
}
|
}
|
||||||
if (os != 'windows') {
|
if (os != 'windows') {
|
||||||
$('#windowsInstructions').hide();
|
$('#windowsInstructions').hide();
|
||||||
|
$('.testUnix').show();
|
||||||
|
$('.testWindows').hide();
|
||||||
} else {
|
} else {
|
||||||
if (ext != 'msi') {
|
if (ext != 'msi') {
|
||||||
$('#windowsInstallerInstructions').hide();
|
$('#windowsInstallerInstructions').hide();
|
||||||
@ -280,6 +282,8 @@ function personalizeInstallInstructions() {
|
|||||||
if (ext != 'zip') {
|
if (ext != 'zip') {
|
||||||
$('#windowsZipInstructions').hide();
|
$('#windowsZipInstructions').hide();
|
||||||
}
|
}
|
||||||
|
$('.testUnix').hide();
|
||||||
|
$('.testWindows').show();
|
||||||
}
|
}
|
||||||
|
|
||||||
var download = "https://storage.googleapis.com/golang/" + filename;
|
var download = "https://storage.googleapis.com/golang/" + filename;
|
||||||
|
@ -842,6 +842,8 @@ function personalizeInstallInstructions() {
|
|||||||
}
|
}
|
||||||
if (os != 'windows') {
|
if (os != 'windows') {
|
||||||
$('#windowsInstructions').hide();
|
$('#windowsInstructions').hide();
|
||||||
|
$('.testUnix').show();
|
||||||
|
$('.testWindows').hide();
|
||||||
} else {
|
} else {
|
||||||
if (ext != 'msi') {
|
if (ext != 'msi') {
|
||||||
$('#windowsInstallerInstructions').hide();
|
$('#windowsInstallerInstructions').hide();
|
||||||
@ -849,6 +851,8 @@ function personalizeInstallInstructions() {
|
|||||||
if (ext != 'zip') {
|
if (ext != 'zip') {
|
||||||
$('#windowsZipInstructions').hide();
|
$('#windowsZipInstructions').hide();
|
||||||
}
|
}
|
||||||
|
$('.testUnix').hide();
|
||||||
|
$('.testWindows').show();
|
||||||
}
|
}
|
||||||
|
|
||||||
var download = "https://storage.googleapis.com/golang/" + filename;
|
var download = "https://storage.googleapis.com/golang/" + filename;
|
||||||
|
Loading…
Reference in New Issue
Block a user