Skip to content

Commit

Permalink
TCG
Browse files Browse the repository at this point in the history
  • Loading branch information
Bacon_Space committed Sep 27, 2023
1 parent c3e9e60 commit fb5b0d2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions joke/pun/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -111,10 +111,10 @@
.then(response => response.json())
.then(data => {
// Update the joke content
document.getElementById('joke-container').textContent = data.value;
document.getElementById('joke-container').textContent = data.setup + " " + data.punchline;

// Calculate the timestamp using Moment.js
var timestamp = moment().subtract(data.updated_at, 'minutes').fromNow();
var timestamp = moment().subtract(0, 'minutes').fromNow();

// Update the toast timestamp
document.getElementById('toastTimestamp').textContent = timestamp;
Expand Down

0 comments on commit fb5b0d2

Please sign in to comment.