diff --git a/www/index.html b/www/index.html index a903fca0aae..8f4b8130711 100644 --- a/www/index.html +++ b/www/index.html @@ -14,7 +14,7 @@

@@ -53,9 +53,15 @@

I don't recognize your platform.

rustup runs on Windows, Linux, Mac OS X, FreeBSD and NetBSD. If - you are on one of these platforms and are seeing this then either - JavaScript is disabled or this website is buggy and - should be reported. + you are on one of these platforms and are seeing this then please + report an issue, + along with the following values: +

+
navigator.platform:
+ +
navigator.appVersion:
+ +

diff --git a/www/rustup.css b/www/rustup.css index 5d6c2f5e3a2..fdd5aa6f0b2 100644 --- a/www/rustup.css +++ b/www/rustup.css @@ -99,6 +99,11 @@ hr { letter-spacing: 0.1em; } +#platform-instructions-unknown div { + font-size: 16px; + line-height: 2em; +} + #about { font-size: 16px; line-height: 2em; diff --git a/www/rustup.js b/www/rustup.js index 548890b0253..a24bd950fc0 100644 --- a/www/rustup.js +++ b/www/rustup.js @@ -85,13 +85,19 @@ function set_up_cycle_button() { var key="test"; var idx=0; + var unlocked=false; document.onkeypress = function(event) { + if (event.key == "n" && unlocked) { + cycle_platform(); + } + if (event.key == key[idx]) { idx += 1; if (idx == key.length) { cycle_button.style.display = "block"; + unlocked = true; } } else if (event.key == key[0]) { idx = 1; @@ -101,7 +107,15 @@ function set_up_cycle_button() { }; } +function fill_in_bug_report_values() { + var nav_plat = document.getElementById("nav-plat"); + var nav_app = document.getElementById("nav-app"); + nav_plat.textContent = navigator.platform; + nav_app.textContent = navigator.appVersion; +} + (function () { adjust_for_platform(); set_up_cycle_button(); + fill_in_bug_report_values(); }());