diff options
-rw-r--r-- | lib/VNDB/Util/LayoutHTML.pm | 8 | ||||
-rw-r--r-- | static/f/script.js | 8 |
2 files changed, 8 insertions, 8 deletions
diff --git a/lib/VNDB/Util/LayoutHTML.pm b/lib/VNDB/Util/LayoutHTML.pm index 9f0ccc75..cef1d8af 100644 --- a/lib/VNDB/Util/LayoutHTML.pm +++ b/lib/VNDB/Util/LayoutHTML.pm @@ -157,14 +157,6 @@ sub htmlFooter { a href => $self->{source_url}, 'source'; end; end; # /div maincontent - if($self->debug) { - div id => 'debug'; - h2 'This is not VNDB!'; - txt 'The real VNDB is '; - a href => 'http://vndb.org/', 'here'; - txt '.'; - end; - } end; # /body end; # /html diff --git a/static/f/script.js b/static/f/script.js index 069b5e5d..e434eede 100644 --- a/static/f/script.js +++ b/static/f/script.js @@ -487,6 +487,14 @@ DOMLoad(function() { l[i].onmouseout = function() { this.className = 'spoiler' }; } + // Are we really vndb? + if(location.hostname != 'vndb.org') { + var d = document.createElement('div'); + d.setAttribute('id', 'debug'); + d.innerHTML = '<h2>This is not VNDB!</h2>The real VNDB is <a href="http://vndb.org/">here</a>.'; + document.body.appendChild(d); + } + // forms.js if(x('categories')) catLoad(); |