aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/logo-color.d/script.js
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/logo-color.d/script.js')
-rw-r--r--contrib/logo-color.d/script.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/contrib/logo-color.d/script.js b/contrib/logo-color.d/script.js
new file mode 100644
index 0000000..ac89905
--- /dev/null
+++ b/contrib/logo-color.d/script.js
@@ -0,0 +1,5 @@
+function color() {
+ var svg = document.querySelector(".logo").getSVGDocument();
+ svg.getElementById("dark-1").setAttribute("stop-color", document.getElementById("color1").value);
+ svg.getElementById("dark-2").setAttribute("stop-color", document.getElementById("color2").value);
+}