From 3b8ebbf2f612e22af2f81a644d2c71fdaf810af6 Mon Sep 17 00:00:00 2001 From: Yaroslav <contact@yaroslavps.com> Date: Thu, 31 Jan 2019 16:12:38 +0300 Subject: Minor non-code related corrections --- starfield/index.html | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'starfield') 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> -- cgit v1.2.3