summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorwushin <pasekei@gmail.com>2016-03-14 02:18:14 -0500
committerwushin <pasekei@gmail.com>2016-03-14 02:18:14 -0500
commit80e8fd3eb509606a207a90dec8946ecf147dffe2 (patch)
tree89b649022723261f651b441c9ca26f0241c91c94
parent7a3908fadc2f598af88ecb5c4a4269e918596d61 (diff)
downloadwebsite-80e8fd3eb509606a207a90dec8946ecf147dffe2.tar.gz
website-80e8fd3eb509606a207a90dec8946ecf147dffe2.tar.bz2
website-80e8fd3eb509606a207a90dec8946ecf147dffe2.tar.xz
website-80e8fd3eb509606a207a90dec8946ecf147dffe2.zip
Move Js into the skin
-rw-r--r--skins/foreground/assets/scripts/tmw.js2
-rwxr-xr-xskins/foreground/foreground.php3
-rw-r--r--skins/foreground/skin.json3
3 files changed, 6 insertions, 2 deletions
diff --git a/skins/foreground/assets/scripts/tmw.js b/skins/foreground/assets/scripts/tmw.js
new file mode 100644
index 0000000..c363c7e
--- /dev/null
+++ b/skins/foreground/assets/scripts/tmw.js
@@ -0,0 +1,2 @@
+var serverStatus = "<div class='body'><iframe src='https://server.themanaworld.org/status.php' width='150' height='30' frameborder='0' scrolling='no'></iframe></div>";
+document.getElementById('p-server_status').innerHTML = serverStatus;
diff --git a/skins/foreground/foreground.php b/skins/foreground/foreground.php
index fb0bd9d..a2d37b7 100755
--- a/skins/foreground/foreground.php
+++ b/skins/foreground/foreground.php
@@ -74,7 +74,8 @@ $wgResourceModules['skins.foreground.js'] = array(
'foreground/assets/scripts/foundation/foundation.placeholder.js',
'foreground/assets/scripts/foundation/foundation.forms.js',
'foreground/assets/scripts/foundation/foundation.alerts.js',
- 'foreground/assets/scripts/foreground.js'
+ 'foreground/assets/scripts/foreground.js',
+ 'foreground/assets/scripts/tmw.js'
),
'remoteBasePath' => &$GLOBALS['wgStylePath'],
'localBasePath' => &$GLOBALS['wgStyleDirectory']
diff --git a/skins/foreground/skin.json b/skins/foreground/skin.json
index fcec102..ad337d5 100644
--- a/skins/foreground/skin.json
+++ b/skins/foreground/skin.json
@@ -51,7 +51,8 @@
"assets/scripts/foundation/foundation.placeholder.js",
"assets/scripts/foundation/foundation.forms.js",
"assets/scripts/foundation/foundation.alerts.js",
- "assets/scripts/foreground.js"
+ "assets/scripts/foreground.js",
+ "assets/scripts/tmw.js"
]
}
},