diff --git a/src/Platform/CMakeLists.txt b/src/Platform/CMakeLists.txt index afabc07ad..e0d0461a1 100644 --- a/src/Platform/CMakeLists.txt +++ b/src/Platform/CMakeLists.txt @@ -86,7 +86,7 @@ endif() # JavaScript and CSS stuff for NaCl if(WITH_NACLAPPLICATION OR WITH_WINDOWLESSNACLAPPLICATION) - install(FILES NaClApplication.js NaClApplication.css DESTINATION ${MAGNUM_DATA_INSTALL_DIR}) + install(FILES NaClApplication.js WebApplication.css DESTINATION ${MAGNUM_DATA_INSTALL_DIR}) endif() # GLX application diff --git a/src/Platform/NaClApplication.h b/src/Platform/NaClApplication.h index 815d39601..632232c02 100644 --- a/src/Platform/NaClApplication.h +++ b/src/Platform/NaClApplication.h @@ -75,26 +75,26 @@ to simplify porting. You need to provide HTML markup for your application. Template one is below, you can modify it to your liking. The markup references two files, -`NaClApplication.js` and `NaClApplication.css`, both are in `Platform/` +`NaClApplication.js` and `WebApplication.css`, both are in `Platform/` directory in the source tree and are also installed into `share/magnum/` inside your NaCl toolchain. @code - - -Magnum NaCl Application - - - - -

Magnum NaCl Application

-
- - -
Initialization...
-
-
- + + + Magnum NaCl Application + + + + +

Magnum NaCl Application

+
+ +
Initialization...
+
+ +
+ @endcode diff --git a/src/Platform/NaClApplication.css b/src/Platform/WebApplication.css similarity index 100% rename from src/Platform/NaClApplication.css rename to src/Platform/WebApplication.css diff --git a/src/Platform/magnum-info-nacl.html b/src/Platform/magnum-info-nacl.html index cd679fb9d..eb9941637 100644 --- a/src/Platform/magnum-info-nacl.html +++ b/src/Platform/magnum-info-nacl.html @@ -1,41 +1,41 @@ - - -Magnum Info - - - - - -

Magnum Info

-
- - + - -
Initialization...
-
-
-
- + var listener = document.getElementById('listener'); + listener.addEventListener('message', messageReceived, true); + +
+