-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
391 lines (317 loc) · 22.9 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
<!DOCTYPE html>
<html lang="en">
<!-- Head -->
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <!-- Metadata, OpenGraph and Schema.org -->
<!-- Website verification -->
<meta name="google-site-verification" content="">
<!-- Standard metadata -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>Dr. Lokender Tiwari, Ph.D.</title>
<meta name="author" content="Dr. Lokender Tiwari, Ph.D.">
<meta name="description" content="Dr. Lokender Tiwari, PhD
">
<meta name="keywords" content="Lokender Tiwari, Dr. Lokender Tiwari, Computer Vision, Machine Learning, Artificial Intelligence, Deep Learning, Computer Graphics, Pseudo RGBD, NEC , IIIT Delhi, IIIT, TCS, TCS Research, Research, Cloth Animation, Metaverse, DGSAC, DeepDraper, GarSim, Lokendra, 3D Vision, 3D Computer Vision">
<!-- Bootstrap & MDB -->
<link href="https://cdn.jsdelivr.net/npm/bootstrap@4.6.1/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha256-DF7Zhf293AJxJNTmh5zhoYYIMs2oXitRfBjY+9L//AY=" crossorigin="anonymous">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/mdbootstrap@4.20.0/css/mdb.min.css" integrity="sha256-jpjYvU3G3N6nrrBwXJoVEYI/0zw8htfFnhT9ljN3JJw=" crossorigin="anonymous">
<!-- Fonts & Icons -->
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fortawesome/fontawesome-free@5.15.4/css/all.min.css" integrity="sha256-mUZM63G8m73Mcidfrv5E+Y61y7a12O5mW4ezU3bxqW4=" crossorigin="anonymous">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/academicons@1.9.1/css/academicons.min.css" integrity="sha256-i1+4qU2G2860dGGIOJscdC30s9beBXjFfzjWLjBRsBg=" crossorigin="anonymous">
<link rel="stylesheet" type="text/css" href="https://fonts.googleapis.com/css?family=Roboto:300,400,500,700%7CRoboto+Slab:100,300,400,500,700%7CMaterial+Icons">
<!-- Code Syntax Highlighting -->
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/jwarby/jekyll-pygments-themes@master/github.css" media="" id="highlight_theme_light">
<!-- Styles -->
<link rel="shortcut icon" href="data:image/svg+xml,<svg%20xmlns=%22http://www.w3.org/2000/svg%22%20viewBox=%220%200%20100%20100%22><text%20y=%22.9em%22%20font-size=%2290%22>%E2%9A%9B%EF%B8%8F</text></svg>">
<link rel="stylesheet" href="/assets/css/main.css">
<link rel="canonical" href="http://localhost:4000/">
<!-- Dark Mode -->
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/jwarby/jekyll-pygments-themes@master/native.css" media="none" id="highlight_theme_dark">
<script src="/assets/js/theme.js"></script>
<script src="/assets/js/dark_mode.js"></script>
</head>
<!-- Body -->
<body class="fixed-top-nav ">
<!-- Header -->
<header>
<!-- Nav Bar -->
<nav id="navbar" class="navbar navbar-light navbar-expand-sm fixed-top">
<div class="container">
<!-- Social Icons -->
<div class="navbar-brand social">
<a href="https://scholar.google.com/citations?user=uHfnun4AAAAJ" title="Google Scholar" rel="external nofollow noopener" target="_blank"><i class="ai ai-google-scholar"></i></a>
<a href="https://github.com/lokender" title="GitHub" rel="external nofollow noopener" target="_blank"><i class="fab fa-github"></i></a>
<a href="https://www.linkedin.com/in/lokender" title="LinkedIn" rel="external nofollow noopener" target="_blank"><i class="fab fa-linkedin"></i></a>
<a href="https://twitter.com/lokendertiwari" title="Twitter" rel="external nofollow noopener" target="_blank"><i class="fab fa-twitter"></i></a>
</div>
<!-- Navbar Toggle -->
<button class="navbar-toggler collapsed ml-auto" type="button" data-toggle="collapse" data-target="#navbarNav" aria-controls="navbarNav" aria-expanded="false" aria-label="Toggle navigation">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar top-bar"></span>
<span class="icon-bar middle-bar"></span>
<span class="icon-bar bottom-bar"></span>
</button>
<div class="collapse navbar-collapse text-right" id="navbarNav">
<ul class="navbar-nav ml-auto flex-nowrap">
<!-- About -->
<li class="nav-item active">
<a class="nav-link" href="/">Home<span class="sr-only">(current)</span></a>
</li>
<!-- Other pages -->
<li class="nav-item ">
<a class="nav-link" href="/publications/">Publications</a>
</li>
<li class="nav-item ">
<a class="nav-link" href="/projects/">Selected Projects</a>
</li>
<li class="nav-item ">
<a class="nav-link" href="/photos/">Photos</a>
</li>
<!-- Toogle theme mode -->
<li class="toggle-container">
<button id="light-toggle" title="Change theme">
<i class="fas fa-moon"></i>
<i class="fas fa-sun"></i>
</button>
</li>
</ul>
</div>
</div>
</nav>
<!-- Scrolling Progress Bar -->
<progress id="progress" value="0">
<div class="progress-container">
<span class="progress-bar"></span>
</div>
</progress>
</header>
<!-- Content -->
<div class="container mt-5">
<!-- about.html -->
<div class="post">
<header class="post-header">
<h1 class="post-title">
<span class="font-weight-bold">Dr. Lokender</span> Tiwari, Ph.D.
</h1>
<p class="desc"></p>
</header>
<article>
<div class="profile float-right">
<figure>
<picture>
<source class="responsive-img-srcset" media="(max-width: 480px)" srcset="/assets/img/p1-480.webp"></source>
<source class="responsive-img-srcset" media="(max-width: 800px)" srcset="/assets/img/p1-800.webp"></source>
<source class="responsive-img-srcset" media="(max-width: 1400px)" srcset="/assets/img/p1-1400.webp"></source>
<!-- Fallback to the original file -->
<img src="/assets/img/p1.png" class="img-fluid z-depth-1 rounded-circle" width="auto" height="auto" alt="p1.png" onerror="this.onerror=null; $('.responsive-img-srcset').remove();">
</picture>
</figure>
</div>
<div class="clearfix">
<p>I am a Research Scientist, I lead Visual Computing Group @ <a href="https://www.tcs.com/tcs-research" rel="external nofollow noopener" target="_blank">TCS Research, IIT-Delhi R&I Park</a>. Prior to joining TCS Research, I worked at <a href="https://www.nec-labs.com/research-departments/media-analytics/media-analytics-people" rel="external nofollow noopener" target="_blank">NEC Laboratories America</a>, with <a href="https://www.nec.com/en/global/rd/special/pinnacle/manmohan_chandraker.html" rel="external nofollow noopener" target="_blank">Prof. Manmohan Chandraker</a>, <a href="https://www.linkedin.com/in/quochuytran" rel="external nofollow noopener" target="_blank">Dr. Quoc-Huy Tran</a>, and <a href="https://sites.google.com/view/panji530" rel="external nofollow noopener" target="_blank">Dr. Pan Ji</a> on <a href="https://lokender.github.io/projects/pseudo-rgbd-slam/" rel="external nofollow noopener" target="_blank">self-improving framework for SLAM</a>. I received my PhD from <a href="https://www.iiitd.edu.in/" rel="external nofollow noopener" target="_blank">IIIT-Delhi</a>, with the Doctoral Dissertation Award. I was advised by <a href="https://faculty.iiitd.ac.in/~anands/index.html/" rel="external nofollow noopener" target="_blank">Dr. Saket Anand</a> and funded by prestegious <a href="https://phd.dic.gov.in/" rel="external nofollow noopener" target="_blank">Visvesvarya PhD fellowship</a>. I am the recipient of <a href="https://lokender.github.io/photos/#gold" target="_blank" rel="external nofollow noopener">Chancellor’s Gold Medal</a> for academic excellence in B.Tech (Computer Science and Engineering) 2008-2012.</p>
<ul> <b>email</b> : lokender [dot] tiwari [@] tcs [dot] com , lokender.work [@] gmail [dot] com </ul>
<ul> <b>Research Interests</b>: I actively research in the following areas
<ul> <li> Geometric 3D Perception and Modelling</li>
<li> Neural Physics Based Simulation and Synthesis </li>
<li> Differentiable Graphics and Inverse Rendering </li>
<li> Generative 3D Modeling and Synthesis </li>
<li> Physics-Aware AR/VR/XR </li>
<li> Robust and Reliable Deep Learning </li> </ul>
</ul>
<b>Teaching</b> a <a href="https://lokender.github.io/teaching/COV877.html" rel="external nofollow noopener" target="_blank"> <b>Special Module Course on Generative AI (Image, Video, 3D)</b> </a> <b>at</b> <a href="https://home.iitd.ac.in/" rel="external nofollow noopener" target="_blank"> <b>IIT Delhi</b> </a>.
<hr>
<h2 id="news">News</h2>
<ul>
<li>[2024] Co-organized & delivered <a href="https://3dvss.github.io/" target="_blank"> Tutorial on 3D Garment Modeling & Animation at ICVGIP 2024 </a> </li>
<li>[2024] Co-organized <a href="https://3dvss.github.io/" target="_blank"> 3D Vision Summer School 2024</a> and taught <i></i>Text-to-3D Diffusion Models</i> at <a href="https://iiitb.ac.in/" rel="external nofollow noopener" target="_blank"> IIIT-Bangalore</a> </li>
<li>[2024] Serving Workshop Co-Chair for the <a href="https://www.comsnets.org/cvad_workshop.html" rel="external nofollow noopener" target="_blank"> Connected Vehicles and Autonomous Driving Workshop</a> at <a href="https://www.comsnets.org/" rel="external nofollow noopener" target="_blank"> COMSNETS, 2024</a> </li>
<li>[2023] One US Patent on 3D Garment Draping on 3D Human Body has been <a href="https://patents.google.com/patent/US11778162B2/" target="_blank"> granted </a>.</li>
<li>[2023] One paper accepted to <a href="https://CVPR2023.thecvf.com/home" rel="external nofollow noopener" target="_blank"> CVPR, 2023, Deep Learning for Geometric Computing (<b>Oral</b>) </a> </li>
<li>[2022] One US Patent on Pseudo-RGBD SLAM and Depth Prediction has been <a href="https://patents.google.com/patent/US11468585B2/" target="_blank"> granted </a>. </li>
<li>[2022] One paper accepted to <a href="https://wacv2023.thecvf.com/home" rel="external nofollow noopener" target="_blank"> IEEE WACV, 2023</a> </li>
<li>[2022] Serving Programm Committee Member for the <a href="https://aaai.org/Conferences/AAAI-23/" rel="external nofollow noopener" target="_blank"> AAAI, 2023</a> </li>
<!-- <li>[2022] Serving Technical Programm Committee Member for the <a href="https://www.comsnets.org/cvad_workshop.html" rel="external nofollow noopener" target="_blank"> Connected Vehicles and Autonomous Driving </a> at <a href="https://www.comsnets.org/" rel="external nofollow noopener" target="_blank"> COMSNETS, 2023</a> </li> -->
<li>[2022] One paper accepted to <a href="https://wacv2022.thecvf.com/home" rel="external nofollow noopener" target="_blank"> IEEE WACV, 2022</a> </li>
<li>[2021] 3D Virtual Garment Try-on (DeepDraper) accepted in the <a href="http://iccv2021.thecvf.com/" rel="external nofollow noopener" target="_blank"> ICCV, 2021 </a> <a href="http://montrealrobotics.ca/diff3d/" rel="external nofollow noopener" target="_blank"> Workshop</a> </li>
<li>[2021] Keynote talk on <i>Robust Scene Understanding</i> at the <a href="https://www.bitdurg.ac.in/bitcon2021/keynotes.html" rel="external nofollow noopener" target="_blank">BITCON, 2021</a></li>
<li>[2020] Self-improving SLAM and Depth Predictions accepted in <a href="https://eccv2020.eu/" target="_blank" rel="external nofollow noopener">ECCV 2020</a> </li>
<li>[2020] <i>REGroup</i>. A test time replacement of Softmax for robust predictions, <a href="https://lokender.github.io/REGroup.html" target="_blank" rel="external nofollow noopener">Project Page</a></li>
</ul>
<hr>
<h2 id="talks">Invited Talks/Keynotes</h2>
<ul>
<li> [<b>May, 2024</b>] Invited talk on <i>Unboxing Deep Neural Networks using Information Theory</i> at <a href="https://vit.ac.in/" rel="external nofollow noopener" target="_blank"> VIT- Vellore</a> </li>
<li> [<b>Dec, 2023</b>] Invited Guest Judge for the <i>Project Showcase Event</i> at <a href="https://www.bennett.edu.in/" rel="external nofollow noopener" target="_blank"> Bennett University</a> </li>
<li> [<b>Jan, 2023</b>] Invited talk on <i>Robust Scene Understanding</i> at <a href="https://lu.ma/kdmdelhincr43" rel="external nofollow noopener" target="_blank"> 43rd Kaggle Days Meetup Delhi-NCR</a> </li>
<li> [<b>Nov, 2022</b>] Invited talk on <i>Simultaneous Localization and Mapping (Classical to Leaning Based)</i> at <a href="https://www.cse.iitd.ac.in" rel="external nofollow noopener" target="_blank"> IIT-Delhi</a> hosted by <a href="https://www.cse.iitd.ac.in/~chetan/" rel="external nofollow noopener" target="_blank"> </a> Prof. Chetan Arora </li>
<li> [<b>Oct, 2022</b>] Invited talk on <i>Metaverse: Current and The Future, a Visual Computing Perspective</i> at <a href="https://sushantuniversity.edu.in/school-of-engineering-and-technology" rel="external nofollow noopener" target="_blank"> Sushant University</a>
</li>
<li> [<b>Oct, 2021</b>] Keynote talk on <i>Scene Understanding</i> at <a href="https://www.bitdurg.ac.in/bitcon/bitcon2021/keynotes.html" rel="external nofollow noopener" target="_blank"> BITCON 2021, BITS Durg</a>
</li>
</ul>
<hr>
<h2 id="awards">Awards</h2>
<ul>
<li> Received Young Scientist Research Award, 2023.</a>
</li>
<li> Received <a href="https://www.flipbookpdf.net/web/site/593a0d5023e74e15c0b902e4cd702ae406d83c0aFBP23162779.pdf.html#page/33" rel="external nofollow noopener" target="_blank"> Ph.D. Dissertation Award, 2021</a>
</li>
<li>
<a href="http://wacv18.uccs.us/" target="_blank" rel="external nofollow noopener">IEEE WACV 2018</a> Ph.D. Forum Award. <b>Mentor:</b> Prof. <a href="https://vast.uccs.edu/~tboult/" target="_blank" rel="external nofollow noopener">Terrance Boult</a>
</li>
<li>Best Doctoral Symposium Award (3rd), <a href="https://www.iitg.ac.in/icvgip2016/BestPaperAwards.php" target="_blank" rel="external nofollow noopener">ICVGIP'2016</a>
</li>
<li>2nd Prize, Poster Session, Research Showcase 2017 @ <a href="https://www.iiitd.ac.in/" target="_blank" rel="external nofollow noopener">IIIT-Delhi</a>
</li>
<li>IEEE Signal Processing Society, Travel Award to attend <a href="http://www.2016.ieeeicip.org/ICIP%202016/www2.securecms.com/ICIP2016/default.html" target="_blank" rel="external nofollow noopener">IEEE ICIP 2016</a> </li>
<li>
<a href="https://phd.dic.gov.in/" target="_blank" rel="external nofollow noopener">Visvesvarya Ph.D. Fellowship</a> award, Jul 2014- Dec 2019</li>
<li>MHRD Graduate Fellowship, GATE (Top 4% in India), Jul 2012- Jun 2014</li>
<li>
<a href="https://lokender.github.io/photos/#gold" target="_blank" rel="external nofollow noopener">Chancellor's Gold Medal</a> for academic excellence in undergraduate B.Tech CSE., 2008-2012</li> </ul>
<hr>
<h2 id="mentoring">Mentoring </h2>
<ul> <li><b>Thesis Mentoring</b></li>
<ul>
<li> <a href="https://www.linkedin.com/in/suraj-patni/" rel="external nofollow noopener" target="_blank">Suraj Patni</a> (MS Research AI) at <a href="https://home.iitd.ac.in/" rel="external nofollow noopener" target="_blank">IIT-Delhi</a> with <a href="https://www.cse.iitd.ac.in/~chetan/" rel="external nofollow noopener" target="_blank">Prof. Chetan Arora</a>
</li>
<ul><li> now AI/ML engineer at Qualcomm</li></ul>
<li>
<a href="https://www.linkedin.com/in/karantanwar/" rel="external nofollow noopener" target="_blank">Karan Tanwar</a> (B.Tech and M.Tech CSE Dual Degree) at <a href="https://home.iitd.ac.in/" rel="external nofollow noopener" target="_blank">IIT-Delhi</a> with <a href="https://www.cse.iitd.ac.in/~chetan/" rel="external nofollow noopener" target="_blank">Prof. Chetan Arora</a> </li>
<ul><li> now SDE at Amazon</li></ul>
<li>
<a href="https://anishmadan23.github.io/" rel="external nofollow noopener" target="_blank">Anish Madan</a> (B.Tech CSAM) at <a href="https://www.iiitd.edu.in/" rel="external nofollow noopener" target="_blank">IIIT-Delhi</a> with <a href="https://faculty.iiitd.ac.in/~anands/" rel="external nofollow noopener" target="_blank"> Dr. Saket Anand</a> </li>
<ul> <li> now Research Fellow at <a href="https://www.wadhwaniai.org/" rel="external nofollow noopener" target="_blank"> Wadhwani AI</a> </li> </ul>
</ul>
</ul>
<hr>
<h2 id="talks">Professional Services (Programm Commitee Member and Reviewer)</h2>
<ul>
<li>CVPR, ICCV, ICML, ICLR, WACV, ICME, AAAI-2023, COMSNETS-2023, CVIU, TCSVT, Elsevier Pattern Recognition, IEEE Access, IEEE Sensors</li>
</ul>
<!--- <p align="center"> <a href="mailto:tiwarilokender@gmail.com" ><img src="assets/img/gmail.png" width="45px"></a><a href="mailto:lokender.tiwari@tcs.com" ><img src="assets/img/email.png" width="45px"></a> <a href="https://scholar.google.com/citations?user=uHfnun4AAAAJ&hl=en" ><img src="assets/img/scholar2.png" width="70px"></a> <a href="http://www.linkedin.com/in/lokender/" ><img src="assets/img/linkedin.png" width="45px"></a> <a href="https://github.com/lokender" ><img src="assets/img/github.png" width="70px"></a> <a href="https://twitter.com/LokenderTiwari" ><img src="assets/img/twitter.png" width="50px"></a> </p> --->
</div>
<!-- News -->
<!-- Selected papers -->
<!-- Social -->
</article>
</div>
</div>
<!-- Footer -->
<footer class="fixed-bottom">
<div class="container mt-0">
© Copyright 2023 Dr. Lokender Tiwari, Ph.D.. Powered by <a href="https://jekyllrb.com/" target="_blank" rel="external nofollow noopener">Jekyll</a> with <a href="https://github.com/alshedivat/al-folio" rel="external nofollow noopener" target="_blank">al-folio</a> theme. Hosted by <a href="https://pages.github.com/" target="_blank" rel="external nofollow noopener">GitHub Pages</a>.
</div>
</footer>
<!-- JavaScripts -->
<!-- jQuery -->
<script src="https://cdn.jsdelivr.net/npm/jquery@3.6.0/dist/jquery.min.js" integrity="sha256-/xUj+3OJU5yExlq6GSYGSHk7tPXikynS7ogEvDej/m4=" crossorigin="anonymous"></script>
<!-- Bootsrap & MDB scripts -->
<script src="https://cdn.jsdelivr.net/npm/bootstrap@4.6.1/dist/js/bootstrap.bundle.min.js" integrity="sha256-fgLAgv7fyCGopR/gBNq2iW3ZKIdqIcyshnUULC4vex8=" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/mdbootstrap@4.20.0/js/mdb.min.js" integrity="sha256-NdbiivsvWt7VYCt6hYNT3h/th9vSTL4EDWeGs5SN3DA=" crossorigin="anonymous"></script>
<!-- Masonry & imagesLoaded -->
<script defer src="https://cdn.jsdelivr.net/npm/masonry-layout@4.2.2/dist/masonry.pkgd.min.js" integrity="sha256-Nn1q/fx0H7SNLZMQ5Hw5JLaTRZp0yILA/FRexe19VdI=" crossorigin="anonymous"></script>
<script defer src="https://cdn.jsdelivr.net/npm/imagesloaded@4/imagesloaded.pkgd.min.js"></script>
<script defer src="/assets/js/masonry.js" type="text/javascript"></script>
<!-- Medium Zoom JS -->
<script defer src="https://cdn.jsdelivr.net/npm/medium-zoom@1.0.8/dist/medium-zoom.min.js" integrity="sha256-7PhEpEWEW0XXQ0k6kQrPKwuoIomz8R8IYyuU1Qew4P8=" crossorigin="anonymous"></script>
<script defer src="/assets/js/zoom.js"></script><!-- Load Common JS -->
<script defer src="/assets/js/common.js"></script>
<script async src="https://d1bxh8uas1mnw7.cloudfront.net/assets/embed.js"></script>
<script async src="https://badge.dimensions.ai/badge.js"></script>
<!-- MathJax -->
<script type="text/javascript">
window.MathJax = {
tex: {
tags: 'ams'
}
};
</script>
<script defer type="text/javascript" id="MathJax-script" src="https://cdn.jsdelivr.net/npm/mathjax@3.2.0/es5/tex-mml-chtml.js"></script>
<script defer src="https://polyfill.io/v3/polyfill.min.js?features=es6"></script>
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-7728JLJD0V"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){ window.dataLayer.push(arguments); }
gtag('js', new Date());
gtag('config', 'G-7728JLJD0V');
</script>
<!-- Scrolling Progress Bar -->
<script type="text/javascript">
/*
* This JavaScript code has been adapted from the article
* https://css-tricks.com/reading-position-indicator/ authored by Pankaj Parashar,
* published on the website https://css-tricks.com on the 7th of May, 2014.
* Couple of changes were made to the original code to make it compatible
* with the `al-foio` theme.
*/
const progressBar = $("#progress");
/*
* We set up the bar after all elements are done loading.
* In some cases, if the images in the page are larger than the intended
* size they'll have on the page, they'll be resized via CSS to accomodate
* the desired size. This mistake, however, breaks the computations as the
* scroll size is computed as soon as the elements finish loading.
* To account for this, a minimal delay was introduced before computing the
* values.
*/
window.onload = function () {
setTimeout(progressBarSetup, 50);
};
/*
* We set up the bar according to the browser.
* If the browser supports the progress element we use that.
* Otherwise, we resize the bar thru CSS styling
*/
function progressBarSetup() {
if ("max" in document.createElement("progress")) {
initializeProgressElement();
$(document).on("scroll", function() {
progressBar.attr({ value: getCurrentScrollPosition() });
});
$(window).on("resize", initializeProgressElement);
} else {
resizeProgressBar();
$(document).on("scroll", resizeProgressBar);
$(window).on("resize", resizeProgressBar);
}
}
/*
* The vertical scroll position is the same as the number of pixels that
* are hidden from view above the scrollable area. Thus, a value > 0 is
* how much the user has scrolled from the top
*/
function getCurrentScrollPosition() {
return $(window).scrollTop();
}
function initializeProgressElement() {
let navbarHeight = $("#navbar").outerHeight(true);
$("body").css({ "padding-top": navbarHeight });
$("progress-container").css({ "padding-top": navbarHeight });
progressBar.css({ top: navbarHeight });
progressBar.attr({
max: getDistanceToScroll(),
value: getCurrentScrollPosition(),
});
}
/*
* The offset between the html document height and the browser viewport
* height will be greater than zero if vertical scroll is possible.
* This is the distance the user can scroll
*/
function getDistanceToScroll() {
return $(document).height() - $(window).height();
}
function resizeProgressBar() {
progressBar.css({ width: getWidthPercentage() + "%" });
}
// The scroll ratio equals the percentage to resize the bar
function getWidthPercentage() {
return (getCurrentScrollPosition() / getDistanceToScroll()) * 100;
}
</script>
</body>
</html>