Skip to content

Commit

Permalink
Update scripts.js
Browse files Browse the repository at this point in the history
  • Loading branch information
ahmadzaid1 authored Dec 16, 2024
1 parent 3d8664b commit fd9a318
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions timeLineManager/scripts.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
let events = [];
let scrollPosition = 0;

// Add floating decorations

function addEvent() {
const date = document.getElementById('eventDate').value;
const title = document.getElementById('eventTitle').value;
Expand Down Expand Up @@ -52,7 +50,6 @@ let events = [];
<div class="event-icon">
<i class="fas ${event.icon}"></i>
</div>
<img src="/api/placeholder/300/150" alt="Event Image" class="event-image">
<div class="event-date">${event.date.toLocaleDateString('en-US', {
year: 'numeric',
month: 'long',
Expand Down Expand Up @@ -100,10 +97,7 @@ let events = [];
});
}

// Initialize floating decorations
addFloatingDecorations();

// Save timeline to localStorage whenever it changes
// Save timeline to localStorage whenever it changes
function saveToLocalStorage() {
localStorage.setItem('fantasyTimeline', JSON.stringify(events));
}
Expand Down

0 comments on commit fd9a318

Please sign in to comment.