diff options
author | thlo <t.lohmar@gmx.de> | 2012-12-26 11:08:33 +0100 |
---|---|---|
committer | thlo <t.lohmar@gmx.de> | 2012-12-26 11:08:33 +0100 |
commit | 86fe990eb0641f74cee509e51079d7a5cab27d6f (patch) | |
tree | 714db52457aab0cfa9bff0991a34b1f522b98411 /smarttv-client/Javascript/Network.js | |
parent | 504925aa69338fc41156cc40b526c79b62ad71a0 (diff) | |
download | vdr-plugin-smarttvweb-86fe990eb0641f74cee509e51079d7a5cab27d6f.tar.gz vdr-plugin-smarttvweb-86fe990eb0641f74cee509e51079d7a5cab27d6f.tar.bz2 |
Initial Widget Version
Diffstat (limited to 'smarttv-client/Javascript/Network.js')
-rwxr-xr-x | smarttv-client/Javascript/Network.js | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/smarttv-client/Javascript/Network.js b/smarttv-client/Javascript/Network.js new file mode 100755 index 0000000..1dfcafc --- /dev/null +++ b/smarttv-client/Javascript/Network.js @@ -0,0 +1,25 @@ +var Network = {
+ plugin : null,
+ ownMac : "",
+ ownGw : ""
+};
+
+Network.init = function () {
+ this.plugin = document.getElementById("pluginNetwork");
+ var nw_type = this.plugin.GetActiveType();
+ if ((nw_type == 0) || (nw_type == 1)) {
+ this.ownMac = this.plugin.GetMAC(nw_type);
+ this.ownGw = this.plugin.GetGateway(nw_type);
+ }
+ alert( "ownMac= " + this.ownMac);
+ alert ("ownGw= " + this.ownGw);
+} ;
+
+
+Network.getMac = function () {
+ return this.ownMac;
+};
+
+Network.getGateway = function () {
+ return this.ownGw;
+};
\ No newline at end of file |