view quick-test.html @ 74:65c802d88e23

Force Emscripten to emit the static memory init code inside the JS file. - Emscripten emits it into a separate .mem file for optimised builds, as of 1.12.1 - The file is loaded asyncronously, so occasionally the runtime hadn't initialised before trying to call functions (happened in Chrome, similar to what we've seen before) - This is the easiest fix, without changing the JS for this simple example.
author Lucas Thompson <lucas.thompson@qmul.ac.uk>
date Wed, 24 Aug 2016 14:18:08 +0100
parents 8db927152497
children c250695a784f
line wrap: on
line source
<html>
  <head>
    <meta charset="UTF-8">
    <title>VamPipe Adapter Test</title>

    <style type="text/css">
      body { margin: 5%; }
      table, td, th { border: 0.1em solid #e0e0e0; border-collapse: collapse }
      td, th { padding: 0.5em }
    </style>

    <script src="example.js"></script>
    <script src="quick-test.js"></script>
  </head>
  <body>
    <h3>VamPipe Adapter Test</h3>

    <p id="test-result"></p>
    
  </body>
</html>