@cryptotaxi247 / netdata-1 / commits / e832b5c0b

minor fixes for the demo sites

Costa Tsaousis (ktsaou) committed Apr 29, 2016 at 04:54 UTC e832b5c0baef67d760537ea1249e175ae53ba572
1 file changed +7 -2
web/index.html
+7 -2
@@ -350,8 +350,9 @@
350 <li class="dropdown">
351 <a href="#" class="dropdown-toggle" data-toggle="dropdown" id="current_view">demo sites <strong class="caret"></strong></a>
352 <ul class="dropdown-menu scrollable-menu inpagemenu" role="menu">
353 - <li id="demo_eu"><a href="//netdata.firehol.org?nowelcome">EU - London (DigitalOcean.com)</a></li>
353 + <li id="demo_eu"><a href="//netdata1.firehol.org?nowelcome">EU - London (DigitalOcean.com)</a></li>
354 <li id="demo_us"><a href="//netdata2.firehol.org?nowelcome">US - Atlanta (CDN77.com)</a></li>
355 + <li id="demo_gr"><a href="//netdata3.firehol.org?nowelcome">EU - Greece</a></li>
356 <li role="separator" class="divider"></li>
357 <li id="demo_tv"><a href="tv.html">TV Dashboard for 2 servers</a></li>
358 <li id="demosites"><a href="demosites.html">Dashboard for monitoring netdata demo sites</a></li>
@@ -798,7 +799,7 @@ function isdemo() {
799
800 try {
801 if(typeof document.location.hostname === 'string') {
801 - if(document.location.hostname === 'netdata.firehol.org') {
802 + if(document.location.hostname === 'netdata.firehol.org' || document.location.hostname === 'netdata1.firehol.org') {
803 document.getElementById("demo_eu").className = "active";
804 this_is_demo = true;
805 }
@@ -806,6 +807,10 @@ function isdemo() {
807 document.getElementById("demo_us").className = "active";
808 this_is_demo = true;
809 }
810 + else if(document.location.hostname === 'netdata3.firehol.org') {
811 + document.getElementById("demo_gr").className = "active";
812 + this_is_demo = true;
813 + }
814 }
815
816 if(!this_is_demo)