Skip to content

Commit

Permalink
Build at Sat 25 May 2024 00:59:00 AM EDT
Browse files Browse the repository at this point in the history
  • Loading branch information
Neet-Nestor committed May 25, 2024
1 parent e03bd0b commit 2a487f9
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 3 deletions.
1 change: 0 additions & 1 deletion docs/assets/css/hero.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/assets/css/hero.css.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/assets/css/main.css.map

Large diffs are not rendered by default.

23 changes: 23 additions & 0 deletions docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,8 @@ <h1>WebLLM: High-Performance In-Browser LLM Serving Engine.</h1>
</section>

<script>
(function() {

function handlerIn(e) {
$(this).addClass("expanded");
}
Expand All @@ -140,6 +142,27 @@ <h1>WebLLM: High-Performance In-Browser LLM Serving Engine.</h1>

$(".chat-link").hover(handlerIn, handlerOut);
$(".github-link").hover(handlerIn, handlerOut);

var video = $("video")[0];
video.play().then((_) => {
let observer = new IntersectionObserver(
(entries) => {
entries.forEach((entry) => {
if (
entry.intersectionRatio !== 1 &&
!video.paused
) {
video.pause();
} else if (video.paused) {
video.play();
}
});
},
{ threshold: 0.2 }
);
observer.observe(video);
});
})()
</script>

<h2 id="overview">Overview</h2>
Expand Down

0 comments on commit 2a487f9

Please sign in to comment.