mirror of
https://github.com/golang/go
synced 2024-11-05 11:46:12 -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') {
|
||||
$('#windowsInstructions').hide();
|
||||
$('.testUnix').show();
|
||||
$('.testWindows').hide();
|
||||
} else {
|
||||
if (ext != 'msi') {
|
||||
$('#windowsInstallerInstructions').hide();
|
||||
@ -280,6 +282,8 @@ function personalizeInstallInstructions() {
|
||||
if (ext != 'zip') {
|
||||
$('#windowsZipInstructions').hide();
|
||||
}
|
||||
$('.testUnix').hide();
|
||||
$('.testWindows').show();
|
||||
}
|
||||
|
||||
var download = "https://storage.googleapis.com/golang/" + filename;
|
||||
|
@ -842,6 +842,8 @@ function personalizeInstallInstructions() {
|
||||
}
|
||||
if (os != 'windows') {
|
||||
$('#windowsInstructions').hide();
|
||||
$('.testUnix').show();
|
||||
$('.testWindows').hide();
|
||||
} else {
|
||||
if (ext != 'msi') {
|
||||
$('#windowsInstallerInstructions').hide();
|
||||
@ -849,6 +851,8 @@ function personalizeInstallInstructions() {
|
||||
if (ext != 'zip') {
|
||||
$('#windowsZipInstructions').hide();
|
||||
}
|
||||
$('.testUnix').hide();
|
||||
$('.testWindows').show();
|
||||
}
|
||||
|
||||
var download = "https://storage.googleapis.com/golang/" + filename;
|
||||
|
Loading…
Reference in New Issue
Block a user