diff --git a/godoc/static/godocs.js b/godoc/static/godocs.js index 2ea3c7ad..ec9f37a9 100644 --- a/godoc/static/godocs.js +++ b/godoc/static/godocs.js @@ -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; diff --git a/godoc/static/static.go b/godoc/static/static.go index c234fa4c..4457c715 100644 --- a/godoc/static/static.go +++ b/godoc/static/static.go @@ -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;