[TASK] Unicode instead of utf8 icons

This commit is contained in:
Xaver Maierhofer 2016-05-24 00:22:34 +02:00 committed by Milan Paessler
parent b510dda006
commit d367bf58bf
2 changed files with 6 additions and 4 deletions

View file

@ -18,7 +18,8 @@ define(function () {
} }
a1.textContent = unknown ? d.source.id : d.source.node.nodeinfo.hostname; a1.textContent = unknown ? d.source.id : d.source.node.nodeinfo.hostname;
h2.appendChild(a1); h2.appendChild(a1);
h2.appendChild(document.createTextNode(" → ")); h2.appendChild(document.createTextNode(" \uF3D6 "));
h2.className = 'ion-inside';
var a2 = document.createElement("a"); var a2 = document.createElement("a");
a2.href = "#"; a2.href = "#";
a2.onclick = router.node(d.target.node); a2.onclick = router.node(d.target.node);

View file

@ -156,12 +156,12 @@ define(["moment", "numeral", "tablesort", "tablesort.number", "moment.de"],
var span = document.createElement("span"); var span = document.createElement("span");
span.classList.add("clients"); span.classList.add("clients");
span.textContent = " ".repeat(d.statistics.clients); span.textContent = "\uF47E ".repeat(d.statistics.clients);
el.appendChild(span); el.appendChild(span);
var spanmesh = document.createElement("span"); var spanmesh = document.createElement("span");
spanmesh.classList.add("clientsMesh"); spanmesh.classList.add("clientsMesh");
spanmesh.textContent = " ".repeat(meshclients - d.statistics.clients); spanmesh.textContent = "\uF47E ".repeat(meshclients - d.statistics.clients);
el.appendChild(spanmesh); el.appendChild(spanmesh);
}; };
} }
@ -577,7 +577,8 @@ define(["moment", "numeral", "tablesort", "tablesort.number", "moment.de"],
var tr = document.createElement("tr"); var tr = document.createElement("tr");
var td1 = document.createElement("td"); var td1 = document.createElement("td");
td1.appendChild(document.createTextNode(d.incoming ? " ← " : " → ")); td1.className = 'ion-inside';
td1.appendChild(document.createTextNode(d.incoming ? " \uF3D5 " : " \uF3D6 "));
tr.appendChild(td1); tr.appendChild(td1);
var td2 = document.createElement("td"); var td2 = document.createElement("td");