diff options
author | Yaroslav <contact@yaroslavps.com> | 2019-01-31 16:12:38 +0300 |
---|---|---|
committer | Yaroslav <contact@yaroslavps.com> | 2019-01-31 16:12:38 +0300 |
commit | 3b8ebbf2f612e22af2f81a644d2c71fdaf810af6 (patch) | |
tree | f9303d72b622c5f79c6d666626c1af29de61ae7d /starfield/index.html | |
parent | 0623f7b1d94be0513778ae70e7c574a67f743c17 (diff) | |
download | canvas-antics-3b8ebbf2f612e22af2f81a644d2c71fdaf810af6.tar.gz canvas-antics-3b8ebbf2f612e22af2f81a644d2c71fdaf810af6.zip |
Minor non-code related corrections
Diffstat (limited to 'starfield/index.html')
-rw-r--r-- | starfield/index.html | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/starfield/index.html b/starfield/index.html index 9c7d0f2..1a8dea9 100644 --- a/starfield/index.html +++ b/starfield/index.html @@ -39,12 +39,15 @@ html{ </style> <script> window.addEventListener("load", function(){ + var curr_url = new URL(window.location.href); + var color = curr_url.searchParams.get("color"); + color = color == null ? true : color == "true"; warpLaunch({ 'max_particles': 1500, 'speed': 70, 'step': 10, 'interactive': true, - 'color': true, + 'color': color, }); }); </script> |