aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--dvd/README.md2
-rw-r--r--dvd/dvd.js2
-rw-r--r--starfield/index.html5
3 files changed, 6 insertions, 3 deletions
diff --git a/dvd/README.md b/dvd/README.md
index ee80d70..4459017 100644
--- a/dvd/README.md
+++ b/dvd/README.md
@@ -1,6 +1,6 @@
# DVD Screensaver #
-Just like the good old days, when you paused that DVD movie for a long time, except now you can watch that sweet old screensaver on demand at any time.
+Just like the good old days, when you paused that DVD movie for a long time, except now you can watch that sweet old screensaver on demand at any time. It might hit the corner one or more times, but it is not guaranteed ;)
To start the animation, just call the following function. You can omit passing the options object for the default experience. For it to work, you need to have a canvas object in your HTML document with id #dvd.
diff --git a/dvd/dvd.js b/dvd/dvd.js
index a0ae45b..c7ea495 100644
--- a/dvd/dvd.js
+++ b/dvd/dvd.js
@@ -1,6 +1,6 @@
/*
DVD Screensaver JS v1.0.0
-Copyright 2018 Yaroslav de la Peña Smirnov
+Copyright 2019 Yaroslav de la Peña Smirnov
All rights reserved.
Redistribution and use in source and binary forms, with or without
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>