-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
598 lines (542 loc) · 24.2 KB
/
index.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
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->
<title>Ziggo</title>
<!-- Favicon -->
<link rel="shortcut icon" type="image/icon" href="assets/images/icon_logo.png"/>
<!-- Font Awesome -->
<link href="assets/css/font-awesome.min.css" rel="stylesheet">
<!-- Line icon -->
<link rel="stylesheet" href="assets/css/simple-line-icons.css">
<!-- Bootstrap -->
<link href="assets/css/bootstrap.min.css" rel="stylesheet">
<!-- Slick slider -->
<link href="assets/css/slick.css" rel="stylesheet">
<!-- Gallery Lightbox -->
<link href="assets/css/magnific-popup.css" rel="stylesheet">
<!-- Theme color -->
<link id="switcher" href="assets/css/theme-color/default-theme.css" rel="stylesheet">
<!-- Main Style -->
<link href="style.css" rel="stylesheet">
<!-- Fonts -->
<!-- Open Sans for body font -->
<!-- <link href="https://fonts.googleapis.com/css?family=Open+Sans:300,400,400i,600,700,800" rel="stylesheet"> -->
<!-- Montserrat for Title -->
<!-- <link href="https://fonts.googleapis.com/css?family=Montserrat" rel="stylesheet"> -->
<!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->
</head>
<body>
<!-- Start Header -->
<header id="mu-header" class="" role="banner">
<div class="container">
<nav class="navbar navbar-default mu-navbar">
<div class="container-fluid">
<!-- Brand and toggle get grouped for better mobile display -->
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1" aria-expanded="false">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<!-- Text Logo -->
<a class="navbar-brand" href="#">ZIGGO</a>
<!-- Image Logo -->
<!-- <a class="navbar-brand" href="#"><img src="assets/images/logo.png" style="width:200px;height:auto;"></a> -->
</div>
<!-- Collect the nav links, forms, and other content for toggling -->
<div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
<ul class="nav navbar-nav mu-menu navbar-right">
<li><a href="#">HOME</a></li>
<li><a href="#ABOUT"><span class="ziggo-font">ZIGGO</span></a></li>
<!-- <li><a href="#mu-download">RELEASE</a></li> -->
<li><a href="#PRODUCTS">PRODUCTS</a></li>
<li><a href="#mu-publication">PUBLICATION</a></li>
<li><a href="#mu-contact">CONTACT</a></li>
<li><a href="https://mobisense.github.io/ziggo_book/">TUTORIAL</a></li>
</ul>
</div><!-- /.navbar-collapse -->
</div><!-- /.container-fluid -->
</nav>
</div>
</header>
<!-- End Header -->
<!-- Banner -->
<section id="banner">
<div>
<img src="assets/images/banner.jpg">
</div>
</section>
<!-- Start main content -->
<main role="main">
<!-- Start About -->
<!-- End About -->
<section id="ABOUT" >
<div class="container">
<div class="row">
<div class="col-md-12">
<div class="mu-about-area" style="padding-bottom: 0;">
<div class="mu-about-header">
<h2 class="mu-heading-title" style="font-size: 40px;">ABOUT <span class="ziggo-font">ZIGGO </span></h2>
<span class="mu-header-dot"></span>
</div>
<div class="container">
<div class="row">
<div class="col-md-12">
<div class="mu-comp-area" style="padding-bottom: 0; padding-top: 20px;">
<div class="image-container">
<figure>
<img src="assets/images/tsnperf_test.png" alt="Image 1" class="responsive-image">
<figcaption>
<p style="font-size: 28px;"> <span class="ziggo-name">ZIGGO</span> TSNPerf </p>
<p style="word-break: break-word;">TSNPerf provides protocol compliance and performance evaluation</p>
</figcaption>
</figure>
<figure>
<img src="assets/images/switch_real.png" alt="Image 2" class="responsive-image">
<figcaption>
<p style="font-size: 28px;"> <span class="ziggo-name">ZIGGO</span> Switch </p>
<p style="word-break: break-word;">ZIGGO presents a hardware-software co-designed TSN switch</p>
</figcaption>
</figure>
<figure>
<img src="assets/images/device_real.png" alt="Image 3" class="responsive-image">
<figcaption>
<p style="font-size: 28px;"> <span class="ziggo-name">ZIGGO</span> Device </p>
<p style="word-break: break-word;">ZIGGO presents a hardware-software co-designed TSN device</p>
</figcaption>
</figure>
</div>
</div>
</div>
</div>
</div>
<div class="mu-about-content">
<div class="mu-about-opening">
A <span class="style">flexible</span>, <span class="style">standard-compliant</span>, and <span class="style">control-function-virtualized</span> TSN switch platform ready for
<span class="style">industrial control</span>, <span class="style">automotive electronics</span>, and other time-sensitive applications.
</div>
</div>
<div class="container">
<div class="row">
<div class="col-md-12">
<div class="mu-comp-area" style="padding: 50px;">
<div class="content-wrapper">
<div class="image-container">
<img src="assets/images/logic.PNG" class="img-rounded" alt="Logic Diagram">
</div>
<div class="video-container">
<div class="embed-responsive embed-responsive-16by9">
<iframe src="//player.bilibili.com/player.html?aid=341960060&bvid=BV1994y1U7bT&cid=730233770&page=1" scrolling="no" border="0" frameborder="no" framespacing="0" allowfullscreen="true"> </iframe>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</section>
<!-- End Testimonials -->
<section id="PRODUCTS">
<div class="container">
<div class="row">
<div class="col-md-12">
<div class="mu-comp-area" style="padding-top: 0;">
<div class="mu-portfolio-header">
<h2 class="mu-heading-title" style="font-size: 40px;"><span class="ziggo-font">ZIGGO </span> PRODUCTS </h2>
<span class="mu-header-dot"></span>
</div>
<!-- Start Comparison Content -->
<div class="mu-comp-content">
<div class="row">
<table border='0' class="comp-table-domain">
<tr style="height: 80%;">
<th style="width: 50%">
<div class="mu-heading-title" style="font-size:35px;"><span class="ziggo-font">ZIGGO </span> TSNPerf</div>
<div style="font-size: 15px; color:grey;margin-bottom: 30px; word-break: break-word;">
TSNPerf provides protocol compliance and performance evaluation
</div>
<ul style="list-style-type: circle; padding-left: 0; margin: 0; text-align: left;">
<li style="padding: 10px 0; word-break: break-word;">Time synchronization accuracy Verification</li>
<li style="padding: 10px 0; word-break: break-word;">GCL Capability, Bandwidth Guarantee and GCL Accuracy Verification</li>
<li style="padding: 10px 0; word-break: break-word;">End-to-End delay, jitter and loss rate analysis for critical traffic</li>
</ul>
<br>
<div style="display:flex; justify-content:center; gap: 45px;">
<a href="https://github.com/MobiSense/Ziggo-TSNPerf" class="button_github">GitHub</a>
<a href="https://mobisense.github.io/ziggo_book/docs/tsnperf/" class="button_docs">Docs</a>
</div>
</th>
<th style="width: 50%"><img src="assets/images/TSNPerf.PNG" alt="TSNPerf">
</th>
</tr>
</table>
</div>
<div class="mu-comp-content" style="margin-bottom: 100px;">
<div class="row">
<div>
<table border='0' class="comp-table-domain">
<tr style="height: 80%;">
<th style="width: 40%"><img src="assets/images/ziggo_switch.PNG" alt="Switch">
</th>
<th style="width: 45%">
<div class="mu-heading-title" style="font-size:35px;"><span class="ziggo-font">ZIGGO </span> Switch</div>
<div style="font-size: 15px; color:grey;margin-bottom: 30px; word-break: break-word;">
ZIGGO presents a hardware-software co-designed TSN switch
</div>
<ul style="list-style-type: circle; padding-left: 40px; margin: 0; text-align: left;">
<li style="padding: 10px 0; word-break: break-word;">Simultaneous transmission of IT and OT traffic with QoS guarantee</li>
<li style="padding: 10px 0; word-break: break-word;">Nanosecond time synchronization and microsecond network delay</li>
<li style="padding: 10px 0; word-break: break-word;">IEEE 802.1AS, Qav, Qbv, and Qcc support</li>
</ul>
<br>
<div style="display:flex; justify-content:center; gap: 45px;">
<a href="https://github.com/MobiSense/Ziggo-CaaS-Switch" class="button_github">GitHub</a>
<a href="https://mobisense.github.io/ziggo_book/docs/switch/" class="button_docs">Docs</a>
</div>
</th>
</tr>
</table>
</div>
</div>
</div>
<div>
<table border='0' class="comp-table-domain">
<tr style="height: 80%;">
<th style="width: 50%">
<div class="mu-heading-title" style="font-size:35px;"><span class="ziggo-font">ZIGGO </span> Device</div>
<div style="font-size: 15px; color:grey;margin-bottom: 30px; word-break: break-word;">
ZIGGO presents a hardware-software co-designed TSN device
</div>
<ul style="list-style-type: circle; padding-left: 0; margin: 0; text-align: left;">
<li style="padding: 10px 0; word-break: break-word;">Critical traffic replay and record with high-precision</li>
<li style="padding: 10px 0; word-break: break-word;">Gigabit bandwidth support</li>
<li style="padding: 10px 0; word-break: break-word;"> IEEE 802.1AS and Qcc support</li>
</ul>
<br>
<div style="display:flex; justify-content:center; gap: 45px;">
<a href="https://github.com/Horacehxw/Ziggo-TSNPerf" class="button_github">GitHub</a>
<a href="https://mobisense.github.io/ziggo_book/docs/device/" class="button_docs">Docs</a>
</div>
<!-- <div style="font-size: 18px; color:Black;margin-bottom: 10px;">
√ Time synchronization accuracy Verification
</div>
<div style="font-size: 18px; color:Black;margin-bottom: 10px;">
√ GCL Capability, Bandwidth Guarantee and GCL Accuracy Verification
</div>
<div style="font-size: 18px; color:Black;margin-bottom: 10px;">
√ End-to-End delay, jitter and loss rate analysis for critical traffic
</div> -->
</th>
<th style="width: 50%"><img src="assets/images/ziggo_device.PNG" alt="Device">
</th>
</tr>
</table>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</section>
<!-- Start Publication -->
<section id="mu-publication">
<div class="container">
<div class="row">
<div class="col-md-12">
<div class="mu-publication-area">
<div class="mu-publication-header">
<h2 class="mu-heading-title"><span>PUBLICATIONS</span></h2>
<span class="mu-header-dot"></span>
</div>
<!-- Start Publication Content -->
<div class="mu-publication-content">
<ol class="mu-publication-paperlist">
<li>Zeyu Wang*, Xiaowu He*, Xiangwen Zhuge, Shen Xu, Fan Dang, Jingao Xu and Zheng Yang
<b>"Enabling Network Diagnostics in Time-Sensitive Networking: Protocol, Algorithm, and Hardware"</b>, IEEE <b>IWQoS</b>, 2024.
<a href="data/TSNCard.pdf" target="_blank">[PDF]</a>
</li>
<li>Xiangwen Zhuge, Xinjun Cai, Xiaowu He, Zeyu Wang, Fan Dang, Wang Xu and Zheng Yang
<b>"InNetScheduler: In-network scheduling for time- and event-triggered critical traffic in TSN"</b>, IEEE <b>INFOCOM</b>, 2024.
<a href="data/InNetScheduler.pdf" target="_blank">[PDF]</a>
</li>
<li>Zeyu Wang, Jingao Xu, Xu Wang, Xiangwen Zhuge, Xiaowu He, Zheng Yang
<b>"Industrial Knee-jerk: In-Network Simultaneous Planning and Control on a TSN Switch"</b>, ACM <b>MobiSys</b>, 2023.
<a href="data/industrial-knee-jerk.pdf" target="_blank">[PDF]</a>
</li>
<li>Zheng Yang, Yi Zhao, Fan Dang, Xiaowu He, Jiahang Wu, Hao Cao, Zeyu Wang, Yunhao Liu
<b>"CaaS: Enabling Control-as-a-Service for Time-Sensitive Networking"</b>, IEEE <b>INFOCOM</b>, 2023.
<a href="data/caas.pdf" target="_blank">[PDF]</a>
</li>
<li>Xiaowu He, Xiangwen Zhuge, Fan Dang, Wang Xu, Zheng Yang
<b>"DeepScheduler: Enabling Flow-Aware Scheduling in Time-Sensitive Networking"</b>, IEEE <b>INFOCOM</b>, 2023.
<a href="data/deepscheduler.pdf" target="_blank">[PDF]</a>
</li>
<li>Yi Zhao, Zheng Yang, Xiaowu He, Jiahang Wu, Hao Cao, Liang Dong, Fan Dang, Yunhao Liu
<b>"E-TSN: Enabling Event-triggered Critical Traffic in Time-Sensitive Networking for Industrial Applications"</b>, IEEE <b>ICDCS</b>, 2022.
<a href="data/e-tsn.pdf" target="_blank">[PDF]</a>
</li>
</ol>
</div>
<!-- End Publication Content -->
</div>
</div>
</div>
</div>
</section>
<!-- End Publication -->
<!-- Start Contact -->
<section id="mu-contact">
<div class="container">
<div class="row">
<div class="col-md-12">
<div class="mu-contact-area">
<div class="mu-contact-header">
<h2 class="mu-heading-title">CONTACT <span>US</span></h2>
<span class="mu-header-dot"></span>
</div>
<!-- Start Contact Content -->
<div class="mu-contact-content">
<h3>Members</h3>
<div>Faculty</div>
<ul>
<a href="http://tns.thss.tsinghua.edu.cn/~yangzheng/" target="_blank">Zheng Yang</a>,
<a href="http://tns.thss.tsinghua.edu.cn/~dangfan/" target="_blank">Fan Dang</a>
</ul>
<div>Student</div>
<ul>
<span>Yi Zhao</span>,
<span>Xiaowu He</span>,
<span>Jiahang Wu</span>,
<span>Zeyu Wang</span>,
<span>Hao Cao</span>,
<span>Xiangwen Zhuge</span>
</ul>
<h3>Email</h3>
<ul>
<li style='list-style:none'><b style="font-size: 15px;">Prof. Zheng Yang: </b>hmilyyz[AT]gmail[DOT]com</li>
</ul>
</div>
<!-- End Contact Content -->
</div>
</div>
</div>
</div>
</section>
<!-- End Contact -->
</main>
<!-- End main content -->
<!-- Start footer -->
<footer id="mu-footer" role="contentinfo">
<div class="container">
<div class="col-sm-12">
<img src="assets/images/thu_logo_white.png" alt="THU_LOGO" style="margin-right: 10px;margin-top: 10px;">
<div>
<p> Room 211, District 11, East Main Building, Tsinghua University, Haidian District, Beijing, China, 100084 | </p>
<p> © 2021 <span class="ziggo-font">ZIGGO</span>, TNS, School of Software, Tsinghua University . All rights reserved. </p>
</div>
</div>
</div>
</footer>
<!-- End footer -->
<!-- Start Magnifier In Download Part -->
<div id="download_magnifier_outerdiv" onclick="js_download_outerdiv_fade(this)">
<div id="download_magnifier_innerdiv">
<img id="download_magnifier_bigimg" src="" />
</div>
</div>
<!-- End Magnifier In Download Part -->
<!-- Start BVP Info In Download Part -->
<div id="download_info_outerdiv_bvp" onclick="js_download_outerdiv_fade(this)">
<div id="download_info_innerdiv_bvp">
<h4 style="text-align: center;margin-top: 30px;">Feature File Format Illustration</h2>
<ul class="download_info_bvp_ul">
<li>
<b>CSI</b> file name is in this form: id-a-b-c-d-rx.dat, where 'id' represents user's id,
'a' represents room id, 'b' represents position id, 'c' represents orientation id, 'd' represents instance id,
'rx' range between 'r1' and 'r6', corresponding to 6 receivers. CSI data can be loaded by
<a href="https://github.com/dhalperi/linux-80211n-csitool-supplementary/tree/master/matlab" target="_blank"
style="text-decoration: underline;">CSITool</a>.
</li>
<li>
<b>DFS</b> file name is in this form: id-a-b-c-d.mat, where 'id' represents user's id,
'a' represents room id, 'b' represents position id, 'c' represents orientation id, 'd' represents instance id.
The data structure of each file is <span style="color: #468847;">6*121*T</span>, where
'<span style="color: #468847;">6</span>' represent the 6 receivers,
'<span style="color: #468847;">121</span>' represents the 121 frequency bins ranging between [-60, 60] Hz.
'<span style="color: #468847;">T</span>' represents the consecutive sampling timestamps.
</li>
<li>
<b>BVP</b> file name is in this form: id-a-b-c-d.mat, where 'id' represents user's id,
'a' represents room id, 'b' represents position id, 'c' represents orientation id, 'd' represents instance id.
The data structure of each file is <span style="color: #468847;">20*20*T</span>, where
the first '<span style="color: #468847;">20</span>' represent the velocity alongside the x direction,
the second '<span style="color: #468847;">20</span>' represent the velocity alongside the y direction.
'<span style="color: #468847;">T</span>' represents the consecutive sampling timestamps.
</li>
<li>
CSI extraction code <u>gj8c</u>, DFS extraction code <u>v4h5</u>, BVP extraction code <u>puly</u>.
</li>
</ul>
</div>
</div>
<!-- End Info In Download Part -->
<!-- Start Model Info In Download Part -->
<div id="download_info_outerdiv_model" onclick="js_download_outerdiv_fade(this)">
<div id="download_info_innerdiv_model">
<div id="download_info_innerdiv_model">
<h4 style="text-align: center;margin-top: 30px;">Model and Environment Settings</h2>
<ul class="download_info_model_ul">
<li>
Operating system CentOS release 6.9;
</li>
<li>
Python version 3.5.0;
</li>
<li>
Use Keras-2.0.3 with TensorFlow-1.1.0 backend;
</li>
</ul>
</div>
</div>
</div>
<!-- End Info In Download Part -->
<!--######################################################################################################-->
<!-- jQuery library -->
<script src="assets/js/jquery.min.js"></script>
<script type="text/javascript" src="assets/js/jquery-migrate-3.3.2.min.js"></script>
<!-- Bootstrap -->
<script src="assets/js/bootstrap.min.js"></script>
<!-- Slick slider -->
<script type="text/javascript" src="assets/js/slick.min.js"></script>
<!-- Counter js -->
<script type="text/javascript" src="assets/js/counter.js"></script>
<!-- Filterable Gallery js -->
<script type="text/javascript" src="assets/js/jquery.filterizr.min.js"></script>
<!-- Gallery Lightbox -->
<script type="text/javascript" src="assets/js/jquery.magnific-popup.min.js"></script>
<!-- Ajax contact form -->
<script type="text/javascript" src="assets/js/app.js"></script>
<!-- Custom js -->
<script type="text/javascript" src="assets/js/custom.js"></script>
<!-- Timeline EventFlow js -->
<!-- <script src="assets/js/jquery.min.js"></script> -->
<script src='assets/js/jquery.eventFlow.js'></script>
<script>
$(function(){
var bigEvent =[{
'year' : 2017,
'events' :[
{
'mouths' : 2,
'times' :'WiDance (CHI 2017)',
'even' :'Human-computer interface via wireless sensing. An interactive dancing game.'
},{
'mouths' : 4,
'times' :'Widar (MobiHoc 2017) ',
'even' :'Decimeter-level passive tracking system based on commercial Wi-Fi devices.'
}]
},{
'year' : 2018,
'events' :[
{
'mouths' : 2,
'times' :'Widar2.0 (MobiSys 2018) ',
'even' :'Passive human tracking system with a single commercial Wi-Fi link, endowing passive tracking with ubiquity (single link) as well as accuracy (decimeter).'
}
]
},{
'year' : 2019,
'events' :[
{
'mouths' : 3,
'times' :'Widar3.0 (MobiSys 2019)',
'even' :'Zero-effort cross-domain gesture recognition system via Wi-Fi, a fundamental step towards ubiquitous sensing —— "<i>train once, use anywhere</i>".'
}
]
}];
$('.event_wrap').eventFlow({'events':bigEvent});
})
</script>
<!-- Download Magnifier -->
<script>
/* Download Part: Magnifier Button onclick Function */
function js_download_magnifier(dom){
var outerdiv = document.getElementById("download_magnifier_outerdiv");
var innerdiv = document.getElementById("download_magnifier_innerdiv");
var bigimg = document.getElementById("download_magnifier_bigimg");
var src = "assets/images/" + dom.id + "_lg.jpg";
$(bigimg).attr("src", src);
$("<img/>").attr("src", src).load(function(){
var windowW = $(window).width();
var windowH = $(window).height();
var realWidth = this.width;
var realHeight = this.height;
var imgWidth, imgHeight;
var scale = 0.8;
if(realHeight>windowH*scale) {
imgHeight = windowH*scale;
imgWidth = imgHeight/realHeight*realWidth;
if(imgWidth>windowW*scale) {
imgWidth = windowW*scale;
}
} else if(realWidth>windowW*scale) {
imgWidth = windowW*scale;
imgHeight = imgWidth/realWidth*realHeight;
} else {
imgWidth = realWidth;
imgHeight = realHeight;
}
$(bigimg).css("width",imgWidth);
var w = (windowW-imgWidth)/2;
var h = (windowH-imgHeight)/2;
$(innerdiv).css({"top":h, "left":w});
$(outerdiv).fadeIn("fast");
// Or:
//$(outerdiv).css({"display": "block"});
});
}
/* Download Part: Info Button onclick Function */
function js_download_info(dom){
domid = dom.id;
if(domid == "bvp_generalization"){
var outerdiv = document.getElementById("download_info_outerdiv_bvp");
var innerdiv = document.getElementById("download_info_innerdiv_bvp");
$(innerdiv).css({"top":100, "left":100});
$(outerdiv).fadeIn("fast");
} else if(domid == "model_structure"){
var outerdiv = document.getElementById("download_info_outerdiv_model");
var innerdiv = document.getElementById("download_info_innerdiv_model");
$(innerdiv).css({"top":100, "left":100});
$(outerdiv).fadeIn("fast");
}
}
/* Download Part: Magnifier/Info Exit Function */
function js_download_outerdiv_fade(dom){
var outerdiv = document.getElementById(dom.id);
$(outerdiv).fadeOut("fast");
}
document.onkeydown=function(){
if(window.event.keyCode == 27){
js_download_outerdiv_fade(document.getElementById("download_magnifier_outerdiv"));
js_download_outerdiv_fade(document.getElementById("download_info_outerdiv_bvp"));
js_download_outerdiv_fade(document.getElementById("download_info_outerdiv_model"));
}
}
</script>
</body>
</html>