mirror of
https://github.com/nymurbd/MikroTik-scripts.git
synced 2025-08-02 01:04:28 +02:00
add a logo color changer
Generate a colored logo for your notifications!
This commit is contained in:
parent
c2e7567c13
commit
5ae3cb336f
3 changed files with 37 additions and 0 deletions
5
contrib/logo-color.d/script.js
Normal file
5
contrib/logo-color.d/script.js
Normal file
|
@ -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);
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue