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> |