simon-git: puzzles (main): Ben Harris

Commits to Tartarus hosted VCS tartarus-commits at lists.tartarus.org
Sat Nov 12 15:06:04 GMT 2022


TL;DR:
  208e250 js: Add a way to have environment variables

Repository:     https://git.tartarus.org/simon/puzzles.git
On the web:     https://git.tartarus.org/?p=simon/puzzles.git
Branch updated: main
Committer:      Ben Harris <bjh21 at bjh21.me.uk>
Date:           2022-11-12 15:06:04

commit 208e2508d3ba459d32e31661a0fa9d1b4707dd0e
web diff https://git.tartarus.org/?p=simon/puzzles.git;a=commitdiff;h=208e2508d3ba459d32e31661a0fa9d1b4707dd0e;hp=4e3bb8f257f711c785498644a5c39d6c5d21dc87
Author: Ben Harris <bjh21 at bjh21.me.uk>
Date:   Sat Nov 12 15:03:40 2022 +0000

    js: Add a way to have environment variables
    
    They can now be specified by sticking some JSON in a <script> element in
    the Web page:
    
    <script id="environment" type="application/json">
       { "LOOPY_DEFAULT": "20x10t11dh" }
    </script>
    
    This isn't brilliantly useful, but it does allow for changing settings
    without recompiling.

 emccpre.js | 13 +++++++++++++
 1 file changed, 13 insertions(+)



More information about the tartarus-commits mailing list