Index: dart/site/try/nossl.js |
diff --git a/dart/site/try/nossl.js b/dart/site/try/nossl.js |
new file mode 100644 |
index 0000000000000000000000000000000000000000..50608b9e639853e997e13fe9c52f35c92896f1cf |
--- /dev/null |
+++ b/dart/site/try/nossl.js |
@@ -0,0 +1,19 @@ |
+// Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file |
+// for details. All rights reserved. Use of this source code is governed by a |
+// BSD-style license that can be found in the LICENSE file. |
+ |
+try { |
+ document.location = 'https://try.dartlang.org/'; |
+} catch (e) { |
+ // Ignored. |
+} |
+ |
+document.documentElement.innerHTML = ( |
+'<head>' + |
+'<meta charset="utf-8">' + |
+'<meta http-equiv="refresh" content="0;URL=\'https://try.dartlang.org/\'" />' + |
+'<title>Redirecting</title>' + |
+'</head>' + |
+'<body>' + |
+'<p>This page has moved to <a href="https://try.dartlang.org/">https://try.dartlang.org/</a>.</p>' + |
+'</body>'); |