changeset 37:48b74ccc1abd

Move note to javascript.
author Matti Hamalainen <ccr@tnsp.org>
date Wed, 04 Jul 2018 11:19:45 +0300
parents a39b3c9e5c3b
children f7bd82b817fc
files compiled/index.html index.html mpui.js
diffstat 3 files changed, 6 insertions(+), 8 deletions(-) [+]
line wrap: on
line diff
--- a/compiled/index.html	Wed Jul 04 10:50:42 2018 +0300
+++ b/compiled/index.html	Wed Jul 04 11:19:45 2018 +0300
@@ -10,10 +10,7 @@
 <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>
+<div id="mpNote"></div>
 <script>
 
 function mpRunSketch(canvas)
--- a/index.html	Wed Jul 04 10:50:42 2018 +0300
+++ b/index.html	Wed Jul 04 11:19:45 2018 +0300
@@ -9,10 +9,7 @@
 <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>
+<div id="mpNote"></div>
 <script>
 
 function mpRunSketch(canvas)
--- a/mpui.js	Wed Jul 04 10:50:42 2018 +0300
+++ b/mpui.js	Wed Jul 04 11:19:45 2018 +0300
@@ -141,6 +141,10 @@
 
 function mpStart()
 {
+  stGE("mpNote").innerHTML =
+    "<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)";
+
   var slink = window.location.href;
   var spos, found = false;
   if ((spos = slink.indexOf("?")) >= 0)