Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(61)

Side by Side Diff: src/site/articles/trydart/examples/packages/browser/dart.js

Issue 35913002: Try Dart 1 hour experience first draft (Closed) Base URL: https://github.com/dart-lang/dartlang.org.git@master
Patch Set: rough draft ready for review (2nd try after errors) Created 7 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 (function() { 5 (function() {
6 // Bootstrap support for Dart scripts on the page as this script. 6 // Bootstrap support for Dart scripts on the page as this script.
7 if (navigator.webkitStartDart) { 7 if (navigator.webkitStartDart) {
8 if (!navigator.webkitStartDart()) { 8 if (!navigator.webkitStartDart()) {
9 document.body.innerHTML = 'This build has expired. Please download a new Da rtium at http://www.dartlang.org/dartium/index.html'; 9 document.body.innerHTML = 'This build has expired. Please download a new Da rtium at http://www.dartlang.org/dartium/index.html';
10 } 10 }
(...skipping 19 matching lines...) Expand all
30 var parent = scripts[i].parentNode; 30 var parent = scripts[i].parentNode;
31 // TODO(vsm): Find a solution for issue 8455 that works with more 31 // TODO(vsm): Find a solution for issue 8455 that works with more
32 // than one script. 32 // than one script.
33 document.currentScript = script; 33 document.currentScript = script;
34 parent.replaceChild(script, scripts[i]); 34 parent.replaceChild(script, scripts[i]);
35 } 35 }
36 } 36 }
37 } 37 }
38 } 38 }
39 })(); 39 })();
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698