Skip to content

Commit 69354af

Browse files
Sc0rpi0n101anistark
authored andcommitted
Update favicon and fix console errors
1 parent 83e4b30 commit 69354af

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed
39.8 KB
Loading

themes/inpycon2025/templates/base.html

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,11 @@
2727
var ball = document.getElementById('ball');
2828
var scrollPercentage = (document.documentElement.scrollTop + document.body.scrollTop) / (document.documentElement.scrollHeight - document.documentElement.clientHeight);
2929
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+
}
3235
}
3336
// Add scroll event listener
3437
window.addEventListener('scroll', handleScroll);

themes/inpycon2025/templates/components/head.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
<link
1515
rel="icon"
1616
type="image/x-icon"
17-
href="{{ SITEURL }}/theme/images/Group 5263.png" />
17+
href="{{ SITEURL }}/theme/images/favicon.png" />
1818
<link
1919
href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css"
2020
rel="stylesheet"

0 commit comments

Comments
 (0)