X-Git-Url: http://repos.xcallymotion.com/?a=blobdiff_plain;f=index.html;h=a4c0c87a334301f73d55d02f8330abac82185620;hb=e18893dcb9aeeaeeb7c4a01844795b9023b0312f;hp=02c0bb3b8a7a41909535aaf27732fc3d675ff142;hpb=af23da7360fd90a9ecc9a4aef21574b1c5318359;p=dialpad.git diff --git a/index.html b/index.html index 02c0bb3..a4c0c87 100644 --- a/index.html +++ b/index.html @@ -1,18 +1,22 @@ + - - + XCALLY Motion Dialpad + + + - +
+
- Agent offline - {{vm.displayName}}, {{vm.internal}} + Agent offline + {{vm.fullname}} ({{vm.internal}})
@@ -21,40 +25,96 @@
+ +
+
+
+
+ {{vm.timer}} +
+
+
+
- +
- +
- {{number}} + {{number}}
- {{number}} + {{number}}
- {{number}} + {{number}}
- * - 0 - # + * + 0 + #
- +
+ + + - + + function getQueryString() { + var queryStringKeyValue = window.parent.location.search.replace('?', '').split('&'); + var qsJsonObject = {}; + if (queryStringKeyValue != '') { + for (i = 0; i < queryStringKeyValue.length; i++) { + qsJsonObject[queryStringKeyValue[i].split('=')[0]] = queryStringKeyValue[i].split('=')[1]; + } + } + return qsJsonObject; + } + // + (function () { + //var dialpad = document.getElementById('dialpad'); + var body = document.getElementsByTagName('body')[0]; + var urlParams = new URLSearchParams(window.location.search); + console.log("TCL: window.location.search", window.location.search); + //console.log("TCL: urlParams", urlParams); + var mode = urlParams.get('mode'); + var type = urlParams.get('type'); + if (mode && mode.toLowerCase() === 'lightning') { + body.setAttribute('ng-controller', 'lightningController as vm'); + } else if (type && type.toLowerCase() === 'desk') { + body.setAttribute('ng-controller', 'deskController as vm'); + } else { + body.setAttribute('ng-controller', 'classicController as vm'); + } + } -
+ )(); + + + - + + \ No newline at end of file