aboutsummaryrefslogtreecommitdiff
path: root/Src/Plugins/Library/ml_online/resources
diff options
context:
space:
mode:
Diffstat (limited to 'Src/Plugins/Library/ml_online/resources')
-rw-r--r--Src/Plugins/Library/ml_online/resources/iconAol.pngbin0 -> 253 bytes
-rw-r--r--Src/Plugins/Library/ml_online/resources/iconAolGames.pngbin0 -> 206 bytes
-rw-r--r--Src/Plugins/Library/ml_online/resources/iconDefault.pngbin0 -> 245 bytes
-rw-r--r--Src/Plugins/Library/ml_online/resources/iconIn2Tv.pngbin0 -> 247 bytes
-rw-r--r--Src/Plugins/Library/ml_online/resources/iconMusicNow.pngbin0 -> 294 bytes
-rw-r--r--Src/Plugins/Library/ml_online/resources/iconShoutcastRadio.pngbin0 -> 277 bytes
-rw-r--r--Src/Plugins/Library/ml_online/resources/iconShoutcastTv.pngbin0 -> 197 bytes
-rw-r--r--Src/Plugins/Library/ml_online/resources/iconSingingfish.pngbin0 -> 249 bytes
-rw-r--r--Src/Plugins/Library/ml_online/resources/iconWaMusic.pngbin0 -> 300 bytes
-rw-r--r--Src/Plugins/Library/ml_online/resources/iconWaRemote.pngbin0 -> 264 bytes
-rw-r--r--Src/Plugins/Library/ml_online/resources/pages/serviceEditor.htm30
-rw-r--r--Src/Plugins/Library/ml_online/resources/pages/webdev.js95
-rw-r--r--Src/Plugins/Library/ml_online/resources/service64x64.pngbin0 -> 1667 bytes
13 files changed, 125 insertions, 0 deletions
diff --git a/Src/Plugins/Library/ml_online/resources/iconAol.png b/Src/Plugins/Library/ml_online/resources/iconAol.png
new file mode 100644
index 00000000..c48a9cda
--- /dev/null
+++ b/Src/Plugins/Library/ml_online/resources/iconAol.png
Binary files differ
diff --git a/Src/Plugins/Library/ml_online/resources/iconAolGames.png b/Src/Plugins/Library/ml_online/resources/iconAolGames.png
new file mode 100644
index 00000000..d5dce983
--- /dev/null
+++ b/Src/Plugins/Library/ml_online/resources/iconAolGames.png
Binary files differ
diff --git a/Src/Plugins/Library/ml_online/resources/iconDefault.png b/Src/Plugins/Library/ml_online/resources/iconDefault.png
new file mode 100644
index 00000000..6a2d99e6
--- /dev/null
+++ b/Src/Plugins/Library/ml_online/resources/iconDefault.png
Binary files differ
diff --git a/Src/Plugins/Library/ml_online/resources/iconIn2Tv.png b/Src/Plugins/Library/ml_online/resources/iconIn2Tv.png
new file mode 100644
index 00000000..5df2581b
--- /dev/null
+++ b/Src/Plugins/Library/ml_online/resources/iconIn2Tv.png
Binary files differ
diff --git a/Src/Plugins/Library/ml_online/resources/iconMusicNow.png b/Src/Plugins/Library/ml_online/resources/iconMusicNow.png
new file mode 100644
index 00000000..ca645c9e
--- /dev/null
+++ b/Src/Plugins/Library/ml_online/resources/iconMusicNow.png
Binary files differ
diff --git a/Src/Plugins/Library/ml_online/resources/iconShoutcastRadio.png b/Src/Plugins/Library/ml_online/resources/iconShoutcastRadio.png
new file mode 100644
index 00000000..72ea4648
--- /dev/null
+++ b/Src/Plugins/Library/ml_online/resources/iconShoutcastRadio.png
Binary files differ
diff --git a/Src/Plugins/Library/ml_online/resources/iconShoutcastTv.png b/Src/Plugins/Library/ml_online/resources/iconShoutcastTv.png
new file mode 100644
index 00000000..85fcfbca
--- /dev/null
+++ b/Src/Plugins/Library/ml_online/resources/iconShoutcastTv.png
Binary files differ
diff --git a/Src/Plugins/Library/ml_online/resources/iconSingingfish.png b/Src/Plugins/Library/ml_online/resources/iconSingingfish.png
new file mode 100644
index 00000000..a3b7c57f
--- /dev/null
+++ b/Src/Plugins/Library/ml_online/resources/iconSingingfish.png
Binary files differ
diff --git a/Src/Plugins/Library/ml_online/resources/iconWaMusic.png b/Src/Plugins/Library/ml_online/resources/iconWaMusic.png
new file mode 100644
index 00000000..32ea227a
--- /dev/null
+++ b/Src/Plugins/Library/ml_online/resources/iconWaMusic.png
Binary files differ
diff --git a/Src/Plugins/Library/ml_online/resources/iconWaRemote.png b/Src/Plugins/Library/ml_online/resources/iconWaRemote.png
new file mode 100644
index 00000000..70143fe1
--- /dev/null
+++ b/Src/Plugins/Library/ml_online/resources/iconWaRemote.png
Binary files differ
diff --git a/Src/Plugins/Library/ml_online/resources/pages/serviceEditor.htm b/Src/Plugins/Library/ml_online/resources/pages/serviceEditor.htm
new file mode 100644
index 00000000..ea7c3bf2
--- /dev/null
+++ b/Src/Plugins/Library/ml_online/resources/pages/serviceEditor.htm
@@ -0,0 +1,30 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+ <title>Online Services Editor</title>
+ <meta content="http://schemas.microsoft.com/intellisense/ie5" name="vs_targetSchema"/>
+ <meta content="True" name="vs_snapToGrid"/>
+ <meta content="False" name="vs_showGrid"/>
+ <meta http-equiv="content-type" content="text/html;charset=utf-8"/>
+ <script src="webdev.js" type="text/javascript"></script>
+ <style type="text/css">#Checkbox1 {width: 321px; top: 160px; left: 64px;}</style>
+</head>
+<body style="overflow-y: auto; overflow-x: auto; overflow: visible; FONT-FAMILY: MS Shell Dlg 2;" onload="WebDevEditor_Init();">
+ <h2 align="center">Online Services Editor</h2>
+ <div align="left" nowrap>
+ <div id="DIV1" style="border: 1px solid gray; clear: both; DISPLAY: block; left: 50%; float: none; visibility: visible; margin-left: -204px; overflow: visible; width: 408px; color: black; position: absolute; height: 150px; background-color: dimgray; top: 126px;" align="center" nowrap ms_positioning="GridLayout">
+ <div style="z-index: 110; left: 16px; position: absolute; top: 14px">Id:</div>
+ <input id="scvedt_edt_id" style="z-index: 101; left: 64px; position: absolute; top: 14px" readonly maxlength="16" size="9" tabindex="1"/>
+ <div style="z-index: 102; left: 16px; position: absolute; top: 46px">Name:</div>
+ <input id="scvedt_edt_name" style="z-index: 103; left: 64px; position: absolute; top: 46px; width: 322px;" maxlength="512" size="48" tabindex="2"/>
+ <div style="z-index: 104; left: 16px; position: absolute; top: 78px">Url:</div>
+ <input id="scvedt_edt_url" style="z-index: 105; left: 64px; position: absolute; top: 78px; width: 321px;" maxlength="2048" size="48" name="Text1" tabindex="3"/>
+ <div style="z-index: 106; left: 16px; position: absolute; top: 110px">Icon:</div>
+ <input id="scvedt_edt_icon" style="z-index: 107; left: 64px; position: absolute; top: 110px; width: 321px;" maxlength="512" size="48" name="Text2" tabindex="4"/>
+ <div align = "left" style="z-index: 108; position: absolute; width: 320px; left: 25px;" >
+ <input id="svcedt_btn_save" style="z-index: 109; left: 200px; width: 88px; position: absolute; top: 180px; height: 24px; right: 118px;" onclick="WebDevEditor_Save();" type="submit" value="Save" name="buttonOk" tabindex="6"/>
+ <input id="svcedt_btn_close" style="z-index: 110; left: 297px; width: 88px; position: absolute; top: 180px; height: 24px" onclick="WebDevEditor_Close();" type="button" value="Cancel" name="buttonCancel" tabindex="7"/>
+ </div>
+ </div>
+</body>
+</html> \ No newline at end of file
diff --git a/Src/Plugins/Library/ml_online/resources/pages/webdev.js b/Src/Plugins/Library/ml_online/resources/pages/webdev.js
new file mode 100644
index 00000000..96eb0ab9
--- /dev/null
+++ b/Src/Plugins/Library/ml_online/resources/pages/webdev.js
@@ -0,0 +1,95 @@
+function GetUrlParam(name)
+{
+ name = name.replace(/[\[]/,"\\\[").replace(/[\]]/,"\\\]");
+ var regexS = "[\\?&]"+name+"=([^&#]*)";
+ var regex = new RegExp( regexS );
+ var results = regex.exec( window.location.href );
+ if( results == null )
+ return "";
+ else
+ return results[1];
+}
+
+function WebDev_OpenService(serviceId, forceUrl)
+{
+ if (typeof(window.external.WebDev) == "undefined")
+ alert("Cannot access Webdev Api");
+ else if (false == window.external.WebDev.serviceOpen(serviceId, forceUrl))
+ alert("Unable to open service");
+}
+function WebDev_OpenDocumentation()
+{
+ WebDev_OpenService(701, null);
+}
+
+function WebDev_OpenJSAPI2Test()
+{
+ WebDev_OpenService(702, null);
+}
+
+function WebDev_CreateService()
+{
+ if (typeof(window.external.WebDev) == "undefined")
+ alert("Cannot access Webdev Api");
+ else if (false == window.external.WebDev.serviceCreate())
+ alert("Unable to create service");
+}
+
+function WebDevEditor_Init(url)
+{
+ var serviceId = parseInt(GetUrlParam("serviceId"), 10);
+
+ if (typeof(window.external.WebDev) == "undefined")
+ alert("Cannot access Webdev Api");
+ else
+ {
+ var info = window.external.WebDev.serviceGetInfo(serviceId);
+ if (null == info)
+ {
+ alert("Unable to get service information");
+ }
+ else
+ {
+ document.getElementById("scvedt_edt_id").value = info.id;
+ document.getElementById("scvedt_edt_name").value = info.name;
+ document.getElementById("scvedt_edt_url").value = info.url;
+ document.getElementById("scvedt_edt_icon").value = info.icon;
+ }
+ }
+}
+
+function WebDevEditor_Save()
+{
+ if (typeof(window.external.WebDev) == "undefined")
+ alert("Cannot access Webdev Api");
+ else
+ {
+ var serviceId = parseInt(document.getElementById("scvedt_edt_id").value, 10);
+ if (0 != serviceId)
+ {
+ var serviceName = document.getElementById("scvedt_edt_name").value;
+ var serviceUrl = document.getElementById("scvedt_edt_url").value;
+ var serviceIcon = document.getElementById("scvedt_edt_icon").value;
+ if (false == window.external.WebDev.serviceSetInfo(serviceId, serviceName, serviceIcon, serviceUrl, true))
+ {
+ alert("Unable to set service info");
+ }
+ if (false == window.external.WebDev.serviceOpen(serviceId, 1))
+ {
+ alert("Unable to navigate");
+ }
+ }
+ }
+}
+
+function WebDevEditor_Close()
+{
+ if (typeof(window.external.WebDev) == "undefined")
+ alert("Cannot access Webdev Api");
+ else
+ {
+ var serviceId = parseInt(document.getElementById("scvedt_edt_id").value, 10);
+ if (0 == serviceId || false == window.external.WebDev.serviceOpen(serviceId, 1))
+ alert("Unable to navigate");
+ }
+} \ No newline at end of file
diff --git a/Src/Plugins/Library/ml_online/resources/service64x64.png b/Src/Plugins/Library/ml_online/resources/service64x64.png
new file mode 100644
index 00000000..8aaea002
--- /dev/null
+++ b/Src/Plugins/Library/ml_online/resources/service64x64.png
Binary files differ