Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 7aed6e5707 | |||
| 0746ecd3d1 | |||
| 44d5e206ca |
@@ -63,7 +63,7 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
const defaultRssUrl = "https://www.nasa.gov/news-release/feed/"; // Default NASA 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