X-Git-Url: http://repos.xcallymotion.com/?a=blobdiff_plain;f=index.html;h=6f973f3afa3d7db8823741a70a168d18ca3e173e;hb=HEAD;hp=69f754936ed11624212b04fc8a5aac7086317ebd;hpb=960ba60653eaec3133a05e9e93ab0dcb520a019d;p=dialpad.git
diff --git a/index.html b/index.html
index 69f7549..6f973f3 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,38 +25,94 @@
+
+
+
-
+
-
+
- {{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);
+ 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