Small adjustment
This commit is contained in:
@@ -63,7 +63,7 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
const defaultRssUrl = "https://thecafeterium.com/feed"; // Default theCafeterium news feed
|
const defaultRssUrl = "https://thecafeterium.com/feed/"; // Default theCafeterium news feed
|
||||||
|
|
||||||
function fetchRssFeed(rssUrl) {
|
function fetchRssFeed(rssUrl) {
|
||||||
console.log('Fetching RSS feed:', rssUrl);
|
console.log('Fetching RSS feed:', rssUrl);
|
||||||
@@ -102,7 +102,7 @@
|
|||||||
tickerContent.style.animationDuration = `${animationDuration}s`;
|
tickerContent.style.animationDuration = `${animationDuration}s`;
|
||||||
tickerContent.style.animation = 'none'; // Reset animation
|
tickerContent.style.animation = 'none'; // Reset animation
|
||||||
void tickerContent.offsetWidth; // Trigger reflow
|
void tickerContent.offsetWidth; // Trigger reflow
|
||||||
tickerContent.style.animation = 'ticker-scroll ${animationDuration}s linear infinite';
|
tickerContent.style.animation = `ticker-scroll ${animationDuration}s linear infinite`;
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
document.getElementById('ticker-content').textContent = "No headlines found in feed.";
|
document.getElementById('ticker-content').textContent = "No headlines found in feed.";
|
||||||
|
|||||||
Reference in New Issue
Block a user