Skip to content

Commit e3446de

Browse files
committed
add a logo color changer
Generate a colored logo for your notifications!
1 parent c2e7567 commit e3446de

File tree

3 files changed

+37
-0
lines changed

3 files changed

+37
-0
lines changed

contrib/logo-color.d/script.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
function color() {
2+
var svg = document.querySelector(".logo").getSVGDocument();
3+
svg.getElementById("dark-1").setAttribute("stop-color", document.getElementById("color1").value);
4+
svg.getElementById("dark-2").setAttribute("stop-color", document.getElementById("color2").value);
5+
}

contrib/logo-color.d/style.css

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
body {
2+
font-family: fira-sans, sans;
3+
font-size: 10pt;
4+
background-color: transparent;
5+
}

contrib/logo-color.html

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8">
5+
<title>RouterOS-Scripts Logo Color Changer</title>
6+
<link rel="stylesheet" type="text/css" href="logo-color.d/style.css">
7+
<script src="logo-color.d/script.js"></script>
8+
</head>
9+
<body>
10+
11+
<h1>RouterOS-Scripts Logo Color Changer</h1>
12+
13+
<p>You want the logo for your own notifications? But you joined the
14+
<a href="https://t.me/routeros_scripts">Telegram Group</a> and want
15+
something that differentiates? Color it!</p>
16+
17+
<embed class="logo" src="../logo.svg" width="128" height="128" type="image/svg+xml" />
18+
19+
<p>Select the colors here:
20+
<input id="color1" type="color" value="#222222" onchange="color();">
21+
<input id="color2" type="color" value="#444444" onchange="color();"></p>
22+
23+
<p>Then right-click, click "<i>Take Screenshot</i>" and finally select the
24+
logo and download it.</p>
25+
26+
</body>
27+
</html>

0 commit comments

Comments
 (0)