luci-app-olsr-viz: fix markup which is not valid XHTML
Replace `<br>` with `<br />` as XHTML does not allow self-closing tags. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
This commit is contained in:
parent
70f3ae5072
commit
e6e4575f7c
1 changed files with 7 additions and 7 deletions
|
@ -228,11 +228,11 @@ function node(ip) {
|
||||||
+ "width: 150px; height: 1px; z-index: 4; "
|
+ "width: 150px; height: 1px; z-index: 4; "
|
||||||
+ "position: absolute; background-color: transparent;' >"
|
+ "position: absolute; background-color: transparent;' >"
|
||||||
+ "<div><img src='/luci-static/resources/olsr-viz/node"+(igw ? "-hna" : "")+iconvariant + ".gif'"
|
+ "<div><img src='/luci-static/resources/olsr-viz/node"+(igw ? "-hna" : "")+iconvariant + ".gif'"
|
||||||
+ " alt='node " + this.ip + "' style='border: none;'><br>"
|
+ " alt='node " + this.ip + "' style='border: none;'><br />"
|
||||||
+ "<a href='http://" + this.ip + "/'>"
|
+ "<a href='http://" + this.ip + "/'>"
|
||||||
+ "<span class='label ip'>" + this.ip + "</span></a>"
|
+ "<span class='label ip'>" + this.ip + "</span></a>"
|
||||||
+ (showdesc && this.desc != "" ?
|
+ (showdesc && this.desc != "" ?
|
||||||
"<br><span class='label desc'>" + this.desc + "</span>" : "")
|
"<br /><span class='label desc'>" + this.desc + "</span>" : "")
|
||||||
+ "</div></div>";
|
+ "</div></div>";
|
||||||
return nh;
|
return nh;
|
||||||
}
|
}
|
||||||
|
@ -690,10 +690,10 @@ function declump(t) {
|
||||||
xoff=-xmin;
|
xoff=-xmin;
|
||||||
yoff=-ymin;
|
yoff=-ymin;
|
||||||
/*
|
/*
|
||||||
document.getElementById('debug').innerHTML = "<br>" +
|
document.getElementById('debug').innerHTML = "<br />" +
|
||||||
"offset: " + xoff + "x" + yoff + " dsum: " + dsum + "<br>" +
|
"offset: " + xoff + "x" + yoff + " dsum: " + dsum + "<br />" +
|
||||||
"nc: " + nc + " ec: " + ec + "xmax: " + xmax + " xmin: " + xmin + "<br>" +
|
"nc: " + nc + " ec: " + ec + "xmax: " + xmax + " xmin: " + xmin + "<br />" +
|
||||||
"optsize: " + optsize + "<br>";
|
"optsize: " + optsize + "<br />";
|
||||||
*/
|
*/
|
||||||
refresh();
|
refresh();
|
||||||
if(auto_declump) {
|
if(auto_declump) {
|
||||||
|
@ -765,7 +765,7 @@ function drag(ereignis) {
|
||||||
|
|
||||||
function debug_writeln(line)
|
function debug_writeln(line)
|
||||||
{
|
{
|
||||||
document.getElementById('debug').innerHTML = line + "<br>" + document.getElementById('debug').innerHTML;
|
document.getElementById('debug').innerHTML = line + "<br />" + document.getElementById('debug').innerHTML;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in a new issue