diff compiled/index.html @ 25:13dda1c3ae88

As we launch from a browser now, include the HTML and necessary Javascript bits for that. Also added in "docompile.html" that can be used to pre-compile the Multipaint PSJS code to a multipaint.js. Also included is a patch for Processing.js v1.4.8 that removes use for data: blob URIs that may be against many sites content security policy (CSP).
author Matti Hamalainen <ccr@tnsp.org>
date Wed, 04 Jul 2018 10:27:30 +0300
parents
children 48b74ccc1abd
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/compiled/index.html	Wed Jul 04 10:27:30 2018 +0300
@@ -0,0 +1,28 @@
+<!DOCTYPE html>
+<html lang="en">
+<head>
+  <meta charset="UTF-8">
+  <title>Multipaint.JS</title>
+  <script src="processing.min.js"></script>
+  <script src="mpui.js"></script>
+  <script src="multipaint.js"></script>
+</head>
+<body>
+<canvas id="mpCanvas"></canvas>
+<div id="mpUI"></div>
+<div id="mpNote"><a href="http://multipaint.kameli.net/">Multipaint</a> (C)
+2016-2017 <b>Tero "Dr. TerrorZ" Heikkinen</b>,
+ProcessingJS port and modifications by <b>Matti "ccr" Hämäläinen</b> (2018)
+</div>
+<script>
+
+function mpRunSketch(canvas)
+{
+  new Processing(canvas, multipaintJS);
+}
+
+mpStart();
+
+</script>
+</body>
+</html>