diff options
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 |