-
Notifications
You must be signed in to change notification settings - Fork 0
/
Index_Offices.html
509 lines (482 loc) · 23.7 KB
/
Index_Offices.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
<!DOCTYPE html>
<html lang="en">
<head>
<title>Vebko 3D Model</title>
<meta charset="utf-8">
<meta name="description" content="<model-viewer> template">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link type="text/css" href="Assets/CSS/styles.css" rel="stylesheet" />
<link rel="icon" href="Assets/Image/Vebko_EN.ico" type="image/x-icon">
<!-- bootstrap -->
<link type="text/css" href="Assets/bootstrap-5.3.0/css/bootstrap.min.css" rel="stylesheet" />
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet"
integrity="sha384-GLhlTQ8iRABdZLl6O3oVMWSktQOp6b7In1Zl3/Jr59b6EGGoI1aFkw7cmDA6j6gD" crossorigin="anonymous">
<script src="Assets/bootstrap-5.3.0/js/bootstrap.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js"
integrity="sha384-w76AqPfDkMBDXo30jS1Sgez6pr3x5MlQ1ZAGC+nuZB+EYdgRZgiwxhTBTkF7CXvN"
crossorigin="anonymous"></script>
<!-- jquery -->
<script src="https://code.jquery.com/jquery-3.6.3.js"
integrity="sha256-nQLuAZGRRcILA+6dMBOvcRh5Pe310sBpanc6+QBmyVM=" crossorigin="anonymous"></script>
<script src="Assets/JS/Coustom_script.js"></script>
<!-- modelviewer -->
<script type="module" src="https://ajax.googleapis.com/ajax/libs/model-viewer/3.0.1/model-viewer.min.js"></script>
<script src="https://unpkg.com/[email protected]/dist/focus-visible.js" defer></script>
<link rel="stylesheet" href="Assets/bootstrap-4.0.0/css/bootstrap.css">
<script src="Assets/bootstrap-4.0.0/js/bootstrap.js"></script>
</head>
<body>
<model-viewer id="Model_Tag" src="Assets/3D Models/Earth.glb" ar-modes="webxr scene-viewer quick-look" ar
ios-src="Assets/3D Models/AMT105.glb" alt="Offices and Agency" shadow-intensity="1"
camera-orbit="18deg 80deg 350.4m" field-of-view="30deg" cameracontrols="false">
<div class="loader text-center z-3 ">
<span></span>
<span></span>
<span></span>
<span></span>
</div>
<!-- australia -->
<div class="Hotspot" slot="hotspot-1" id="australia" data-surface="0 0 88 89 145 0.372 0.140 0.488"
data-visibility-attribute="visible">
<div class="HotspotAnnotation">
<img class="Flags" src="Assets/Image/OfficesandAgency/australia.png">
</div>
</div>
<!-- india -->
<div class="Hotspot" slot="hotspot-2" id="india" data-surface="0 0 29 30 31 0.103 0.108 0.789"
data-visibility-attribute="visible">
<div class="HotspotAnnotation">
<img class="Flags" src="Assets/Image/OfficesandAgency/india.png">
</div>
</div>
<!-- brazil -->
<div class="Hotspot" slot="hotspot-3" id="brazil" data-surface="0 0 104 56 105 0.377 0.513 0.110"
data-visibility-attribute="visible">
<div class="HotspotAnnotation">
<img class="Flags" src="Assets/Image/OfficesandAgency/brazil.png">
</div>
</div>
<!-- croatia -->
<div class="Hotspot" slot="hotspot-4" id="croatia" data-surface="0 0 73 74 126 0.046 0.367 0.587"
data-visibility-attribute="visible">
<div class="HotspotAnnotation">
<img class="Flags" src="Assets/Image/OfficesandAgency/croatia.png">
</div>
</div>
<!-- england -->
<div class="Hotspot" slot="hotspot-5" id="england" data-surface="0 0 185 125 186 0.207 0.772 0.021"
data-visibility-attribute="visible">
<div class="HotspotAnnotation">
<img class="Flags" src="Assets/Image/OfficesandAgency/england.png">
</div>
</div>
<!-- indonesia -->
<div class="Hotspot" slot="hotspot-6" id="indonesia" data-surface="0 0 40 36 41 0.102 0.139 0.759"
data-visibility-attribute="visible">
<div class="HotspotAnnotation">
<img class="Flags" src="Assets/Image/OfficesandAgency/indonesia.png">
</div>
</div>
<!-- iraq -->
<div class="Hotspot" slot="hotspot-19" id="iraq" data-surface="0 0 75 25 76 0.179 0.387 0.434"
data-normal="0.6072723475920008m 0.2886210414219591m 0.7402149622228695m"
data-visibility-attribute="visible">
<div class="HotspotAnnotation">
<img class="Flags" src="Assets/Image/OfficesandAgency/iraq.png">
</div>
</div>
<!-- iran -->
<div class="Hotspot" slot="hotspot-7" id="iran"
data-position="31.132408913398194m 14.675946187316159m 29.129943221996502m"
data-visibility-attribute="visible">
<div class="HotspotAnnotation">
<img class="Flags" src="Assets/Image/OfficesandAgency/iran.png">
</div>
</div>
<!-- morocco -->
<div class="Hotspot" slot="hotspot-8" id="morocco" data-surface="0 0 15 17 71 0.294 0.221 0.485"
data-visibility-attribute="visible">
<div class="HotspotAnnotation">
<img class="Flags" src="Assets/Image/OfficesandAgency/morocco.png">
</div>
</div>
<!-- nigeria -->
<div class="Hotspot" slot="hotspot-9" id="nigeria" data-surface="0 0 18 16 50 0.622 0.318 0.060"
data-visibility-attribute="visible">
<div class="HotspotAnnotation">
<img class="Flags" src="Assets/Image/OfficesandAgency/nigeria.png">
</div>
</div>
<!-- south-africa -->
<div class="Hotspot" slot="hotspot-10" id="south-africa" data-surface="0 0 154 98 155 0.120 0.093 0.787"
data-visibility-attribute="visible">
<div class="HotspotAnnotation">
<img class="Flags" src="Assets/Image/OfficesandAgency/south-africa.png">
</div>
</div>
<!-- turkey -->
<div class="Hotspot" slot="hotspot-11" id="turkey" data-surface="0 0 75 76 128 0.919 0.011 0.070"
data-visibility-attribute="visible">
<div class="HotspotAnnotation">
<img class="Flags" src="Assets/Image/OfficesandAgency/turkey.png">
</div>
</div>
<!-- philippines -->
<div class="Hotspot" slot="hotspot-12" id="philippines" data-surface="0 0 39 40 87 0.820 0.121 0.059"
data-visibility-attribute="visible">
<div class="HotspotAnnotation">
<img class="Flags" src="Assets/Image/OfficesandAgency/philippines.png">
</div>
</div>
<!-- thailand -->
<div class="Hotspot" slot="hotspot-13" id="thailand" data-surface="0 0 33 34 35 0.028 0.631 0.341"
data-visibility-attribute="visible">
<div class="HotspotAnnotation">
<img class="Flags" src="Assets/Image/OfficesandAgency/thailand.png">
</div>
</div>
<!-- malaysia -->
<div class="Hotspot" slot="hotspot-14" id="malaysia"
data-position="46.80843749865863m -4.072353928793533m -2.9644561979541075m"
data-normal="0.990426845237311m -0.09724695770675473m -0.09796781844079434m"
data-visibility-attribute="visible">
<div class="HotspotAnnotation">
<img class="Flags" src="Assets/Image/OfficesandAgency/malaysia.png">
</div>
</div>
<!-- unitedarabemirates -->
<div class="Hotspot" slot="hotspot-15" id="unitedarabemirates"
data-position="31.481339689864484m 8.250693914508979m 31.120982198544294m"
data-normal="0.6317943785244251m 0.09817065596745787m 0.7688942616328038m"
data-visibility-attribute="visible">
<div class="HotspotAnnotation">
<img class="Flags" src="Assets/Image/OfficesandAgency/unitedarabemirates.png">
</div>
</div>
<!-- pakistan -->
<div class="Hotspot" slot="hotspot-16" id="pakistan"
data-position="38.32747023769133m 12.317187650817834m 21.384228343752874m"
data-normal="0.8443112298330605m 0.2893284348858063m 0.4510294934306567m"
data-visibility-attribute="visible">
<div class="HotspotAnnotation">
<img class="Flags" src="Assets/Image/OfficesandAgency/pakistan.png">
</div>
</div>
<!-- bahrain -->
<div class="Hotspot" slot="hotspot-17" id="bahrain"
data-position="29.11528605802829m 9.939521841140188m 32.63548536936477m"
data-normal="0.6077142993193945m 0.2892952111495323m 0.739588812252244m"
data-visibility-attribute="visible">
<div class="HotspotAnnotation">
<img class="Flags" src="Assets/Image/OfficesandAgency/bahrain.png">
</div>
</div>
<!-- oman -->
<div class="Hotspot" slot="hotspot-18" id="oman"
data-position="33.38879779189662m 6.252499587828507m 29.697148976594747m"
data-normal="0.7696666653847725m 0.09815897251728495m 0.6308550073589301m"
data-visibility-attribute="visible">
<div class="HotspotAnnotation">
<img class="Flags" src="Assets/Image/OfficesandAgency/oman.png">
</div>
</div>
<!-- arabestansaudi -->
<div class="Hotspot" slot="hotspot-20" id="arabestansaudi"
data-position="25.438120259343002m 8.24020487969461m 35.923169617138285m"
data-normal="0.4689623407516709m 0.09694954464996601m 0.8778810333689173m"
data-visibility-attribute="visible">
<div class="HotspotAnnotation">
<img class="Flags" src="Assets/Image/OfficesandAgency/arabestansaudi.png">
</div>
</div>
<!-- uruguay -->
<div class="Hotspot" slot="hotspot-21" id="uruguay"
data-position="-34.71021585006844m -26.856347555207762m 12.170277213704308m"
data-normal="-0.683381262322527m -0.6323393512804542m 0.36487942546639124m"
data-visibility-attribute="visible">
<div class="HotspotAnnotation">
<img class="Flags" src="Assets/Image/OfficesandAgency/uruguay.png">
</div>
</div>
<button type="button" id="Menu" class="btn btn-outline-info btn-sm btn_Menu">
<img style="padding-top:3px;padding-bottom:3px;" src="Assets/Image/hamburger.png" width="25px">
</button>
<div class="progress-bar hide" slot="progress-bar">
<div class="update-bar"></div>
</div>
<button slot="ar-button" id="ar-button">
View in your space
</button>
<div class="menu_list p-3">
<select class="Font-Size form-select" id="category" aria-label="Default select example">
<option class="Font-Size" value="AMT105">AMT105</option>
<option class="Font-Size" value="AMT205">AMT205</option>
<option class="Font-Size" value="Sale">Sale</option>
<option class="Font-Size" value="Offices" selected>Offices and Agency</option>
<option class="Font-Size" value="Bassforinstrumenttests">Bass for instrument tests</option>
<option class="Font-Size" value="CalibrationmoduleforAMT105">Calibration module for AMT105</option>
<!-- <option class="Font-Size" value="CBTestModule">CB Test Module</option> -->
<option class="Font-Size" value="CTandCVTTestModule">CT and CVT Test Module</option>
<option class="Font-Size" value="TransformerTestModule">Transformer Test Module</option>
</select>
<div class="form-check mt-3 pl">
<input class="form-check-input " type="checkbox" value="" id="CameraControl">
<label class="form-check-label" for="CameraControl">
Camera Control
</label>
</div>
<button type="button" id="close_menu" class="btn btn-sub m-2 mt-1 display_none">Close Menu
<img class="float-start border-end border-2"
src="Assets/Image/fast-forward-double-right-arrows-symbol.png">
</button>
<hr>
<p class="fw-bolder text-center">Offices and Agency</p>
<hr>
<div class="overflow-y-scroll overflow-x-hidden pe-1 list_div" style="height:75%">
<button type="button" class="btn btn-sub m-2 mt-1" data_orbit="0.5rad 1.275rad 0m" id="arabestansaudi">
<span class=" align-middle fw-bolder">
Saudi Arabia
</span>
<img class="float-end" style="max-width: 40px;"
src="Assets/Image/OfficesandAgency/arabestansaudi.png">
</button>
<button type="button" class="btn btn-sub m-2 mt-1" data_orbit="2.2rad 2rad 100m" id="Australia">
<span class=" align-middle fw-bolder">
Australia
</span>
<img class="float-end" style="max-width: 40px;" src="Assets/Image/OfficesandAgency/australia.png">
</button>
<button type="button" class="btn btn-sub m-2 mt-1" data_orbit="5.2rad 2rad 100m">
<span class=" align-middle fw-bolder">
Brazil
</span>
<img class="float-end" style="max-width: 40px;" src="Assets/Image/OfficesandAgency/brazil.png">
</button>
<button type="button" class="btn btn-sub m-2 mt-1" data_orbit="0.1rad 1.15rad 0m">
<span class="align-middle fw-bolder">
Croatia
</span>
<img class="float-end" style="max-width: 40px;" src="Assets/Image/OfficesandAgency/croatia.png">
</button>
<button type="button" class="btn btn-sub m-2 mt-1" data_orbit="-0.3rad 1.05rad 0m">
<span class="align-middle fw-bolder">
England
</span>
<img class="float-end" style="max-width: 40px;" src="Assets/Image/OfficesandAgency/england.png">
</button>
<button type="button" class="btn btn-sub m-2 mt-1" data_orbit="1.2rad 1.35rad 015m">
<span class="align-middle fw-bolder">
India
</span>
<img class="float-end" style="max-width: 40px;" src="Assets/Image/OfficesandAgency/india.png">
</button>
<button type="button" class="btn btn-sub m-2 mt-1" data_orbit="1.7rad 1.85rad 015m">
<span class="align-middle fw-bolder">
Indonesia
</span>
<img class="float-end" style="max-width: 40px;" src="Assets/Image/OfficesandAgency/indonesia.png">
</button>
<button type="button" class="btn btn-sub m-2 mt-1" data_orbit="0.9rad 1.175rad 0m">
<span class="align-middle fw-bolder">
Iran
</span>
<img class="float-end" style="max-width: 40px;" src="Assets/Image/OfficesandAgency/iran.png">
</button>
<button type="button" class="btn btn-sub m-2 mt-1" data_orbit="0.5rad 1.175rad 0m">
<span class="align-middle fw-bolder">
Iraq
</span>
<img class="float-end" style="max-width: 40px;" src="Assets/Image/OfficesandAgency/iraq.png">
</button>
<button type="button" class="btn btn-sub m-2 mt-1" data_orbit="5.9rad 1.175rad 0m">
<span class="align-middle fw-bolder">
Morocco
</span>
<img class="float-end" style="max-width: 40px;" src="Assets/Image/OfficesandAgency/morocco.png">
</button>
<button type="button" class="btn btn-sub m-2 mt-1" data_orbit="6.3rad 1.5rad 0m">
<span class="align-middle fw-bolder">
Nigeria
</span>
<img class="float-end" style="max-width: 40px;" src="Assets/Image/OfficesandAgency/nigeria.png">
</button>
<button type="button" class="btn btn-sub m-2 mt-1" data_orbit="1.9rad 1.7rad 015m">
<span class="align-middle fw-bolder">
Philippines
</span>
<img class="float-end" style="max-width: 40px;" src="Assets/Image/OfficesandAgency/philippines.png">
</button>
<button type="button" class="btn btn-sub m-2 mt-1" data_orbit="6.3rad 2.2rad 0m">
<span class="align-middle fw-bolder">
South Africa
</span>
<img class="float-end" style="max-width: 40px;"
src="Assets/Image/OfficesandAgency/south-africa.png">
</button>
<button type="button" class="btn btn-sub m-2 mt-1" data_orbit="1.7rad 1.6rad 015m">
<span class="align-middle fw-bolder">
Thailand
</span>
<img class="float-end" style="max-width: 40px;" src="Assets/Image/OfficesandAgency/thailand.png">
</button>
<button type="button" class="btn btn-sub m-2 mt-1" data_orbit="0.5rad 1.175rad 0m">
<span class="align-middle fw-bolder">
Turkey
</span>
<img class="float-end" style="max-width: 40px;" src="Assets/Image/OfficesandAgency/turkey.png">
</button>
<button type="button" class="btn btn-sub m-2 mt-1" data_orbit="1.6rad 1.60rad 020m">
<span class="align-middle fw-bolder">
Malaysia
</span>
<img class="float-end" style="max-width: 40px;" src="Assets/Image/OfficesandAgency/malaysia.png">
</button>
<button type="button" class="btn btn-sub m-2 mt-1" data_orbit="0.7rad 1.275rad 0m">
<span class="align-middle fw-bolder">
United Arab Emirates
</span>
<img class="float-end" style="max-width: 40px;"
src="Assets/Image/OfficesandAgency/unitedarabemirates.png">
</button>
<button type="button" class="btn btn-sub m-2 mt-1" data_orbit="1rad 1.275rad 0m">
<span class="align-middle fw-bolder">
Pakistan
</span>
<img class="float-end" style="max-width: 40px;" src="Assets/Image/OfficesandAgency/pakistan.png">
</button>
<button type="button" class="btn btn-sub m-2 mt-1" data_orbit="0.7rad 1.275rad 0m">
<span class="align-middle fw-bolder">
Bahrain
</span>
<img class="float-end" style="max-width: 40px;" src="Assets/Image/OfficesandAgency/bahrain.png">
</button>
<button type="button" class="btn btn-sub m-2 mt-1" data_orbit="0.7rad 1.275rad 0m">
<span class="align-middle fw-bolder">
Oman
</span>
<img class="float-end" style="max-width: 40px;" src="Assets/Image/OfficesandAgency/oman.png">
</button>
</button>
<button type="button" class="btn btn-sub m-2 mt-1" data_orbit="5.2rad 2.2rad 100m">
<span class="align-middle fw-bolder">
uruguay
</span>
<img class="float-end" style="max-width: 40px;" src="Assets/Image/OfficesandAgency/uruguay.png">
</button>
</div>
</div>
</model-viewer>
<div class="position-fixed top-0 right-0" id="ImageData">
<p class="bg-dark m-0"><button class="p-2 m-1 btn-close bg-danger text-dark fw-bolder"></button></P>
<img style="z-index:100000 !important;" src="" class="img-pos" width="400px" id="img-tag">
</div>
</body>
<!-- Loads <model-viewer> for browsers: -->
<script type="module" src="https://ajax.googleapis.com/ajax/libs/model-viewer/3.0.1/model-viewer.min.js"></script>
<script>
var Model_Viewer = document.querySelector("#Model_Tag");
function getOribit() {
var date_orbit = Model_Viewer.cameraOrbit();
console.log(data_orbit.tostring())
}
$(".btn-sub").click(function (e) {
var Orbit_Sub = $(this).attr("data_orbit");
var taglist = $(this).children();
Model_Viewer.cameraOrbit = Orbit_Sub;
var src = $(taglist[1]).attr("src")
dataOrbit(src);
});
$(".btn-sub").focusout(function (e) {
$(".Hotspot").show('150');
$("#ImageData").hide("150");
});
function dataOrbit(taglist) {
if (window.screen.width <= "1000") {
$(".menu_list").addClass("d-none");
}
id = taglist.split("/");
var test = id[3].replace(".png", "");
$(".Hotspot").hide('150');
setTimeout(() => {
$("#img-tag").attr("src", taglist.replace(".png", ".jpg"));
$('#' + test).show("150");
$("#ImageData").show("150");
}, 900);
}
if (window.screen.width >= "1000") {
$(".btn-sub").focusout(function (e) {
Model_Viewer.cameraOrbit = "18deg 80deg 350.4m";
setTimeout(() => {
$("#ImageData").hide("150");
}, 800)
});
}
$("#Menu").on("click", function () {
if (window.screen.width <= "1000") {
$(".menu_list").addClass("Show_Responsiv");
$(".menu_list").removeClass("d-none");
$("#Menu").css("display", "none !important");
$("#ImageData").hide("150");
} else {
$(".menu_list").addClass("Show_Responsiv");
$(".menu_list").removeClass("d-none");
$("#Menu").css("display", "none !important");
}
});
$(".btn-close").on("click", function () {
setTimeout(() => {
$("#ImageData").hide("150");
$(".Hotspot").show("150");
}, 400)
});
$("#close_menu").on("click", function () {
$(".menu_list").addClass("d-none");
});
$(document).ready(function () {
checkBox = document.getElementById("CameraControl");
$("#ImageData").hide("slow");
model = Model_Viewer;
if (checkBox.checked) {
Model_Viewer.cameracontrols = true;
Model_Viewer.cameraControls = true;
} else {
Model_Viewer.___cameraControls = false;
Model_Viewer.cameraControls = false
}
});
$("#CameraControl").change(function (e) {
checkBox = document.getElementById("CameraControl");
model = Model_Viewer;
if (checkBox.checked) {
Model_Viewer.cameracontrols = true;
Model_Viewer.cameraControls = true;
} else {
Model_Viewer.___cameraControls = false;
Model_Viewer.cameraControls = false
}
});
</script>
<style>
.Flags {
max-width: 40px;
}
@media screen and (max-height: 800px) {
.list_div {
height: 68% !important;
}
.Flags {
max-width: 30px;
}
}
@media screen and (max-width: 1000px) {
#ImageData {
width: 70%;
}
#img-tag {
width: 100%;
}
}
</style>
</script>
<script src="Assets/JS/Coustom_script.js"></script>
</html>