Index: platform_tools/nacl/skhello/index.html |
=================================================================== |
--- platform_tools/nacl/skhello/index.html (revision 0) |
+++ platform_tools/nacl/skhello/index.html (working copy) |
@@ -8,7 +8,7 @@ |
--> |
<head> |
- <title>Skia Unit Tests</title> |
+ <title>Skia Hello World</title> |
<script type="text/javascript"> |
"use strict"; |
@@ -32,11 +32,7 @@ |
var skdebugf_cmd = "SkDebugf:"; |
if (message_event.data.indexOf(skdebugf_cmd) == 0) { |
var msg_contents = message_event.data.slice(skdebugf_cmd.length) |
- //console.log("Skia: " + msg_contents); |
- var log_textarea = document.getElementById("log_textarea") |
- log_textarea.value += msg_contents; |
- log_textarea.scrollTop = log_textarea.scrollHeight; |
- refresh(log_textarea); |
+ console.log("Skia: " + msg_contents); |
} else { |
alert(message_event.data); |
} |
@@ -55,11 +51,8 @@ |
</head> |
<body> |
-<h1>Skia Unit Tests</h1> |
+<h1>Skia Hello World</h1> |
<p> |
-<textarea id="log_textarea" rows="2" cols="2" readonly style="width:100%; height:500px; resize:none;"></textarea> |
-</p> |
-<p> |
<div id="listener"> |
<script type="text/javascript"> |
var listener = document.getElementById('listener'); |
@@ -69,8 +62,8 @@ |
<embed name="nacl_module" |
id="skia_nacl" |
- width=0 height=0 |
- src="tests.nmf" |
+ width=300 height=300 |
+ src="skhello.nmf" |
type="application/x-nacl" /> |
</div> |
</p> |