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

Unified Diff: visual_studio/NativeClientVSAddIn/InstallerResources/examples/hello_nacl/hello_nacl/index.html

Issue 11191009: Add new VS AddIn examples. (Closed) Base URL: http://nativeclient-sdk.googlecode.com/svn/trunk/src
Patch Set: Created 8 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 side-by-side diff with in-line comments
Download patch
Index: visual_studio/NativeClientVSAddIn/InstallerResources/examples/hello_nacl/hello_nacl/index.html
diff --git a/visual_studio/NativeClientVSAddIn/InstallerResources/examples/hello_nacl/hello_nacl/index.html b/visual_studio/NativeClientVSAddIn/InstallerResources/examples/hello_nacl/hello_nacl/index.html
index ecebf9bd3cff0e05d65f9c3c0a9037d2277629a1..98667a1f1df2a523afce2ebfde365df122533820 100644
--- a/visual_studio/NativeClientVSAddIn/InstallerResources/examples/hello_nacl/hello_nacl/index.html
+++ b/visual_studio/NativeClientVSAddIn/InstallerResources/examples/hello_nacl/hello_nacl/index.html
@@ -9,44 +9,22 @@
<meta http-equiv="Pragma" content="no-cache">
<meta http-equiv="Expires" content="-1">
<script type="text/javascript">
- function pageDidLoad() {
- appendStatus('Page loaded');
- }
-
- var forceRedraw = function (element) {
-
- if (!element) { return; }
-
- var n = document.createTextNode(' ');
- var disp = element.style.display; // don't worry about previous display style
-
- element.appendChild(n);
- element.style.display = 'none';
-
- setTimeout(function () {
- element.style.display = disp;
- n.parentNode.removeChild(n);
- }, 50);
- }
-
- function appendStatus(opt_message) {
- var statusField = document.getElementById('statusField');
- console.log("hi");
- if (statusField) {
- var newElt = document.createElement("opt_message");
- newElt.innerHTML = "<br>" + opt_message;
- statusField.appendChild(newElt);
- forceRedraw(newElt);
- }
- }
-
-
-
- function handleMessage(message_event) {
- appendStatus(message_event.data);
-
+ function pageDidLoad() {
+ appendStatus('Page loaded');
+ }
+
+ function appendStatus(opt_message) {
+ var statusField = document.getElementById('statusField');
+ if (statusField) {
+ var newElt = document.createElement("opt_message");
+ newElt.innerHTML = "<br>" + opt_message;
+ statusField.appendChild(newElt);
}
+ }
+ function handleMessage(message_event) {
+ appendStatus(message_event.data);
+ }
</script>
</head>
<body onload="pageDidLoad()">
@@ -61,7 +39,7 @@
style="border-style: solid;"
width=200
height=200
- src="hello_nacl.nmf"
+ src="newlib/hello_nacl.nmf"
type="application/x-nacl"/>
</div>
<div>

Powered by Google App Engine
This is Rietveld 408576698