//# sourceURL=J_ALTUI.js // This program is free software: you can redistribute it and/or modify // it under the condition that it is for private or home useage and // this whole comment is reproduced in the source code file. // Commercial utilisation is not authorized without the appropriate // written agreement from amg0 / alexis . mermet @ gmail . com // This program is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. //------------------------------------------------------------- // ALTUI Plugin javascript Tabs //------------------------------------------------------------- var altui_Svs = 'urn:upnp-org:serviceId:altui1'; var ip_address = data_request_url; //------------------------------------------------------------- // Utilities Javascript //------------------------------------------------------------- if (typeof String.prototype.format == 'undefined') { String.prototype.format = function() { var content = this; for (var i=0; i < arguments.length; i++) { var replacement = new RegExp('\\{' + i + '\\}', 'g'); // regex requires \ and assignment into string requires \\, // if ($.type(arguments[i]) === "string") // arguments[i] = arguments[i].replace(/\$/g,'$'); content = content.replace(replacement, arguments[i]); } return content; }; }; String.prototype.htmlEncode = function() { var value = this; return $('
').text(value).html(); } String.prototype.htmlDecode= function() { var value = this; return $('').html(value).text(); } function isFunction(x) { return Object.prototype.toString.call(x) == '[object Function]'; } //------------------------------------------------------------- // Utilities for searching Vera devices //------------------------------------------------------------- function findDeviceIdx(deviceID) { //jsonp.ud.devices for(var i=0; iRun | '+htmltest+' |
Theme | '+htmlTheme+' |
Home Page | '+htmlHome+' |
url options |
|
Local CDN ? | '+htmlCDN+' |
Local Bootstrap ? | '+htmlBootstrap+' |
Extra Controllers | '+htmlCTRL+' |
Config | '+htmlConfig+' |
Actions | '+htmlViewJson+htmlSetConfig+htmlResetConfig+' |