summaryrefslogtreecommitdiff
path: root/nacl.html
diff options
context:
space:
mode:
authorEvgeny Zinoviev <me@ch1p.com>2018-09-05 22:16:38 +0300
committerEvgeny Zinoviev <me@ch1p.com>2018-09-05 22:16:38 +0300
commitde2fd81b3467c2d223c2183a155d83d8fcc7aaae (patch)
tree1224d4238c9319d164af646753bef5c947d1a8a2 /nacl.html
parentc945c1453382874045d503c72c28a093abdfce07 (diff)
html updates
Diffstat (limited to 'nacl.html')
-rw-r--r--nacl.html58
1 files changed, 19 insertions, 39 deletions
diff --git a/nacl.html b/nacl.html
index d4f33db..f4b4e1a 100644
--- a/nacl.html
+++ b/nacl.html
@@ -1,46 +1,26 @@
<!DOCTYPE html>
<html>
- <!--
- Copyright (c) 2013 The Chromium Authors. All rights reserved.
- Use of this source code is governed by a BSD-style license that can be
- found in the LICENSE file.
- -->
<head>
-
- <title>hello_tutorial</title>
- <script type="text/javascript">
- // The 'message' event handler. This handler is fired when the NaCl module
- // posts a message to the browser by calling PPB_Messaging.PostMessage()
- // (in C) or pp::Instance.PostMessage() (in C++). This implementation
- // simply displays the content of the message in an alert panel.
- function handleMessage(message_event) {
- console.log('message:', message_event.data)
- //alert(message_event.data);
- }
- </script>
- <style>
- button {
- position: relative;
- z-index: 5;
- top: -300px;
- left: 350px;
- }
- </style>
+<title>hello_tutorial</title>
+<style>
+button {
+ position: relative;
+ z-index: 5;
+ top: -300px;
+ left: 350px;
+}
+</style>
</head>
<body>
- <div id="listener">
- <script type="text/javascript">
- var listener = document.getElementById('listener');
- listener.addEventListener('message', handleMessage, true);
- </script>
-
- <embed
- id="hello_tutorial"
- width="800"
- height="600"
- type="application/x-hello" />
- </div>
-
- <button>Кнопка поверх OpenGL</button>
+<script type="text/javascript">
+ var listener = document.getElementById('listener');
+ listener.addEventListener('message', handleMessage, true);
+</script>
+<embed
+ id="hello_tutorial"
+ width="800"
+ height="600"
+ type="application/x-hello" />
+<button>Кнопка поверх OpenGL</button>
</body>
</html>