Skip to content

Commit 1b49712

Browse files
committed
add alias for pong activity
1 parent 5466bee commit 1b49712

File tree

3 files changed

+21
-1
lines changed

3 files changed

+21
-1
lines changed

docs/activities.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1384,7 +1384,7 @@ <h5 class="no-anchor card-title listing-title">
13841384
</div>
13851385
</div></a>
13861386
</div>
1387-
<div class="g-col-1" data-index="34" data-categories="TWlkZGxlJTIwU2Nob29sJTJDSW50cm8lMjBIUyUyQ1BoeXNpY2FsJTIwU2NpZW5jZSUyQ1BoeXNpY3MlMkNKYXZhc2NyaXB0" data-listing-file-modified-sort="1771880861271" data-listing-reading-time-sort="1" data-listing-word-count-sort="78">
1387+
<div class="g-col-1" data-index="34" data-categories="TWlkZGxlJTIwU2Nob29sJTJDSW50cm8lMjBIUyUyQ1BoeXNpY2FsJTIwU2NpZW5jZSUyQ1BoeXNpY3MlMkNKYXZhc2NyaXB0" data-listing-file-modified-sort="1773020493692" data-listing-reading-time-sort="1" data-listing-word-count-sort="78">
13881388
<a href="./projects/pong.html" class="quarto-grid-link">
13891389
<div class="quarto-grid-item card h-100 card-left">
13901390
<p class="card-img-top">

docs/pong/index.html

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
<html xmlns="http://www.w3.org/1999/xhtml">
2+
<head>
3+
<title>Redirect</title>
4+
<script type="text/javascript">
5+
var redirects = {"":"../projects/pong.html"};
6+
var hash = window.location.hash.startsWith('#') ? window.location.hash.slice(1) : window.location.hash;
7+
var redirect = redirects[hash] || redirects[""] || "/";
8+
window.document.title = 'Redirect to ' + redirect;
9+
if (!redirects[hash]) {
10+
redirect = redirect + window.location.hash;
11+
}
12+
redirect = redirect + window.location.search;
13+
window.location.replace(redirect);
14+
</script>
15+
</head>
16+
<body>
17+
</body>
18+
</html>

projects/pong.qmd

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ categories:
77
- Physical Science
88
- Physics
99
- Javascript
10+
aliases:
11+
- /pong
1012
---
1113

1214
In the classic game of Pong, there is a little ball that bounces around off various walls and objects. Importantly, the ball changes direction when it bounces but it never really slows down in speed. This is a big hint that the collisions that the ball is experiencing are elastic collisions.

0 commit comments

Comments
 (0)