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

Unified Diff: src/site/articles/embedding-in-html/index.html

Issue 10700168: massive CL is massive (Closed) Base URL: https://code.google.com/p/dartlang-site/@master
Patch Set: Created 8 years, 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/site/articles/dart-unit-tests/index.markdown ('k') | src/site/articles/emulating-functions/index.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/site/articles/embedding-in-html/index.html
diff --git a/src/site/articles/embedding-in-html/index.html b/src/site/articles/embedding-in-html/index.html
index f5d4739d9d8ff1d61f1c4c433fd67bdd1a21093e..ae656f991db4222c0dd1b306ed468b0962e6ffc3 100755
--- a/src/site/articles/embedding-in-html/index.html
+++ b/src/site/articles/embedding-in-html/index.html
@@ -118,12 +118,14 @@ This has a few consequences:
</li>
</ol>
-<aside class="note">
-<b>Note:</b>
-We are considering allowing Dart code to run as soon as a script is loaded
-(for example, like JavaScript with HTML5 async attributes).
-This would allow running a script before the DOM is fully loaded,
-but we would still preserve the asynchronous semantics we support today.
+<aside>
+ <div class="alert alert-info">
+ <strong>Note:</strong>
+ We are considering allowing Dart code to run as soon as a script is loaded
+ (for example, like JavaScript with HTML5 async attributes).
+ This would allow running a script before the DOM is fully loaded,
+ but we would still preserve the asynchronous semantics we support today.
+ </div>
</aside>
</section>
@@ -188,11 +190,11 @@ In contrast to the previous example, the following is an error:
void hello(String text) {
HTMLElement element = document.getElementById('message');
element.innerHTML = text;
- } <span class="beware">// This tag triggers a warning as no main() is defined.</span>
+ } // This tag triggers a warning as no main() is defined.
</script>
<script type="application/dart">
void main() {
- hello('Hello from Dart'); <span class="beware">// hello() will not resolve.</span>
+ hello('Hello from Dart'); // hello() will not resolve.
}
</script>
<div id="message"></div>
@@ -200,11 +202,10 @@ In contrast to the previous example, the following is an error:
</html>
{% endhighlight %}
-<aside class="note">
-<b>Note:</b>
-(1) Each Dart script in the page runs in its own isolate,
-and (2) exactly one <code>main()</code> should exist per script.
-</aside>
+<p>
+ Each Dart script in the page runs in its own isolate,
+ and exactly one <code>main()</code> should exist per script.
+</p>
<p>
To incorporate external code,
« no previous file with comments | « src/site/articles/dart-unit-tests/index.markdown ('k') | src/site/articles/emulating-functions/index.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698