Index
joshstock.in
/
dcef9a4
Source for serving and static templating/compiling of https://joshstock.in.
Download
|
Refs
|
Commit Log
|
Files
|
README
|
LICENSE
Latest Commit
{#}
Time
Hash
Subject
Author
#
(+)
(-)
GPG?
158
14 Jan 2023 23:37
5aaa26a
Website rewrite
Josh Stockin
1
5
0
G
Blob @
joshstock.in
/
site
/
static
/
js
/
banner_scroll.js
application/javascript
200 bytes
download raw
1
let
banner
=
document
.
getElementsByClassName
(
"banner-image"
)[
0
];
2
function
scroll
() {
3
banner
.
style
[
"background-position"
] =
"50% "
+ (
30
- (
document
.
body
.
scrollTop
/
18
)).
toString
() +
"%"
;
4
};
5
scroll
();
6