diff --git a/vcm/templates/custom.js b/vcm/templates/custom.js index 0efd3f291def297bfca16cb9785ee8f8c49df9f3..10bf4fe157ca8bdcabb89cc0e9b2b70183d8f431 100644 --- a/vcm/templates/custom.js +++ b/vcm/templates/custom.js @@ -10,8 +10,11 @@ $("#tour-button").hide(); // checkagent(); // removebuildings(); + var checkExist = setInterval(function() { + if ($('.featured-company').length) { + if (framework.isMobile() == false){ var fCompany = document.getElementsByClassName("featured-company")[0]; fCompany.setAttribute("id", "featuredCompany"); var comp = document.getElementById("featuredCompany"); @@ -22,7 +25,7 @@ var checkExist = setInterval(function() { 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); };