Commit 6097c6f4 authored by Patrick's avatar Patrick
Browse files

add Legend header

parent 4a0fcaaa
...@@ -10,8 +10,20 @@ $("#tour-button").hide(); ...@@ -10,8 +10,20 @@ $("#tour-button").hide();
// checkagent(); // checkagent();
// removebuildings(); // removebuildings();
var checkExist = setInterval(function() {
if ($('.featured-company').length) {
var fCompany = document.getElementsByClassName("featured-company")[0];
fCompany.setAttribute("id", "featuredCompany");
var comp = document.getElementById("featuredCompany");
g = document.createElement('div');
g.setAttribute("id", "Div1");
g.innerHTML = ("Legende:")
g.setAttribute("style", "font-size: large; position: absolute; top: -31px; left: -2px;font-weight: bold; width: 100px; padding: 5px; text-align: center; vertical-align: middle; background: rgba(255,255,255,0.9);");
comp.appendChild(g);
clearInterval(checkExist);
}
}, 200);
}; };
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment