summaryrefslogtreecommitdiff
path: root/static
diff options
context:
space:
mode:
authorYorhel <git@yorhel.nl>2009-02-21 21:14:57 +0100
committerYorhel <git@yorhel.nl>2009-02-21 21:14:57 +0100
commit27029f4567c23dd5c11a7efe5a1c92c23e29bb5c (patch)
tree49437497520af1851584d6da97209fced87c1c2c /static
parentd03465b573c10b10819201bba8257e59362589f1 (diff)
Move the "This is not VNDB" check to Javascript
This'll make it possible to run the actual vndb in debug mode without displaying that "this is not VNDB" message. And non-VNDB sites can now properly run without debug mode while still displaying that message.
Diffstat (limited to 'static')
-rw-r--r--static/f/script.js8
1 files changed, 8 insertions, 0 deletions
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();