File tree Expand file tree Collapse file tree 3 files changed +6
-3
lines changed Expand file tree Collapse file tree 3 files changed +6
-3
lines changed Original file line number Diff line number Diff line change 27
27
var ball = document . getElementById ( 'ball' ) ;
28
28
var scrollPercentage = ( document . documentElement . scrollTop + document . body . scrollTop ) / ( document . documentElement . scrollHeight - document . documentElement . clientHeight ) ;
29
29
var newSize = 100 + scrollPercentage * 1000 ; // Adjust this value to control the maximum size of the ball
30
- ball . style . width = newSize + 'px' ;
31
- ball . style . height = newSize + 'px' ;
30
+ if ( ball !== null ) {
31
+ // Set the new size of the ball
32
+ ball . style . width = newSize + 'px' ;
33
+ ball . style . height = newSize + 'px' ;
34
+ }
32
35
}
33
36
// Add scroll event listener
34
37
window . addEventListener ( 'scroll' , handleScroll ) ;
Original file line number Diff line number Diff line change 14
14
< link
15
15
rel ="icon "
16
16
type ="image/x-icon "
17
- href ="{{ SITEURL }}/theme/images/Group 5263 .png " />
17
+ href ="{{ SITEURL }}/theme/images/favicon .png " />
18
18
< link
19
19
href ="
https://cdn.jsdelivr.net/npm/[email protected] /dist/css/bootstrap.min.css "
20
20
rel ="stylesheet "
You can’t perform that action at this time.
0 commit comments