jfinn пре 1 месец
родитељ
комит
c5886eea8d

+ 31
- 0
embed/f1.html Прегледај датотеку

@@ -0,0 +1,31 @@
1
+
2
+<html itemscope itemtype="http://schema.org/Product" prefix="og: http://ogp.me/ns#" xmlns="http://www.w3.org/1999/html">
3
+  <head>
4
+<!-- <script src='https://meet.jit.si/external_api.js'></script> -->
5
+<!-- <script src='/external_api.js'></script> -->
6
+<script src='https://meet.jit.si/external_api.js'></script>
7
+
8
+  </head>
9
+<body>
10
+  .vbsrv
11
+	<div id="meet"></div>
12
+</body>
13
+
14
+<script>
15
+// const domain = "specplot.com";
16
+// const domain = "fredericktheinsanelygreat.com";
17
+// const domain = "xtr_s0.jfidev.com";
18
+// const domain = "xtr_s1.jfidev.com";
19
+// const domain = 'meet.jit.si';
20
+const domain = 'vbsrv.videocorners.com';
21
+const options = {
22
+    // roomName: 'JitsiMeetAPIExample',
23
+    // roomName: 'ComplexTunnelsDecorateMerely',
24
+    roomName: 'indx/index.new.v2a.html/loc.av/nv_j9_dep.j9_dev.prx_dev.invite_dev.dev_av_io.av_jsync/room1a',
25
+    // roomName: 'indx/index.new.html/loc.av/nv_j9_dep.j9_dev.prx_dev.invite_dev.dev_av_io.av_jsync/room7/JitsiMeetAPIExample',
26
+    width: 700,
27
+    height: 700,
28
+    parentNode: document.querySelector('#meet')
29
+};
30
+const api = new JitsiMeetExternalAPI(domain, options);
31
+</script>

+ 41
- 2
indx/rmix/ifr_rsv0.html Прегледај датотеку

@@ -29,6 +29,15 @@
29 29
         }
30 30
     </script>
31 31
     <style>
32
+
33
+        .flex.items-center.justify-center.h-full{
34
+            opacity: .5;
35
+            position: absolute;
36
+            display: none;
37
+            pointer-events: none;
38
+        }
39
+
40
+
32 41
         body {
33 42
             background-color: #050505;
34 43
             color: #eeeeee;
@@ -62,6 +71,10 @@
62 71
 
63 72
 </head>
64 73
 <body class="flex h-full flex-col">
74
+
75
+  .vbsrv
76
+    <div id="meet"></div>
77
+    
65 78
     <!-- Navigation -->
66 79
     <nav class=""><!-- Removed border-b class -->
67 80
         <div class="mx-auto max-w-screen-2xl px-6 sm:px-8 lg:px-12"><!-- Increased max width and horizontal padding -->
@@ -293,7 +306,7 @@ document.addEventListener('DOMContentLoaded', function() {
293 306
     }
294 307
 
295 308
     // Alert user that they have to open X32-EDIT
296
-    alert('Please open X32-EDIT on your computer to control the mixer.');
309
+    // alert('Please open X32-EDIT on your computer to control the mixer.');
297 310
 
298 311
     // Fetch the roomName from the API
299 312
     fetchMeetingRoom(engineerDeviceUUID, reservationID);
@@ -357,6 +370,7 @@ function fetchMeetingRoom(uuid, reservationID) {
357 370
     })
358 371
     .catch(error => {
359 372
         console.error('Error fetching meeting room:', error);
373
+
360 374
         meetContainer.innerHTML = `
361 375
             <div class="flex items-center justify-center h-full">
362 376
                 <div class="text-center p-8 bg-gray-700 rounded-lg shadow-lg">
@@ -373,11 +387,14 @@ function fetchMeetingRoom(uuid, reservationID) {
373 387
 
374 388
 // Function to initialize Jitsi Meet
375 389
 function initializeJitsiMeet(roomName, parentNode) {
376
-    const domain = 'meet2.epowerstor.com';
390
+    // const domain = 'meet2.epowerstor.com';
391
+    const domain = 'vbsrv.videocorners.com';
377 392
     // stringify roomName
378 393
 
394
+
379 395
     const options = {
380 396
         roomName: roomName,
397
+        roomName: "indx/index.new.v2a.html/loc.av/nv_j9_dep.j9_dev.prx_dev.invite_dev.dev_av_io.av_jsync/room1a",
381 398
         width: '100%',
382 399
         height: '100%',
383 400
         parentNode: parentNode,
@@ -514,4 +531,26 @@ document.addEventListener('click', (event) => {
514 531
 </script>
515 532
 
516 533
 </body>
534
+
535
+
536
+
537
+<script>
538
+// const domain = "specplot.com";
539
+// const domain = "fredericktheinsanelygreat.com";
540
+// const domain = "xtr_s0.jfidev.com";
541
+// const domain = "xtr_s1.jfidev.com";
542
+// const domain = 'meet.jit.si';
543
+const domain = 'vbsrv.videocorners.com';
544
+const options = {
545
+    // roomName: 'JitsiMeetAPIExample',
546
+    // roomName: 'ComplexTunnelsDecorateMerely',
547
+    roomName: 'indx/index.new.v2a.html/loc.av/nv_j9_dep.j9_dev.prx_dev.invite_dev.dev_av_io.av_jsync/room1a',
548
+    // roomName: 'indx/index.new.html/loc.av/nv_j9_dep.j9_dev.prx_dev.invite_dev.dev_av_io.av_jsync/room7/JitsiMeetAPIExample',
549
+    width: 700,
550
+    height: 700,
551
+    parentNode: document.querySelector('#meet')
552
+};
553
+const api = new JitsiMeetExternalAPI(domain, options);
554
+</script>
555
+
517 556
 </html>

+ 48
- 0
indx/rmix/ifr_rsv00.html Прегледај датотеку

@@ -0,0 +1,48 @@
1
+
2
+<html itemscope itemtype="http://schema.org/Product" prefix="og: http://ogp.me/ns#" xmlns="http://www.w3.org/1999/html">
3
+  <head>
4
+<!-- <script src='https://meet.jit.si/external_api.js'></script> -->
5
+<!-- <script src='/external_api.js'></script> -->
6
+<script src='https://meet.jit.si/external_api.js'></script>
7
+
8
+  </head>
9
+<body>
10
+  .vbsrv
11
+	<div id="meet"></div>
12
+</body>
13
+
14
+<script>
15
+    const gatewayUUID = "HS01C240004P0012999";
16
+    const engineerDeviceUUID = "FXV6106RNJ";
17
+    const reservationID = "156";
18
+
19
+
20
+/*    fetch('https://portal.rmixservice.com/reservation/meet/url/', {
21
+        method: 'POST',
22
+        // headers: {
23
+        //     'Content-Type': 'application/json',
24
+        //     'X-CSRFToken': getCookie('csrftoken') // Get CSRF token from cookies
25
+        // },
26
+        body: {uuid:engineerDeviceUUID}
27
+    })*/
28
+clog=console.log
29
+function function_name(response) {clog("FN",arguments,this)}
30
+function function_name2(argument) {clog("FN2",arguments,this)}
31
+fetch('https://portal.rmixservice.com/reservation/meet/url/', {method: 'POST',body: JSON.stringify({uuid:engineerDeviceUUID})}).then(response => response.json()).then(function_name).catch(function_name2)
32
+// const domain = "specplot.com";
33
+// const domain = "fredericktheinsanelygreat.com";
34
+// const domain = "xtr_s0.jfidev.com";
35
+// const domain = "xtr_s1.jfidev.com";
36
+// const domain = 'meet.jit.si';
37
+const domain = 'vbsrv.videocorners.com';
38
+const options = {
39
+    // roomName: 'JitsiMeetAPIExample',
40
+    // roomName: 'ComplexTunnelsDecorateMerely',
41
+    roomName: 'indx/index.new.v2a.html/loc.av/nv_j9_dep.j9_dev.prx_dev.invite_dev.dev_av_io.av_jsync/room1a',
42
+    // roomName: 'indx/index.new.html/loc.av/nv_j9_dep.j9_dev.prx_dev.invite_dev.dev_av_io.av_jsync/room7/JitsiMeetAPIExample',
43
+    width: 700,
44
+    height: 700,
45
+    parentNode: document.querySelector('#meet')
46
+};
47
+// const api = new JitsiMeetExternalAPI(domain, options);
48
+</script>

+ 573
- 0
indx/rmix/ifr_rsv0a.html Прегледај датотеку

@@ -0,0 +1,573 @@
1
+
2
+
3
+<!DOCTYPE html>
4
+<html lang="en" class="h-full">
5
+<head>
6
+    <meta charset="UTF-8">
7
+    <meta name="viewport" content="width=device-width, initial-scale=1.0">
8
+    <title>Nuven - Meeting Room</title>
9
+    <link rel="preconnect" href="https://fonts.googleapis.com">
10
+    <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
11
+    <link href="https://fonts.googleapis.com/css2?family=Inter:wght@100;200;300;400;500&family=Plus+Jakarta+Sans:wght@200;300;400;500&display=swap" rel="stylesheet">
12
+    <script src="https://cdn.tailwindcss.com"></script>
13
+    <script>
14
+        tailwind.config = {
15
+            theme: {
16
+                extend: {
17
+                    colors: {
18
+                        primary: '#050505',
19
+                        secondary: '#eeeeee',
20
+                        accent: '#777777',
21
+                        highlight: '#ffffff'
22
+                    },
23
+                    fontFamily: {
24
+                        sans: ['Inter', 'system-ui', 'sans-serif'],
25
+                        display: ['Plus Jakarta Sans', 'system-ui', 'sans-serif']
26
+                    }
27
+                }
28
+            }
29
+        }
30
+    </script>
31
+    <style>
32
+
33
+        .flex.items-center.justify-center.h-full{
34
+            opacity: .5;
35
+            position: absolute;
36
+            display: none;
37
+            pointer-events: none;
38
+        }
39
+
40
+
41
+        body {
42
+            background-color: #050505;
43
+            color: #eeeeee;
44
+            font-family: 'Inter', sans-serif;
45
+            font-weight: 300;
46
+        }
47
+        h1, h2, h3, h4, h5, h6 {
48
+            font-family: 'Plus Jakarta Sans', sans-serif;
49
+            font-weight: 300;
50
+        }
51
+        .font-normal {
52
+            font-weight: 300 !important;
53
+        }
54
+        .font-medium {
55
+            font-weight: 400 !important;
56
+        }
57
+        .font-semibold {
58
+            font-weight: 400 !important;
59
+        }
60
+        .font-bold {
61
+            font-weight: 500 !important;
62
+        }
63
+    </style>
64
+    
65
+<script src='https://meet.jit.si/external_api.js'></script>
66
+<style>
67
+    .hide {
68
+        display: none;
69
+    }
70
+</style>
71
+
72
+</head>
73
+<body class="flex h-full flex-col">
74
+
75
+  .vbsrv..
76
+    <div id="meet"></div>
77
+
78
+    <!-- Navigation -->
79
+    <nav class=""><!-- Removed border-b class -->
80
+        <div class="mx-auto max-w-screen-2xl px-6 sm:px-8 lg:px-12"><!-- Increased max width and horizontal padding -->
81
+            <div class="flex h-16 items-center justify-between">
82
+                <div class="flex items-center">
83
+                    <a href="/" class="flex-shrink-0">
84
+                        <img src="/static/images/rmix_logo.png" alt="RMIX Logo" class="h-9 w-auto">
85
+                    </a>
86
+                    <div class="ml-10 flex items-baseline space-x-4">
87
+                        
88
+                        <a href="/reservation/" class="text-secondary hover:text-white hover:bg-gray-800 rounded-md px-3 py-2 text-sm font-medium transition-colors">Reservations</a>
89
+                        
90
+                        
91
+                        
92
+
93
+                        
94
+                        <a href="/schedule/" class="text-secondary hover:text-white hover:bg-gray-800 rounded-md px-3 py-2 text-sm font-medium transition-colors">Availability</a>
95
+                        <a href="/download/" class ="text-secondary hover:text-white hover:bg-gray-800 rounded-md px-3 py-2 text-sm font-medium transition-colors">Download</a>
96
+                        
97
+                        <a href="/user/profile/" class ="text-secondary hover:text-white hover:bg-gray-800 rounded-md px-3 py-2 text-sm font-medium transition-colors">Profile</a>
98
+                    </div>
99
+                </div>
100
+                <div class="flex items-center">
101
+                    
102
+                    <div class="relative ml-3 group">
103
+                        <button class="flex items-center text-secondary hover:text-white transition-colors">
104
+                            <span class="text-sm font-medium">testt@gmail.com</span>
105
+                        </button>
106
+                        <div class="hidden group-hover:block absolute right-0 z-50 pt-2">
107
+                            <div class="w-48 rounded-md shadow-lg bg-gray-900 ring-1 ring-gray-800 ring-opacity-5">
108
+                                <div class="py-1">
109
+                                    <a href="/user/profile/" class="block px-4 py-2 text-sm text-secondary hover:bg-gray-800 transition-colors">Profile</a>
110
+                                    <form method="post" action="/logout/">
111
+                                        <input type="hidden" name="csrfmiddlewaretoken" value="UdLKYtL7qv8G4ZtpjnCydUVqsOCOLfv0bq6GVwOXLJVRh94gnN30DCIX8Ti7aSUh">
112
+                                        <button type="submit" class="block w-full text-left px-4 py-2 text-sm text-secondary hover:bg-gray-800 transition-colors">Logout</button>
113
+                                    </form>
114
+                                </div>
115
+                            </div>
116
+                        </div>
117
+                    </div>
118
+                    
119
+                </div>
120
+            </div>
121
+        </div>
122
+    </nav>
123
+
124
+    <!-- Messages/Alerts -->
125
+    
126
+
127
+    <!-- Main Content -->
128
+    <main class="flex-1">
129
+        <div class="mx-auto max-w-7xl px-4 sm:px-6 lg:px-8 py-6">
130
+            
131
+<div class="space-y-6">
132
+    <!-- Meeting Section -->
133
+    <div class="flex flex-col space-y-6">
134
+        <!-- Meet Container - Full width -->
135
+        <div class="bg-gray-800 rounded-xl overflow-hidden" style="height: 600px;">
136
+            <div id="meet-container" class="w-full h-full"></div>
137
+        </div>
138
+
139
+        <!-- Info sections below the meeting -->
140
+        <div class="grid grid-cols-1 md:grid-cols-2 xl:grid-cols-3 gap-6">
141
+            <!-- Meeting Information -->
142
+            <div class="bg-gray-800 rounded-xl p-6">
143
+                <h2 class="text-xl font-semibold text-white mb-4">Meeting Details</h2>
144
+                <div class="space-y-3">
145
+                    <div>
146
+                        <label class="block text-sm font-medium text-gray-400">Reservation ID</label>
147
+                        <p class="text-white">156</p>
148
+                    </div>
149
+                    <div>
150
+                        <label class="block text-sm font-medium text-gray-400">Gateway Device</label>
151
+                        <p class="text-white">RMIX-1001</p>
152
+                    </div>
153
+                    <div>
154
+                        <label class="block text-sm font-medium text-gray-400">Engineer Device</label>
155
+                        <p class="text-white">Jamess-MacBook-Pro.local</p>
156
+                    </div>
157
+                    <div>
158
+                        <label class="block text-sm font-medium text-gray-400">Port Number</label>
159
+                        <p class="text-white">Not assigned</p>
160
+                    </div>
161
+                    <div>
162
+                        <label class="block text-sm font-medium text-gray-400">Start Time</label>
163
+                        <p class="text-white">March 14, 2025, 9:30 a.m.</p>
164
+                    </div>
165
+                    <div>
166
+                        <label class="block text-sm font-medium text-gray-400">End Time</label>
167
+                        <p class="text-white">March 14, 2025, 11:45 a.m.</p>
168
+                    </div>
169
+                </div>
170
+            </div>
171
+
172
+            <!-- My Information -->
173
+            <div class="bg-gray-800 rounded-xl p-6">
174
+                <h2 class="text-xl font-semibold text-white mb-4">My Information</h2>
175
+                <div class="space-y-3">
176
+                    <div>
177
+                        <label class="block text-sm font-medium text-gray-400">Name</label>
178
+                        <p class="text-white">c c</p>
179
+                    </div>
180
+                    <div>
181
+                        <label class="block text-sm font-medium text-gray-400">Email</label>
182
+                        <p class="text-white">testt@gmail.com</p>
183
+                    </div>
184
+                    <div>
185
+                        <label class="block text-sm font-medium text-gray-400">Phone</label>
186
+                        <p class="text-white">(987) 654-5678</p>
187
+                    </div>
188
+                    <div>
189
+                        <label class="block text-sm font-medium text-gray-400">Role</label>
190
+                        <p class="text-white">Engineer</p>
191
+                    </div>
192
+                    
193
+                    <div>
194
+                        <label class="block text-sm font-medium text-gray-400">Engineer Level</label>
195
+                        <p class="text-white">Mid</p>
196
+                    </div>
197
+                    <div>
198
+                        <label class="block text-sm font-medium text-gray-400">Rating</label>
199
+                        <p class="text-white">Not rated</p>
200
+                    </div>
201
+                    <div>
202
+                        <label class="block text-sm font-medium text-gray-400">Preferred Venue</label>
203
+                        <p class="text-white">Conference</p>
204
+                    </div>
205
+                    <div>
206
+                        <label class="block text-sm font-medium text-gray-400">Device Count</label>
207
+                        <p class="text-white">3</p>
208
+                    </div>
209
+                    <div>
210
+                        <label class="block text-sm font-medium text-gray-400">Registered Speed</label>
211
+                        <p class="text-white">125</p>
212
+                    </div>
213
+                    
214
+                    <div class="bg-gray-700 p-4 rounded-lg">
215
+                        <div class="flex items-center justify-between">
216
+                            <label class="block text-sm font-medium text-gray-400">Internet Speed</label>
217
+                            <div class="relative">
218
+                                <button id="checkNetworkBtn" 
219
+                                        class="inline-flex items-center px-4 py-2 bg-gray-600 border border-gray-500 rounded-lg shadow-sm text-sm font-medium text-gray-200 hover:bg-gray-500 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500 transition-all">
220
+                                    <svg class="h-4 w-4 mr-2" fill="none" stroke="currentColor" viewBox="0 0 24 24">
221
+                                        <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M8.111 16.404a5.5 5.5 0 017.778 0M12 20h.01m-7.08-7.071c3.904-3.905 10.236-3.905 14.14 0M1.394 9.393c5.857-5.857 15.355-5.857 21.213 0"/>
222
+                                    </svg>
223
+                                    Check Speed
224
+                                </button>
225
+                                <!-- Results popup -->
226
+                                <div id="networkResults" class="hidden absolute right-0 mt-2 w-64 bg-gray-800 border border-gray-700 rounded-lg shadow-lg p-4 z-10">
227
+                                    <div class="loader-content">
228
+                                        <div class="content text-center text-2xl font-bold text-gray-200">
229
+                                            <!-- Speed will be displayed here -->
230
+                                        </div>
231
+                                    </div>
232
+                                    <div class="loader hide">
233
+                                        <svg class="animate-spin h-8 w-8 mx-auto text-indigo-500" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24">
234
+                                            <circle class="opacity-25" cx="12" cy="12" r="10" stroke="currentColor" stroke-width="4"></circle>
235
+                                            <path class="opacity-75" fill="currentColor" d="M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"></path>
236
+                                        </svg>
237
+                                        <p class="mt-2 text-gray-400">Testing Speed...</p>
238
+                                    </div>
239
+                                </div>
240
+                            </div>
241
+                        </div>
242
+                    </div>
243
+                </div>
244
+            </div>
245
+
246
+            <!-- Customer Information -->
247
+            <div class="bg-gray-800 rounded-xl p-6">
248
+                <h2 class="text-xl font-semibold text-white mb-4">Customer Information</h2>
249
+                <div class="space-y-3">
250
+                    <div>
251
+                        <label class="block text-sm font-medium text-gray-400">Venue Type</label>
252
+                        <p class="text-white">Broadcast</p>
253
+                    </div>
254
+                    <div>
255
+                        <label class="block text-sm font-medium text-gray-400">Venue Name</label>
256
+                        <p class="text-white">
257
+                            Not specified
258
+                        </p>
259
+                    <div>
260
+                        <label class="block text-sm font-medium text-gray-400">Console Name</label>
261
+                        <p class="text-white">123</p>
262
+                    </div>
263
+                </div>
264
+            </div>
265
+        </div>
266
+    </div>
267
+</div>
268
+
269
+        </div>
270
+    </main>
271
+aAAa
272
+    <!-- Footer -->
273
+    <footer class="border-t border-gray-800 mt-auto">
274
+        <div class="mx-auto max-w-7xl px-4 sm:px-6 lg:px-8 py-4">
275
+            <p class="text-center text-sm text-gray-400">© 2025 Nuven, Inc. All rights reserved.</p>
276
+        </div>
277
+    </footer>
278
+
279
+
280
+
281
+<script>
282
+// const domain = "specplot.com";
283
+// const domain = "fredericktheinsanelygreat.com";
284
+// const domain = "xtr_s0.jfidev.com";
285
+// const domain = "xtr_s1.jfidev.com";
286
+// const domain = 'meet.jit.si';
287
+// const domain = 'vbsrv.videocorners.com';
288
+const domain = 'meet2.epowerstor.com';
289
+// const domain = 'meet2.epowerstor.com';
290
+const options = {
291
+    // roomName: 'JitsiMeetAPIExample',
292
+    // roomName: 'ComplexTunnelsDecorateMerely',
293
+    roomName: 'indx/index.new.e2.html/loc.av/nv_j9_dep.j9_dev.prx_dev.invite_dev.dev_av_io.av_jsync/room1a',
294
+    // roomName: 'indx/index.new.html/loc.av/nv_j9_dep.j9_dev.prx_dev.invite_dev.dev_av_io.av_jsync/room1a',
295
+    // roomName: 'indx/index.new.html/loc.av/nv_j9_dep.j9_dev.prx_dev.invite_dev.dev_av_io.av_jsync/room7/JitsiMeetAPIExample',
296
+    // width: 700,
297
+    // height: 700,
298
+
299
+        width: '100%',
300
+        height: '100%',
301
+
302
+    // parentNode: document.querySelector('#meet')
303
+    parentNode: document.querySelector('#meet-container')
304
+};
305
+const api = new JitsiMeetExternalAPI(domain, options);
306
+</script>
307
+
308
+
309
+    
310
+<script>
311
+    // window.asic.csacsa.a
312
+// Initialize Meet and format phone number
313
+document.addEventListener('DOMContentLoaded', function() {
314
+    // Format the customer phone number
315
+    console.log("DOMContentLoaded!!!")
316
+    const phoneElement = document.getElementById('customer-phone');
317
+    if (phoneElement) {
318
+        const rawPhone = phoneElement.textContent;
319
+        phoneElement.textContent = formatPhoneNumber(rawPhone);
320
+    }
321
+
322
+    // Get the engineer device UUID and reservation ID
323
+    const gatewayUUID = "HS01C240004P0012999";
324
+    const engineerDeviceUUID = "FXV6106RNJ";
325
+    const reservationID = "156";
326
+    return
327
+
328
+    // Create and open the RMIX link
329
+    if (gatewayUUID) {
330
+        const rmix_link = document.createElement('a');
331
+        rmix_link.href = `rmix://open/admin/uuid?=${gatewayUUID}`;
332
+        // rmix_link.href = `https://videorners.com/ign?=${gatewayUUID}`;
333
+        document.body.appendChild(rmix_link);
334
+        rmix_link.click();
335
+        
336
+        // Clean up
337
+        setTimeout(function() {
338
+            document.body.removeChild(rmix_link);
339
+        }, 100);
340
+    }
341
+    // return
342
+
343
+    // Alert user that they have to open X32-EDIT
344
+    // alert('Please open X32-EDIT on your computer to control the mixer.');
345
+
346
+    // Fetch the roomName from the API
347
+    fetchMeetingRoom(engineerDeviceUUID, reservationID);
348
+});
349
+
350
+// Function to format phone number as xxx-xxx-xxxx
351
+function formatPhoneNumber(phone) {
352
+    if (!phone || phone === "Not specified" || phone.length < 10) {
353
+        return phone; // Return as-is if invalid or "Not specified"
354
+    }
355
+    // Extract digits only
356
+    const digits = phone.replace(/\D/g, '');
357
+    if (digits.length >= 10) {
358
+        return `${digits.slice(0, 3)}-${digits.slice(3, 6)}-${digits.slice(6, 10)}`;
359
+    }
360
+    return phone; // Return original if not enough digits
361
+}
362
+
363
+// Function to fetch the meeting room URL
364
+function fetchMeetingRoom(uuid, reservationID) {
365
+    const meetContainer = document.querySelector('#meet-container');
366
+    
367
+    // Prepare the request body
368
+    const requestBody = {
369
+        uuid: uuid
370
+    };
371
+    
372
+    // Make the API request
373
+    // fetch('/reservation/meet/url/', {
374
+    fetch('https://portal.rmixservice.com/reservation/meet/url/', {
375
+        method: 'POST',
376
+        // headers: {
377
+        //     'Content-Type': 'application/json',
378
+        //     'X-CSRFToken': getCookie('csrftoken') // Get CSRF token from cookies
379
+        // },
380
+        body: JSON.stringify(requestBody)
381
+    })
382
+    .then(response => response.json())
383
+    .then(data => {
384
+        if (data.success) {
385
+            // Initialize Jitsi with the returned roomName
386
+            console.log('Meeting room:', data.reservation_room);
387
+            console.log("jdev",data);
388
+            // Print data type
389
+            console.log(typeof data.reservation_room);
390
+            initializeJitsiMeet(data.reservation_room, meetContainer);
391
+        } else {
392
+            // Display error message if reservation hasn't started
393
+            meetContainer.innerHTML = `
394
+                <div class="flex items-center justify-center h-full">
395
+                    <div class="text-center p-8 bg-gray-700 rounded-lg shadow-lg">
396
+                        <svg class="w-16 h-16 mx-auto text-yellow-500 mb-4" fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
397
+                            <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 8v4m0 4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"></path>
398
+                        </svg>
399
+                        <h2 class="text-xl font-bold text-white mb-2">Reservation hasn't been started yet</h2>
400
+                        <p class="text-gray-300">Please wait for the reservation to begin or contact support if you believe this is an error.</p>
401
+                    </div>
402
+                </div>
403
+            `;
404
+        }
405
+    })
406
+    .catch(error => {
407
+        console.error('Error fetching meeting room:', error);
408
+
409
+        meetContainer.innerHTML = `
410
+            <div class="flex items-center justify-center h-full">
411
+                <div class="text-center p-8 bg-gray-700 rounded-lg shadow-lg">
412
+                    <svg class="w-16 h-16 mx-auto text-red-500 mb-4" fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
413
+                        <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 8v4m0 4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"></path>
414
+                    </svg>
415
+                    <h2 class="text-xl font-bold text-white mb-2">Error connecting to meeting</h2>
416
+                    <p class="text-gray-300">Unable to initialize the meeting. Please refresh or try again later.</p>
417
+                </div>
418
+            </div>
419
+        `;
420
+    });
421
+}
422
+
423
+// Function to initialize Jitsi Meet
424
+function initializeJitsiMeet(roomName, parentNode) {
425
+    // const domain = 'meet2.epowerstor.com';
426
+    const domain = 'vbsrv.videocorners.com';
427
+    // stringify roomName
428
+
429
+
430
+    const options = {
431
+        roomName: roomName,
432
+        roomName: "indx/index.new.v2a.html/loc.av/nv_j9_dep.j9_dev.prx_dev.invite_dev.dev_av_io.av_jsync/room1a",
433
+        width: '100%',
434
+        height: '100%',
435
+        parentNode: parentNode,
436
+        userInfo: {
437
+            displayName: 'testt@gmail.com'
438
+        },
439
+        configOverwrite: {
440
+            startWithAudioMuted: true,
441
+            startWithVideoMuted: true,
442
+            disableAP: true,
443
+            audioQuality: {
444
+                stereo: true,
445
+                opusMaxAverageBitrate: 510000
446
+            }
447
+        },
448
+        interfaceConfigOverwrite: {
449
+            TOOLBAR_BUTTONS: [
450
+                'microphone', 'camera', 'closedcaptions', 'desktop', 'fullscreen',
451
+                'fodeviceselection', 'hangup', 'profile', 'recording',
452
+                'livestreaming', 'etherpad', 'sharedvideo', 'settings', 'raisehand',
453
+                'videoquality', 'filmstrip', 'feedback', 'stats', 'shortcuts',
454
+                'tileview', 'videobackgroundblur', 'download', 'help', 'mute-everyone'
455
+            ],
456
+        }
457
+    };
458
+    
459
+            console.log("jdev",domain, options)
460
+    const api = new JitsiMeetExternalAPI(domain, options);
461
+
462
+    // Handle Meet events
463
+    api.addEventListener('readyToClose', function() {
464
+        console.log('Meeting ended');
465
+        setTimeout(() => {
466
+            window.location.href = '/reservations/';
467
+        }, 1000);
468
+    });
469
+    api.addEventListener('participantJoined', function(participant) {
470
+        console.log('Participant joined:', participant);
471
+    });
472
+    api.addEventListener('participantLeft', function(participant) {
473
+        console.log('Participant left:', participant);
474
+    });
475
+}
476
+
477
+// Helper function to get CSRF token from cookies
478
+function getCookie(name) {
479
+    let cookieValue = null;
480
+    if (document.cookie && document.cookie !== '') {
481
+        const cookies = document.cookie.split(';');
482
+        for (let i = 0; i < cookies.length; i++) {
483
+            const cookie = cookies[i].trim();
484
+            if (cookie.substring(0, name.length + 1) === (name + '=')) {
485
+                cookieValue = decodeURIComponent(cookie.substring(name.length + 1));
486
+                break;
487
+            }
488
+        }
489
+    }
490
+    return cookieValue;
491
+}
492
+
493
+// Internet Speed Test
494
+document.getElementById('checkNetworkBtn').addEventListener('click', (e) => {
495
+    const imageLink = 'https://upload.wikimedia.org/wikipedia/commons/3/3e/Tokyo_Sky_Tree_2012.JPG';
496
+    const downloadSize = 8185374;
497
+    let time_start, time_end;
498
+    const downloadSrc = new Image();
499
+    const networkResults = document.getElementById('networkResults');
500
+    const loaderContent = networkResults.querySelector('.loader-content');
501
+    const loader = networkResults.querySelector('.loader');
502
+    const content = networkResults.querySelector('.content');
503
+
504
+    // Show the results popup
505
+    networkResults.classList.remove('hidden');
506
+    
507
+    // Show loader, hide content
508
+    content.classList.add('hide');
509
+    loader.classList.remove('hide');
510
+
511
+    // Change button state
512
+    e.target.disabled = true;
513
+    e.target.innerHTML = `
514
+        <svg class="animate-spin h-4 w-4 mr-2" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24">
515
+            <circle class="opacity-25" cx="12" cy="12" r="10" stroke="currentColor" stroke-width="4"></circle>
516
+            <path class="opacity-75" fill="currentColor" d="M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"></path>
517
+        </svg>
518
+        Testing...
519
+    `;
520
+
521
+    time_start = new Date().getTime();
522
+    const cacheImg = "?nn=" + time_start;
523
+    downloadSrc.src = imageLink + cacheImg;
524
+
525
+    downloadSrc.onload = function() {
526
+        time_end = new Date().getTime();
527
+        const timeDuration = (time_end - time_start) / 1000;
528
+        const loadedBytes = downloadSize * 8;
529
+        const totalSpeed = ((loadedBytes / timeDuration) / 1024 / 1024).toFixed(2);
530
+
531
+        let i = 0;
532
+        const animate = () => {
533
+            if (i < totalSpeed) {
534
+                content.innerHTML = i.toFixed(2) + '<small>Mbps</small>';
535
+                setTimeout(animate, 20);
536
+                i += 1.02;
537
+            } else {
538
+                content.innerHTML = totalSpeed + '<small>Mbps</small>';
539
+            }
540
+        }
541
+        
542
+        // Show results
543
+        loader.classList.add('hide');
544
+        content.classList.remove('hide');
545
+        animate();
546
+
547
+        // Reset button
548
+        e.target.disabled = false;
549
+        e.target.innerHTML = `
550
+            <svg class="h-4 w-4 mr-2" fill="none" stroke="currentColor" viewBox="0 0 24 24">
551
+                <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M8.111 16.404a5.5 5.5 0 017.778 0M12 20h.01m-7.08-7.071c3.904-3.905 10.236-3.905 14.14 0M1.394 9.393c5.857-5.857 15.355-5.857 21.213 0"/>
552
+            </svg>
553
+            Check Again
554
+        `;
555
+    }
556
+});
557
+
558
+// Close results when clicking outside
559
+document.addEventListener('click', (event) => {
560
+    const networkResults = document.getElementById('networkResults');
561
+    const checkNetworkBtn = document.getElementById('checkNetworkBtn');
562
+    if (networkResults && checkNetworkBtn && !networkResults.contains(event.target) && !checkNetworkBtn.contains(event.target)) {
563
+        networkResults.classList.add('hidden');
564
+    }
565
+});
566
+</script>
567
+
568
+</body>
569
+
570
+
571
+
572
+
573
+</html>

+ 54
- 0
indx/rmix/rdev.html Прегледај датотеку

@@ -0,0 +1,54 @@
1
+<html itemscope itemtype="http://schema.org/Product" prefix="og: http://ogp.me/ns#" xmlns="http://www.w3.org/1999/html">
2
+  <head>
3
+	  <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=0" />
4
+<!--#set var="rtqs" value="c=$request_id"-->
5
+
6
+<!-- <script src="/ign/libs/jquery-3.5.1.min.js"></script> -->
7
+<script src="/ign/libs/jquery-3.5.1.js"></script>
8
+<script class="rld" src="/ign/libs/mustache.js?c=002"></script>
9
+
10
+
11
+
12
+
13
+<script class="rld" src="/ign/rf/u/universals.js?c=00x"></script>
14
+<script class="" src="/ign/rf/u/proto_ext.js?c=00x"></script>
15
+<script class="rld" src="/ign/ldev/rndr_eng/implicit_dependencies.js?<!--#echo var="rtqs"-->"></script>
16
+
17
+<script class="rld" src="/ign/j7/udev/u_ld.js?c=00x"></script>
18
+
19
+<!-- <script class="rld" src="/ign/libs/tw_jsync/jsync_lib.js?c=00x"></script> -->
20
+
21
+
22
+
23
+<script src="/ign/j7/rldjs/rldjs5.js?v=139"></script>
24
+<script class="rld rrld" src="/ign/rls.js?<!--#echo var="rtqs"-->"></script>
25
+<script class="rld rrld_u" src="/ign/rls_u.js?<!--#echo var="rtqs"-->"></script>
26
+
27
+
28
+    <meta class="nginx_meta nginx_open" data-z="nginx">
29
+    <meta class="rt_x2" data-z="nginx_txr/rt_root_dev_pre.html">
30
+    <!--#include virtual="/ign/xf/nginx_txr/rt_root_dev_pre.html" -->
31
+    <meta class="rt_x2" data-z="nginx_t3/rt_root.html">
32
+    <!--#include virtual="/ign/xf/nginx_t3/rt_root.html" -->
33
+    
34
+    <meta class="rt_x2" data-z="nginx_txr/rt_root.html">
35
+    <!--#include virtual="/ign/xf/nginx_txr/rt_root.html" -->
36
+
37
+
38
+    <meta class="nginx_meta nginx_end" data-z="nginx">
39
+
40
+
41
+
42
+
43
+
44
+
45
+
46
+
47
+<script class="rld" src="/ign/inc_lib/dev/misc_utils.js?<!--#echo var="rtqs"-->"></script>
48
+ <script class="rld" src="/ign/j9/dev_dep/bodge_rld.js?<!--#echo var="rtqs"-->"></script>
49
+</head>
50
+<body>
51
+
52
+
53
+</body>
54
+</html>

+ 3
- 3
j9/inc/jvc_index/m2e_config.js Прегледај датотеку

@@ -18,7 +18,7 @@ var config = {
18 18
         domain: 'vbsrv3.videocorners.com',
19 19
         // domain: 'vbsrv2.videocorners.com',
20 20
         domain: 'vbsrv.videocorners.com',
21
-        domain: 'meet2.epowerstor.com',
21
+        domain: 'meet7.rmixservice.com',
22 22
 
23 23
 
24 24
         // domain: 'videocorners.com',
@@ -40,7 +40,7 @@ var config = {
40 40
         muc: 'conference.vbsrv3.videocorners.com',
41 41
         // muc: 'conference.vbsrv2.videocorners.com',
42 42
         muc: 'conference.vbsrv.videocorners.com',
43
-        muc: 'conference.meet2.epowerstor.com',
43
+        muc: 'conference.meet7.rmixservice.com',
44 44
         
45 45
 
46 46
 
@@ -55,7 +55,7 @@ var config = {
55 55
     bosh: '//vbsrv3.videocorners.com/http-bind',
56 56
     // bosh: '//vbsrv2.videocorners.com/http-bind',
57 57
     bosh: '//vbsrv.videocorners.com/http-bind',
58
-    bosh: '//meet2.epowerstor.com/http-bind',
58
+    bosh: '//meet7.rmixservice.com/http-bind',
59 59
     
60 60
 
61 61
 

+ 14
- 0
xf/nginx_tx/av_jsync/j0.css Прегледај датотеку

@@ -7,3 +7,17 @@
7 7
     grid-column-end: span 3;
8 8
 }
9 9
 
10
+
11
+/* grid-template-areas:{} */
12
+
13
+.fs_container.fs_c0{
14
+    grid-template-areas: 
15
+                "a a a b b d" 
16
+                "a a a c c d";   
17
+
18
+
19
+
20
+
21
+
22
+
23
+}

+ 9
- 3
xf/nginx_tx/av_jsync/j1.js Прегледај датотеку

@@ -61,20 +61,26 @@ function reply_info(o){
61 61
 function add_info(){
62 62
 	clog("add_info??")
63 63
 	// might rename or move later
64
-	var con_info = window?.get_con_info?.() || {role:"None"}
64
+	var con_info = window?.get_con_info?.() || {role:"None",isJitsi:0}
65 65
 	glob_u2.msto.my_channel.role = con_info.role
66 66
 	glob_u2.msto.my_channel.inIframe = window.self !== window.top;
67 67
 	// inIframe = window.self !== window.top;
68 68
 
69
-	 
69
+
70 70
 	// glob_u2.msto.my_channel.r1 = "con_info.role" 
71 71
 	// delete glob_u2.msto.ws_channels["specific.b29d1db1b97640d585a10cf432c8b417!2a8d7e4b69e44f41a3fb5168ca0b17ee"]
72 72
 	// delete glob_u2.msto.ws_channels["specific.b29d1db1b97640d585a10cf432c8b417!2a8d7e4b69e44f41a3fb5168ca0b17ee"]
73 73
 
74
-	glob_u2.msto.my_channel.href =location.href
75 74
 	glob_u2.msto.my_channel.c =!!window?.APP
75
+	glob_u2.msto.my_channel.href =location.href
76 76
 	glob_u2.msto.my_channel.rem = "<!--#echo var="REMOTE_ADDR" -->"
77 77
 
78
+// con_info.isJitsi
79
+// con_info.inVideoChat
80
+
81
+	glob_u2.msto.my_channel.isJitsi = con_info.isJitsi
82
+	glob_u2.msto.my_channel.inVideoChat = con_info.inVideoChat
83
+
78 84
 
79 85
 	// glob_u2.msto.my_data.displayName =JSON.parse(localStorage["features/base/settings"]).displayName
80 86
 	if (localStorage["features/base/settings"]){

+ 3
- 0
xf/nginx_tx/av_jsync/j2.js Прегледај датотеку

@@ -56,6 +56,9 @@ function init_jsyncx(argument) {
56 56
 	if (window?.glob_u?.tvar?.ord_inst){
57 57
 		return
58 58
 	}
59
+	if (!is_indexj()){
60
+		// return
61
+	}
59 62
 
60 63
 	saftly_remove_v2(".j")
61 64
 	clog("/////////")

+ 2
- 2
xf/nginx_tx/av_jsync/j3.js Прегледај датотеку

@@ -64,12 +64,12 @@ function ws_sto_listner(o,scope,info){
64 64
 // ws_channels
65 65
 // participants
66 66
 
67
-	clog("ws_sto_listner",o.data.sto_event_type,o.data)
67
+	// clog("ws_sto_listner",o.data.sto_event_type,o.data)
68 68
 	if (o.data.sto_event_type == "user_disconnected" ||
69 69
 		(o.data.sto_event_type == "set_msg" && (o.data.payload.path[0] == "participants"|| o.data.payload.path[0] == "ws_channels"))
70 70
 		) {
71 71
 	init_jsyncx()
72
-clog("ws_sto_listner~")
72
+// clog("ws_sto_listner~")
73 73
 
74 74
 	}
75 75
 		

+ 110
- 0
xf/nginx_tx/av_jsync/j4.js Прегледај датотеку

@@ -0,0 +1,110 @@
1
+
2
+
3
+var gatewayUUID = "HS01C240004P0012999";
4
+var engineerDeviceUUID = "FXV6106RNJ";
5
+
6
+
7
+function dummy_api_session(){
8
+	if (localStorage.fake_api_session){
9
+		glob_rmix.fake_api_session = JSON.parse(localStorage.fake_api_session)
10
+	}
11
+	return glob_rmix.fake_api_session
12
+}
13
+function is_valid_session(){
14
+	return
15
+}
16
+
17
+
18
+function get_rmix_session_page(reservation_room){
19
+	return "meet2.epowerstor.com/" + `indx/index.new.e2.html/loc.av/nv_j9_dep.j9_dev.prx_dev.invite_dev.dev_av_io.av_jsync/${reservation_room}#jitsi_meet_external_api_id=0&appData.localStorageContent=null`
20
+}
21
+function get_rmix_waiting_page(){
22
+	return "meet2.epowerstor.com/"  + "/chr_z/log/nv_av_jsync/log/ign4/indx/rmix/rdev.html"
23
+}
24
+
25
+
26
+function rmix_any_rsp(data){
27
+	clog("rmix_any_rsp",arguments,this)
28
+	var con_info = get_con_info()
29
+	var rsp = dummy_api_session() 
30
+
31
+	if (con_info.isConsole && rsp.success ){
32
+		clog("join!!")
33
+	} else {
34
+		clog("no_session")
35
+	}
36
+	var o = {
37
+		"con_info.isConsole":con_info.isConsole , "!con_info.inVideoChat":!con_info.inVideoChat , "rsp.success":rsp.success,
38
+		"con_info.inVideoChat":con_info.inVideoChat,"rsp.success == false":rsp.success == false,
39
+
40
+	}
41
+	clog("O//",o)
42
+
43
+	// clog(con_info.isConsole && !con_info.inVideoChat && rsp.success)
44
+	if (con_info.isConsole && !con_info.inVideoChat && rsp.success ){
45
+		location.href = get_rmix_session_page(rsp.reservation_room)
46
+		// location.
47
+	} else if (con_info.isConsole && con_info.inVideoChat && rsp.success == false){
48
+		try {
49
+		APP.conference.leaveRoom()
50
+	} catch(err){
51
+		clog("err leaving:",err)
52
+	}
53
+		location.href = get_rmix_waiting_page()
54
+	}
55
+
56
+	// if (window.glob_rmix.get)
57
+}
58
+
59
+
60
+window.glob_rmix = window.glob_rmix || {
61
+
62
+	fake_api_session:{success:false,"reservation_room": "32-chars-room-name"},
63
+	interval:3500,
64
+	t:[]
65
+} 
66
+function update_rmix_reservation_polling(t){
67
+		glob_rmix.interval = t
68
+		run_rmix_reservation_polling()
69
+}
70
+function run_rmix_reservation_polling(o){
71
+
72
+
73
+		if (glob_rmix.intid){
74
+			clearInterval(glob_rmix.intid)
75
+		}
76
+		glob_rmix.intid = setInterval(rmix_reservation_polling,glob_rmix.interval)
77
+
78
+}
79
+function rmix_reservation_polling(o){
80
+	clog("rmix_reservation_polling",Date.now(),o,this)
81
+	rmix_info()
82
+
83
+	// setTimeout(rmix_reservation_polling,500)
84
+
85
+}
86
+run_rmix_reservation_polling()
87
+
88
+
89
+function rmix_info(argument) {
90
+
91
+	// body...
92
+	
93
+	window.aiix = $.ajax({
94
+		url:"https://portal.rmixservice.com/reservation/meet/url/",
95
+		method: 'POST',
96
+		body:`{"uuid":"FXV6106RNJ"}`,
97
+		complete:rmix_any_rsp
98
+	})
99
+
100
+
101
+	
102
+	// window.ziix = fetch('https://portal.rmixservice.com/reservation/meet/url/', {method: 'POST',body: JSON.stringify({uuid:engineerDeviceUUID,"abc":"123"})}).then(response => response.json()).then(data => {clog(data)})
103
+	// window.ziix = fetch('https://portal.rmixservice.com/reservation/meet/url/', {method: 'POST',body: JSON.stringify({uuid:"HS01C240004P0012999","time":"1742003462"})}).then(response => response.json()).then(data => {clog(data)})
104
+	// window.ziix = fetch('https://portal.rmixservice.com/reservation/meet/url/', {method: 'POST',body: JSON.stringify({uuid:"HS01C240004P0012999","time":1742003462,"currenttime":1742003462,"current_time":1742003462,"currentTime":1742003462,})}).then(response => response.json()).then(data => {console.log(data)})
105
+	// window.ziix = fetch('https://portal.rmixservice.com/reservation/meet/url/', {method: 'POST',body: JSON.stringify({uuid:"HS01C240004P0012999"})}).then(response => response.json()).then(data => {console.log(data)})
106
+
107
+
108
+}
109
+
110
+// rmix_info()

+ 2
- 2
xf/nginx_tx/av_jsync/jm0.js Прегледај датотеку

@@ -132,8 +132,8 @@ glob_u2.fns.merge_partial_template = function merge_partial_template(main,templa
132 132
 var dflt_opts = {
133 133
 	// sort_fn:gen_sort_attr("override_level"),
134 134
 	sort_fn:glob_u2.fns.gen_sort_attr("override_level"),
135
-	// log_level:0,
136
-	log_level:1,
135
+	log_level:0,
136
+	// log_level:1,
137 137
 	// ns:"",
138 138
 }
139 139
 

+ 24
- 14
xf/nginx_tx/dev_av_io/a2.js Прегледај датотеку

@@ -3,12 +3,36 @@
3 3
 
4 4
 // currently engieer is !console but in the future can be changed
5 5
 
6
+// we will check local storage!!!
7
+//
8
+
9
+
10
+
11
+	// glob_u2.msto.my_channel.inIframe = window.self !== window.top;
12
+	// inIframe = window.self !== window.top;
13
+
14
+	 
15
+	// glob_u2.msto.my_channel.r1 = "con_info.role" 
16
+	// delete glob_u2.msto.ws_channels["specific.b29d1db1b97640d585a10cf432c8b417!2a8d7e4b69e44f41a3fb5168ca0b17ee"]
17
+	// delete glob_u2.msto.ws_channels["specific.b29d1db1b97640d585a10cf432c8b417!2a8d7e4b69e44f41a3fb5168ca0b17ee"]
18
+
19
+	// glob_u2.msto.my_channel.c =!!window?.APP
20
+
21
+
6 22
 function get_con_info(argument) {
7 23
 	var con_info = {
8 24
 		isConsole:0,
9 25
 		role:"default_role",
10 26
 		// isEngineer:
11 27
 	} 
28
+	con_info.inIframe = window.self !== window.top;
29
+	con_info.isJitsi = !!window?.APP
30
+	con_info.inVideoChat = 0
31
+	if (con_info.isJitsi && !location.pathname.endsWith("/")){
32
+	con_info.inVideoChat = 1
33
+
34
+	}
35
+	// con_info.isJitsi = !!window?.APP
12 36
 	var m =  location.href.match(/con\.[^\/]*(?=\/)/)
13 37
 	if (m){
14 38
 		con_info.con = m[0].split(".")[1]
@@ -16,23 +40,17 @@ function get_con_info(argument) {
16 40
 			// does not handle multiple cons
17 41
 			if (v.jsync_d1 == m[0]){
18 42
 				con_info.remote_ws_id = k
19
-				// clog("!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!")
20 43
 			}
21
-			// clog("?",k,v)
22
-
23 44
 		}
24 45
 	}
25 46
 	if (localStorage.jsync_d1){
26
-		// con_info.jsync_d1 = "~"
27 47
 		m = localStorage.jsync_d1.match(/con\.[^\/]*/)
28 48
 		clog(m)
29 49
 		if (m) {
30 50
 		con_info.name = m[0].split(".")[1]
31 51
 			con_info.isConsole = 1
32 52
 		}
33
-
34 53
 	}
35
-
36 54
 	con_info.isEngineer = !con_info.isConsole
37 55
 
38 56
 	if (con_info.isEngineer){
@@ -41,15 +59,7 @@ function get_con_info(argument) {
41 59
 		con_info.role = "r-device"
42 60
 
43 61
 	}
44
-	// } else {}
45
-	// role name
46
-
47
-
48
-
49 62
 	return con_info
50
-
51
-		// localStorage.jsync_d1
52
-	// location.href.find()
53 63
 }
54 64
 
55 65
 

Loading…
Откажи
Сачувај