-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
639 lines (598 loc) · 37.1 KB
/
Copy pathindex.html
File metadata and controls
639 lines (598 loc) · 37.1 KB
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
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title> frontsea_的个人主页</title>
<!--
Sentra Template
https://templatemo.com/tm-518-sentra
-->
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="apple-touch-icon" href="apple-touch-icon.png">
<link rel="stylesheet" href="css/bootstrap.min.css">
<link rel="stylesheet" href="css/bootstrap-theme.min.css">
<link rel="stylesheet" href="css/fontAwesome.css">
<link rel="stylesheet" href="css/light-box.css">
<link rel="stylesheet" href="css/owl-carousel.css">
<link rel="stylesheet" href="css/templatemo-style.css?v=20260705">
<link href="https://fonts.googleapis.com/css?family=Open+Sans:300,400,600,700,800" rel="stylesheet">
<script src="js/vendor/modernizr-2.8.3-respond-1.4.2.min.js"></script>
</head>
<body>
<header class="nav-down responsive-nav hidden-lg hidden-md">
<button type="button" id="nav-toggle" class="navbar-toggle" data-toggle="collapse" data-target="#main-nav">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<!--/.navbar-header-->
<div id="main-nav" class="collapse navbar-collapse">
<nav>
<ul class="nav navbar-nav">
<li><a href="#top">首页 / Home</a></li>
<li><a href="#featured">关于我 / About Me</a></li>
<li><a href="#projects">项目经历 / My Project</a></li>
<li><a href="#video">视频 / Video</a></li>
<li><a href="#blog">动态 / Blog</a></li>
<li><a href="#contact">联系方式 / Contact Me</a></li>
</ul>
</nav>
</div>
</header>
<div class="sidebar-navigation hidde-sm hidden-xs">
<div class="logo">
<a href="#">front<em>sea_</em></a>
</div>
<nav>
<ul>
<li>
<a href="#top">
<span class="rect"></span>
<span class="circle"></span>
首页 / Home
</a>
</li>
<li>
<a href="#featured">
<span class="rect"></span>
<span class="circle"></span>
关于我 / About Me
</a>
</li>
<li>
<a href="#projects">
<span class="rect"></span>
<span class="circle"></span>
项目经历 / My Project
</a>
</li>
<li>
<a href="#video">
<span class="rect"></span>
<span class="circle"></span>
视频 / Video
</a>
</li>
<li>
<a href="#blog">
<span class="rect"></span>
<span class="circle"></span>
动态 / Blog
</a>
</li>
<li>
<a href="#contact">
<span class="rect"></span>
<span class="circle"></span>
联系方式 / Contact Me
</a>
</li>
</ul>
</nav>
<ul class="social-icons">
<li><a href="https://scholar.google.com.hk/citations?user=v_Kon7MAAAAJ&hl=zh-CN"><i class="fa fa-google"></i></a></li>
<li><a href="https://github.com/frontsea320"><i class="fa fa-github"></i></a></li>
<li><a href="https://www.instagram.com/frontsea_0320/?hl=en"><i class="fa fa-instagram"></i></a></li>
<li><a href="https://www.youtube.com/@yuyangsun-q6g"><i class="fa fa-youtube"></i></a></li>
<li><a href="https://www.xiaohongshu.com/user/profile/5f33df7300000000010086c9"><i class="fa fa-book"></i></a></li>
</ul>
</div>
<div class="slider">
<div class="Modern-Slider content-section" id="top">
<!-- Item -->
<div class="item item-1">
<div class="img-fill">
<div class="image"></div>
<div class="info">
<div>
<h1>欢迎来到我的个人主页 <br>我是:frontsea_ </h1>
<p>Welcone to my website, i am frontsea_ <br>这里包含了一部分的我,当然,是大家希望了解的那一部分我 <br><i>留住温度、速度,温柔和愤怒。</i>
</p>
<div class="white-button button">
<a href="#featured">了解更多 / More</a>
</div>
</div>
</div>
</div>
</div>
<!-- // Item -->
<!-- Item -->
<div class="item item-2">
<div class="img-fill">
<div class="image"></div>
<div class="info">
<div>
<h1>我摸索过一些有趣的小东西 <br>也做过一些向下DFS的简单探索 <br>如果你想知道我做过些什么 </h1>
<p>I've fumbled around with some interesting little things
<br>这里会告诉你那些青涩的它们 <br><i>从何时惋惜蝴蝶困于那桃源</i></p>
<div class="white-button button">
<a href="#projects">点击这里 / Here</a>
</div>
</div>
</div>
</div>
</div>
<!-- // Item -->
<!-- Item -->
<div class="item item-3">
<div class="img-fill">
<div class="image"></div>
<div class="info">
<div>
<h1>"我"也不是停滞不前的 <br>在没有更新的日子里 <br>我都在努力更新我的一切</h1>
<p>I will keep updating my news <br>这里会告诉你我最近做了些什么有趣的事情 <br> <i>有雪吧,让记忆景象更深远。</i></p>
<div class="white-button button">
<a href="#blog">欢迎收听 / My Blog</a>
</div>
</div>
</div>
</div>
</div>
<!-- // Item -->
</div>
</div>
<div class="page-content">
<section id="featured" class="content-section">
<div class="section-heading">
<h1>关于我<br><em>About Me</em></h1>
<p>先用几个坐标介绍现在的我,再把更多故事留给详细页面
<br><i>捉紧,生命浓度、坦白流露,感情或态度。</i></p>
</div>
<div class="section-content">
<div class="about-panel">
<div class="about-intro">
<span class="about-label">frontsea_ / Yuyang Sun</span>
<h2>在 AI 研究、文字、影像和一些认真完成的小项目之间移动。</h2>
<p>我即将于 2026 年 9 月进入中国科学技术大学软件学院攻读博士。在研究之外,我也会写作、拍照、做视频,并把一些阶段性的作品放在这里。</p>
<div class="about-actions">
<a href="about.html">详细介绍 / Read More</a>
<a href="cv_en_yuyang_sun.pdf">CV PDF</a>
</div>
</div>
<div class="about-facts">
<div class="about-fact">
<span>Now</span>
<strong>Incoming Ph.D. Student @ USTC</strong>
<p>Software Engineering, expected enrollment in Sept. 2026.</p>
</div>
<div class="about-fact">
<span>Research</span>
<strong>LLM Agents / Generative AI / Medical AI</strong>
<p>Also working on single-cell and spatial omics modeling, long-tailed recognition, and heuristic discovery.</p>
</div>
<div class="about-fact">
<span>Beyond Research</span>
<strong>Writing, photography, video, and small tools</strong>
<p>这里不只记录论文,也记录我如何观察、表达和搭建自己的小世界。</p>
</div>
<div class="about-fact">
<span>Recent</span>
<strong>AAAI 2026 & IJCNN 2025</strong>
<p>WRitEer accepted by AAAI 2026; fracture diagnosis work accepted by IJCNN 2025.</p>
</div>
</div>
</div>
</div>
</section>
<section id="projects" class="content-section">
<div class="section-heading">
<h1>项目经历<br><em>Projects</em></h1>
<p>这里放一些我认真推进过的研究、原型和作品。它们不完全等同于论文列表,
<br>更像是我在不同阶段搭出来的结构、问题和答案
<br><i>流水像清的没带半颗沙。</i>
</p>
</div>
<div class="section-content">
<div class="project-grid">
<article class="project-card project-card-large">
<div class="project-body">
<span class="project-tag">LLM Agents / AAAI 2026</span>
<h4>WRitEer</h4>
<p>A multi-objective, preference-driven multi-agent framework for human-like advanced text generation. I worked on reformulating text generation as an optimization loop with generation, evolution, evaluation, and DPO-based self-evolution.</p>
<div class="project-meta">Co-first author / Corresponding author</div>
</div>
</article>
<article class="project-card">
<div class="project-body">
<span class="project-tag">Medical AI / IJCNN 2025</span>
<h4>Critical Regional & Scale-Aware YOLO</h4>
<p>Enhanced fracture diagnosis in X-ray imaging with regional selective attention and a scale-aware detection head.</p>
<div class="project-meta">First author</div>
</div>
</article>
<article class="project-card">
<div class="project-body">
<span class="project-tag">Medical Imaging</span>
<h4>FracDetNet</h4>
<p>A fracture detection exploration around dual-focus attention and multi-scale calibration for medical X-ray images.</p>
<div class="project-meta">First author / Ongoing extension</div>
</div>
</article>
<article class="project-card text-only">
<div class="project-body">
<span class="project-tag">Single-Cell AI / NeurIPS 2026 Submission</span>
<h4>scUniFlow</h4>
<p>A unified Flow Matching framework for sparse omics enhancement, covering scRNA-seq read-depth enhancement, spatial gene imputation, and scATAC-seq chromatin accessibility imputation.</p>
<div class="project-meta">Research intern @ USTC</div>
</div>
</article>
<article class="project-card text-only">
<div class="project-body">
<span class="project-tag">Single-Cell Dynamics / NeurIPS 2026 Submission</span>
<h4>scFiT</h4>
<p>A target-state Flow Matching framework for learning single-cell developmental dynamics from temporal population snapshots.</p>
<div class="project-meta">Research intern @ USTC</div>
</div>
</article>
<article class="project-card text-only">
<div class="project-body">
<span class="project-tag">Vision / Long-Tailed Recognition</span>
<h4>MemTailor</h4>
<p>A hierarchical memory-augmented multi-expert learning framework for improving long-tailed visual recognition, especially on tail classes.</p>
<div class="project-meta">Research intern @ USTC</div>
</div>
</article>
<article class="project-card text-only">
<div class="project-body">
<span class="project-tag">Text-to-Image / Generative AI</span>
<h4>ArtisanEvo</h4>
<p>A training-free evolutionary inference framework for complex semantic-constrained text-to-image generation.</p>
<div class="project-meta">Research intern @ TeleAI</div>
</div>
</article>
<article class="project-card text-only">
<div class="project-body">
<span class="project-tag">LLM + Optimization</span>
<h4>KA-EAD</h4>
<p>A knowledge-augmented evolutionary algorithm design framework that fuses LLMs with scientific literature for heuristic discovery.</p>
<div class="project-meta">Research intern @ USTC</div>
</div>
</article>
<div class="project-note">
<h4>更多个人作品会继续放进来</h4>
<p>这个区域之后也可以承接摄影、视频、写作、小工具和网页作品。研究项目先占据主体,但它不会是这个网站唯一的叙事。</p>
<a href="#blog">查看动态 / Notes</a>
</div>
</div>
</div>
</section>
<section id="video" class="content-section">
<div class="row">
<div class="col-md-12">
<div class="section-heading">
<h1>这里我还<em>没想好</em> 放一些什么</h1>
<p>也许未来会放一些旅行Vlog或者自我介绍,但是这里我想先放我曾经经历过的的「高中生活」
<br><i>绚烂如电、虚幻如雾,哀愁或仰慕。</i>
</p>
</div>
<div class="text-content">
<p>There should have been an introductory video here, but I haven't recorded it yet, so put a microfilm I shot instead!</p>
</div>
<div class="accent-button button">
<a href="#blog">跳过视频 / Shortcut</a>
</div>
</div>
<div class="col-md-12">
<div class="box-video">
<div class="bg-video" style="background-image: url(https://unsplash.imgix.net/photo-1425036458755-dc303a604201?fit=crop&fm=jpg&q=75&w=1000);">
<div class="bt-play">Play</div>
</div>
<div class="video-container">
<iframe width="100%" height="520" src="https://youtu.be/tzhEuZnsvK8" frameborder="0" allowfullscreen="allowfullscreen"></iframe>
</div>
</div>
</div>
</div>
</section>
<section id="blog" class="content-section">
<div class="section-heading">
<h1>动态<br><em>Blog</em></h1>
<p>或许你想知道我最近在忙些什么 或许又不想 但是这里不可或缺
<br>停滞不代表沉寂 总有一天他会带着新的自己归来<br>I'm busy with a few things, so I'll update here when I'm done
<br><i>不要紧,山野都有雾灯。</i></p>
</div>
<div class="section-content">
<div class="tabs-content">
<div class="wrapper">
<ul class="tabs clearfix" data-tabgroup="first-tab-group">
<li><a href="#tab1" class="active">工作 / Working</a></li>
<li><a href="#tab2">摄影 / Photograph</a></li>
<li><a href="#tab3">随笔 / Writing</a></li>
<li><a href="#tab4">日常 / Daily Life</a></li>
</ul>
<section id="first-tab-group" class="tabgroup">
<div id="tab1">
<ul>
<li>
<div class="item">
<div class="text-content">
<h4>ArtisanEvo planned for AAAI 2027</h4>
<span>2027 · planned submission</span>
<p>Autonomous Evolutionary Inference for Semantic-Constrained Text-to-Image Generation. 这项工作关注复杂文本到图像生成中的多对象、属性绑定、计数和空间关系约束,尝试用训练自由的进化式推理流程改进语义一致性。</p>
</div>
</div>
</li>
<li>
<div class="item">
<div class="text-content">
<h4>scUniFlow submitted to NeurIPS 2026</h4>
<span>2026 · submitted</span>
<p>A Unified Flow Matching Framework for Sparse Omics Enhancement. 这项工作尝试用统一的 Flow Matching 框架处理 scRNA-seq read-depth enhancement、spatial gene imputation 和 scATAC-seq chromatin accessibility imputation。</p>
</div>
</div>
</li>
<li>
<div class="item">
<div class="text-content">
<h4>scFiT submitted to NeurIPS 2026</h4>
<span>2026 · submitted</span>
<p>Learning Single-Cell Developmental Dynamics with Target-State Flow Matching. 这项工作关注 temporal single-cell RNA-seq population snapshots,用 target-state Flow Matching 直接预测 endpoint gene-expression states。</p>
</div>
</div>
</li>
<li>
<div class="item">
<div class="text-content">
<h4>MemTailor submitted to NeurIPS 2026</h4>
<span>2026 · submitted</span>
<p>Hierarchical Memory-Augmented Multi-Expert Learning for Long-Tailed Recognition. 这项工作结合 class-aware memory 和 frequency-aware multi-expert visual backbone,缓解长尾识别中尾部类别证据被遗忘的问题。</p>
</div>
</div>
</li>
<li>
<div class="item">
<div class="text-content">
<h4>scBrain submitted to NeurIPS 2026</h4>
<span>2026 · submitted</span>
<p>Residual Hierarchical Decoding for Spatial Cell-Type Annotation. 这项工作围绕 MERFISH spatial transcriptomics data,对层级脑细胞类型标注中的 foundation models 和经典方法进行系统评估与建模。</p>
</div>
</div>
</li>
<li>
<div class="item">
<div class="text-content">
<h4>WRitEer accepted by AAAI 2026</h4>
<span>2026 · accepted</span>
<p>WRitEer: A Multi-Objective, Preference-Driven Multi-Agent Framework for Human-Like Advanced Text Generation has been accepted by AAAI 2026. 我和 Junchuan Yu 为共同一作,我同时担任通讯作者。</p>
</div>
</div>
</li>
<li>
<div class="item">
<div class="text-content">
<h4>KA-EAD in progress</h4>
<span>2026 · ongoing</span>
<p>Fusing LLMs with Scientific Literature for Heuristic Discovery. 这项工作尝试把科学文献检索、动态 RAG 和 LLM-driven evolutionary algorithm design 结合起来,用于 NP-hard optimization tasks 的启发式发现。</p>
</div>
</div>
</li>
<li>
<div class="item">
<div class="text-content">
<h4>Enhanced Fracture Diagnosis accepted by IJCNN 2025</h4>
<span>2025 · accepted</span>
<p>Enhanced Fracture Diagnosis Based on Critical Regional and Scale Aware in YOLO has been accepted by IJCNN 2025. 这项工作围绕医学 X-ray 骨折检测,尝试用关键区域增强和尺度感知结构提升检测效果。</p>
</div>
</div>
</li>
</ul>
</div>
<div id="tab2">
<ul>
<li>
<div class="item">
<div class="text-content">
<h4>影像还在整理中</h4>
<span>待更新</span>
<p>这一栏之后会放一些摄影和视频相关的记录。它们不一定是完整作品,也可能只是某一次出门、某一段光线、某一个我想留下来的瞬间。</p>
</div>
</div>
</li>
<li>
<div class="item">
<div class="text-content">
<h4>从照片到网页</h4>
<span>计划中</span>
<p>我希望这里以后不是简单堆图,而是把影像、地点和当时的文字一起放进来。图片会等到合适的展示方式再回来。</p>
</div>
</div>
</li>
<li>
<div class="item">
<div class="text-content">
<h4>视频部分暂时保留</h4>
<span>待更新</span>
<p>现在的 Video 区域还只是一个临时容器。之后如果有更适合放在个人站里的短片或介绍,我会再重新安排它的位置。</p>
</div>
</div>
</li>
</ul>
</div>
<div id="tab3">
<ul>
<li>
<div class="item">
<div class="text-content">
<h4>写作不是一个副业,是一种整理</h4>
<span>长期更新</span>
<p>有些想法不适合放进论文,也不适合立刻发出去。这里会慢慢收纳那些关于研究、生活、表达和自我观察的片段。</p>
</div>
</div>
</li>
<li>
<div class="item">
<div class="text-content">
<h4>关于这个网站</h4>
<span>2026</span>
<p>我不想把它改成纯粹的学术主页。它应该有 CV 能证明的东西,也应该有一些无法被 CV 归类的东西。</p>
</div>
</div>
</li>
<li>
<div class="item">
<div class="text-content">
<h4>一些句子会先留下来</h4>
<span>未分类</span>
<p>留住温度、速度,温柔和愤怒。不要紧,山野都有雾灯。它们不解释什么,只负责提醒我为什么还想继续写。</p>
</div>
</div>
</li>
</ul>
</div>
<div id="tab4">
<ul>
<li>
<div class="item">
<div class="text-content">
<h4>网站正在一点点重写</h4>
<span>现在</span>
<p>先从 About、Projects 和 Blog 开始,把模板里不属于我的东西清出去。剩下的部分会慢慢变成真正适合 frontsea_ 的样子。</p>
</div>
</div>
</li>
<li>
<div class="item">
<div class="text-content">
<h4>日常不一定要很完整</h4>
<span>长期更新</span>
<p>日常可能是一些很小的东西:一段路、一首歌、一张照片、一段代码、一件终于做完的小事。它们会在这里留下轻一点的痕迹。</p>
</div>
</div>
</li>
<li>
<div class="item">
<div class="text-content">
<h4>更多内容稍后抵达</h4>
<span>未完待续</span>
<p>这个页面会继续改。等我把研究、作品、影像和文字都整理好,它应该会比现在更像一个真实的人,而不是一个模板。</p>
</div>
</div>
</li>
</ul>
</div>
</section>
</div>
</div>
</div>
</section>
<section id="contact" class="content-section">
<div id="map">
<!-- How to change your own map point
1. Go to Google Maps
2. Click on your location point
3. Click "Share" and choose "Embed map" tab
4. Copy only URL and paste it within the src="" field below
-->
<iframe src="https://www.google.com/maps?q=University%20of%20Science%20and%20Technology%20of%20China%2C%20Hefei%2C%20Anhui%2C%20China&output=embed" width="100%" height="400px" frameborder="0" style="border:0" allowfullscreen></iframe>
</div>
<div id="contact-content">
<div class="section-heading">
<h1>联系方式<br><em>Contact Me</em></h1>
<p>🎉 目前已开通表单提交服务! 但暂时存在 50 message/month 的限制 ~
<br>📮 若没有及时回复请联系:frontsea0320syy@foxmail.com
<br>Contact me by submitting a form or my personal email address
<br><i>奇就奇在接受了各自有路走。</i></p>
</div>
<div class="section-content">
<form id="contact" action="https://formspree.io/f/xkgjzokz" method="post">
<div class="row">
<div class="col-md-4">
<fieldset>
<input name="name" type="text" class="form-control" id="name" placeholder="Your name..." required="">
</fieldset>
</div>
<div class="col-md-4">
<fieldset>
<input name="email" type="email" class="form-control" id="email" placeholder="Your email..." required="">
</fieldset>
</div>
<div class="col-md-4">
<fieldset>
<input name="subject" type="text" class="form-control" id="subject" placeholder="Subject..." required="">
</fieldset>
</div>
<div class="col-md-12">
<fieldset>
<textarea name="message" rows="6" class="form-control" id="message" placeholder="Your message..." required=""></textarea>
</fieldset>
</div>
<div class="col-md-12">
<fieldset>
<button type="submit" id="form-submit" class="btn">期待您的联系! / Send to me</button>
</fieldset>
</div>
</div>
</form>
</div>
</div>
</section>
<section class="footer">
<p>frontsea_ & Yuyang Sun @
frontsea040320@gmail.com</p>
</section>
</div>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js"></script>
<script>window.jQuery || document.write('<script src="js/vendor/jquery-1.11.2.min.js"><\/script>')</script>
<script src="js/vendor/bootstrap.min.js"></script>
<script src="js/plugins.js"></script>
<script src="js/main.js"></script>
<script>
// Hide Header on on scroll down
var didScroll;
var lastScrollTop = 0;
var delta = 5;
var navbarHeight = $('header').outerHeight();
$(window).scroll(function(event){
didScroll = true;
});
setInterval(function() {
if (didScroll) {
hasScrolled();
didScroll = false;
}
}, 250);
function hasScrolled() {
var st = $(this).scrollTop();
// Make sure they scroll more than delta
if(Math.abs(lastScrollTop - st) <= delta)
return;
// If they scrolled down and are past the navbar, add class .nav-up.
// This is necessary so you never see what is "behind" the navbar.
if (st > lastScrollTop && st > navbarHeight){
// Scroll Down
$('header').removeClass('nav-down').addClass('nav-up');
} else {
// Scroll Up
if(st + $(window).height() < $(document).height()) {
$('header').removeClass('nav-up').addClass('nav-down');
}
}
lastScrollTop = st;
}
</script>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js" type="text/javascript"></script>
</body>
</html>