Advertisement
Guest User

PJSI test

a guest
Oct 23rd, 2016
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 0.86 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html>
  3.     <head>
  4.         <!--
  5.        WebEntry String(HttpQuery) hello = (HttpQuery query) ->
  6.        {
  7.            return "document.getElementById('#plthello').innerHTML = '" +
  8.                   query.asString().replace("'", "\\'") + "');";
  9.        };
  10.        -->
  11.         <script type="application/x-experimental-mar" src="/plt-bin/main.mar"></script>
  12.         <script type="application/javascript" src="/js/pltweb.js"></script>
  13.         <script type="application/javascript">
  14.             window.onload = function () {
  15.                 var plt = new Platinum;
  16.                 plt.loadAll(function (handle) {
  17.                     handle.exec("hello", "Hello World!");
  18.                 });
  19.             };
  20.         </script>
  21.     </head>
  22.     <body>
  23.         <!-- "Hello World!" should appear: -->
  24.         <p id="plthello"></p>
  25.     </body>
  26. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement