Skip to content

Commit

Permalink
music albums
Browse files Browse the repository at this point in the history
  • Loading branch information
mikebrg committed Jan 1, 2025
1 parent 225e242 commit 7b2bd43
Show file tree
Hide file tree
Showing 17 changed files with 187 additions and 119 deletions.
18 changes: 11 additions & 7 deletions music/albums1998.html
Original file line number Diff line number Diff line change
Expand Up @@ -213,14 +213,18 @@ <h5 class="modal-title">Article or Video</h5>
event.preventDefault();
const url = this.href;

// Check if the link is a YouTube link
if (url.includes('youtube')) {
// Embed YouTube video
const videoId = url.split('v=')[1]?.split('&')[0]; // Extract video ID
iframe.src = `https://www.youtube.com/embed/${videoId}`;
} else {
// Load Wikipedia page
if (url.includes('wikipedia')) {
iframe.src = url;
} else if (url.includes('youtube.com')) {
if (url.includes('embed/videoseries')) {
iframe.src = url; // Playlist
} else {
const videoId = url.split('v=')[1]?.split('&')[0];
iframe.src = `https://www.youtube.com/embed/${videoId}`; // Video
}
} else if (url.includes('spotify.com')) {
const spotifyUrl = url.replace('open.spotify.com', 'embed.spotify.com');
iframe.src = spotifyUrl;
}

modal.style.display = 'flex'; // Show modal (flex layout for centering)
Expand Down
18 changes: 11 additions & 7 deletions music/albums2002.html
Original file line number Diff line number Diff line change
Expand Up @@ -213,14 +213,18 @@ <h5 class="modal-title">Article or Video</h5>
event.preventDefault();
const url = this.href;

// Check if the link is a YouTube link
if (url.includes('youtube')) {
// Embed YouTube video
const videoId = url.split('v=')[1]?.split('&')[0]; // Extract video ID
iframe.src = `https://www.youtube.com/embed/${videoId}`;
} else {
// Load Wikipedia page
if (url.includes('wikipedia')) {
iframe.src = url;
} else if (url.includes('youtube.com')) {
if (url.includes('embed/videoseries')) {
iframe.src = url; // Playlist
} else {
const videoId = url.split('v=')[1]?.split('&')[0];
iframe.src = `https://www.youtube.com/embed/${videoId}`; // Video
}
} else if (url.includes('spotify.com')) {
const spotifyUrl = url.replace('open.spotify.com', 'embed.spotify.com');
iframe.src = spotifyUrl;
}

modal.style.display = 'flex'; // Show modal (flex layout for centering)
Expand Down
18 changes: 11 additions & 7 deletions music/albums2003.html
Original file line number Diff line number Diff line change
Expand Up @@ -213,14 +213,18 @@ <h5 class="modal-title">Article or Video</h5>
event.preventDefault();
const url = this.href;

// Check if the link is a YouTube link
if (url.includes('youtube')) {
// Embed YouTube video
const videoId = url.split('v=')[1]?.split('&')[0]; // Extract video ID
iframe.src = `https://www.youtube.com/embed/${videoId}`;
} else {
// Load Wikipedia page
if (url.includes('wikipedia')) {
iframe.src = url;
} else if (url.includes('youtube.com')) {
if (url.includes('embed/videoseries')) {
iframe.src = url; // Playlist
} else {
const videoId = url.split('v=')[1]?.split('&')[0];
iframe.src = `https://www.youtube.com/embed/${videoId}`; // Video
}
} else if (url.includes('spotify.com')) {
const spotifyUrl = url.replace('open.spotify.com', 'embed.spotify.com');
iframe.src = spotifyUrl;
}

modal.style.display = 'flex'; // Show modal (flex layout for centering)
Expand Down
18 changes: 11 additions & 7 deletions music/albums2004.html
Original file line number Diff line number Diff line change
Expand Up @@ -213,14 +213,18 @@ <h5 class="modal-title">Article or Video</h5>
event.preventDefault();
const url = this.href;

// Check if the link is a YouTube link
if (url.includes('youtube')) {
// Embed YouTube video
const videoId = url.split('v=')[1]?.split('&')[0]; // Extract video ID
iframe.src = `https://www.youtube.com/embed/${videoId}`;
} else {
// Load Wikipedia page
if (url.includes('wikipedia')) {
iframe.src = url;
} else if (url.includes('youtube.com')) {
if (url.includes('embed/videoseries')) {
iframe.src = url; // Playlist
} else {
const videoId = url.split('v=')[1]?.split('&')[0];
iframe.src = `https://www.youtube.com/embed/${videoId}`; // Video
}
} else if (url.includes('spotify.com')) {
const spotifyUrl = url.replace('open.spotify.com', 'embed.spotify.com');
iframe.src = spotifyUrl;
}

modal.style.display = 'flex'; // Show modal (flex layout for centering)
Expand Down
18 changes: 11 additions & 7 deletions music/albums2010.html
Original file line number Diff line number Diff line change
Expand Up @@ -213,14 +213,18 @@ <h5 class="modal-title">Article or Video</h5>
event.preventDefault();
const url = this.href;

// Check if the link is a YouTube link
if (url.includes('youtube')) {
// Embed YouTube video
const videoId = url.split('v=')[1]?.split('&')[0]; // Extract video ID
iframe.src = `https://www.youtube.com/embed/${videoId}`;
} else {
// Load Wikipedia page
if (url.includes('wikipedia')) {
iframe.src = url;
} else if (url.includes('youtube.com')) {
if (url.includes('embed/videoseries')) {
iframe.src = url; // Playlist
} else {
const videoId = url.split('v=')[1]?.split('&')[0];
iframe.src = `https://www.youtube.com/embed/${videoId}`; // Video
}
} else if (url.includes('spotify.com')) {
const spotifyUrl = url.replace('open.spotify.com', 'embed.spotify.com');
iframe.src = spotifyUrl;
}

modal.style.display = 'flex'; // Show modal (flex layout for centering)
Expand Down
18 changes: 11 additions & 7 deletions music/albums2011.html
Original file line number Diff line number Diff line change
Expand Up @@ -213,14 +213,18 @@ <h5 class="modal-title">Article or Video</h5>
event.preventDefault();
const url = this.href;

// Check if the link is a YouTube link
if (url.includes('youtube')) {
// Embed YouTube video
const videoId = url.split('v=')[1]?.split('&')[0]; // Extract video ID
iframe.src = `https://www.youtube.com/embed/${videoId}`;
} else {
// Load Wikipedia page
if (url.includes('wikipedia')) {
iframe.src = url;
} else if (url.includes('youtube.com')) {
if (url.includes('embed/videoseries')) {
iframe.src = url; // Playlist
} else {
const videoId = url.split('v=')[1]?.split('&')[0];
iframe.src = `https://www.youtube.com/embed/${videoId}`; // Video
}
} else if (url.includes('spotify.com')) {
const spotifyUrl = url.replace('open.spotify.com', 'embed.spotify.com');
iframe.src = spotifyUrl;
}

modal.style.display = 'flex'; // Show modal (flex layout for centering)
Expand Down
18 changes: 11 additions & 7 deletions music/albums2013.html
Original file line number Diff line number Diff line change
Expand Up @@ -214,14 +214,18 @@ <h5 class="modal-title">Article or Video</h5>
event.preventDefault();
const url = this.href;

// Check if the link is a YouTube link
if (url.includes('youtube')) {
// Embed YouTube video
const videoId = url.split('v=')[1]?.split('&')[0]; // Extract video ID
iframe.src = `https://www.youtube.com/embed/${videoId}`;
} else {
// Load Wikipedia page
if (url.includes('wikipedia')) {
iframe.src = url;
} else if (url.includes('youtube.com')) {
if (url.includes('embed/videoseries')) {
iframe.src = url; // Playlist
} else {
const videoId = url.split('v=')[1]?.split('&')[0];
iframe.src = `https://www.youtube.com/embed/${videoId}`; // Video
}
} else if (url.includes('spotify.com')) {
const spotifyUrl = url.replace('open.spotify.com', 'embed.spotify.com');
iframe.src = spotifyUrl;
}

modal.style.display = 'flex'; // Show modal (flex layout for centering)
Expand Down
18 changes: 11 additions & 7 deletions music/albums2014.html
Original file line number Diff line number Diff line change
Expand Up @@ -213,14 +213,18 @@ <h5 class="modal-title">Article or Video</h5>
event.preventDefault();
const url = this.href;

// Check if the link is a YouTube link
if (url.includes('youtube')) {
// Embed YouTube video
const videoId = url.split('v=')[1]?.split('&')[0]; // Extract video ID
iframe.src = `https://www.youtube.com/embed/${videoId}`;
} else {
// Load Wikipedia page
if (url.includes('wikipedia')) {
iframe.src = url;
} else if (url.includes('youtube.com')) {
if (url.includes('embed/videoseries')) {
iframe.src = url; // Playlist
} else {
const videoId = url.split('v=')[1]?.split('&')[0];
iframe.src = `https://www.youtube.com/embed/${videoId}`; // Video
}
} else if (url.includes('spotify.com')) {
const spotifyUrl = url.replace('open.spotify.com', 'embed.spotify.com');
iframe.src = spotifyUrl;
}

modal.style.display = 'flex'; // Show modal (flex layout for centering)
Expand Down
18 changes: 11 additions & 7 deletions music/albums2017.html
Original file line number Diff line number Diff line change
Expand Up @@ -213,14 +213,18 @@ <h5 class="modal-title">Article or Video</h5>
event.preventDefault();
const url = this.href;

// Check if the link is a YouTube link
if (url.includes('youtube')) {
// Embed YouTube video
const videoId = url.split('v=')[1]?.split('&')[0]; // Extract video ID
iframe.src = `https://www.youtube.com/embed/${videoId}`;
} else {
// Load Wikipedia page
if (url.includes('wikipedia')) {
iframe.src = url;
} else if (url.includes('youtube.com')) {
if (url.includes('embed/videoseries')) {
iframe.src = url; // Playlist
} else {
const videoId = url.split('v=')[1]?.split('&')[0];
iframe.src = `https://www.youtube.com/embed/${videoId}`; // Video
}
} else if (url.includes('spotify.com')) {
const spotifyUrl = url.replace('open.spotify.com', 'embed.spotify.com');
iframe.src = spotifyUrl;
}

modal.style.display = 'flex'; // Show modal (flex layout for centering)
Expand Down
18 changes: 11 additions & 7 deletions music/albums2018.html
Original file line number Diff line number Diff line change
Expand Up @@ -213,14 +213,18 @@ <h5 class="modal-title">Article or Video</h5>
event.preventDefault();
const url = this.href;

// Check if the link is a YouTube link
if (url.includes('youtube')) {
// Embed YouTube video
const videoId = url.split('v=')[1]?.split('&')[0]; // Extract video ID
iframe.src = `https://www.youtube.com/embed/${videoId}`;
} else {
// Load Wikipedia page
if (url.includes('wikipedia')) {
iframe.src = url;
} else if (url.includes('youtube.com')) {
if (url.includes('embed/videoseries')) {
iframe.src = url; // Playlist
} else {
const videoId = url.split('v=')[1]?.split('&')[0];
iframe.src = `https://www.youtube.com/embed/${videoId}`; // Video
}
} else if (url.includes('spotify.com')) {
const spotifyUrl = url.replace('open.spotify.com', 'embed.spotify.com');
iframe.src = spotifyUrl;
}

modal.style.display = 'flex'; // Show modal (flex layout for centering)
Expand Down
18 changes: 11 additions & 7 deletions music/albums2019.html
Original file line number Diff line number Diff line change
Expand Up @@ -213,14 +213,18 @@ <h5 class="modal-title">Article or Video</h5>
event.preventDefault();
const url = this.href;

// Check if the link is a YouTube link
if (url.includes('youtube')) {
// Embed YouTube video
const videoId = url.split('v=')[1]?.split('&')[0]; // Extract video ID
iframe.src = `https://www.youtube.com/embed/${videoId}`;
} else {
// Load Wikipedia page
if (url.includes('wikipedia')) {
iframe.src = url;
} else if (url.includes('youtube.com')) {
if (url.includes('embed/videoseries')) {
iframe.src = url; // Playlist
} else {
const videoId = url.split('v=')[1]?.split('&')[0];
iframe.src = `https://www.youtube.com/embed/${videoId}`; // Video
}
} else if (url.includes('spotify.com')) {
const spotifyUrl = url.replace('open.spotify.com', 'embed.spotify.com');
iframe.src = spotifyUrl;
}

modal.style.display = 'flex'; // Show modal (flex layout for centering)
Expand Down
18 changes: 11 additions & 7 deletions music/albums2020.html
Original file line number Diff line number Diff line change
Expand Up @@ -213,14 +213,18 @@ <h5 class="modal-title">Article or Video</h5>
event.preventDefault();
const url = this.href;

// Check if the link is a YouTube link
if (url.includes('youtube')) {
// Embed YouTube video
const videoId = url.split('v=')[1]?.split('&')[0]; // Extract video ID
iframe.src = `https://www.youtube.com/embed/${videoId}`;
} else {
// Load Wikipedia page
if (url.includes('wikipedia')) {
iframe.src = url;
} else if (url.includes('youtube.com')) {
if (url.includes('embed/videoseries')) {
iframe.src = url; // Playlist
} else {
const videoId = url.split('v=')[1]?.split('&')[0];
iframe.src = `https://www.youtube.com/embed/${videoId}`; // Video
}
} else if (url.includes('spotify.com')) {
const spotifyUrl = url.replace('open.spotify.com', 'embed.spotify.com');
iframe.src = spotifyUrl;
}

modal.style.display = 'flex'; // Show modal (flex layout for centering)
Expand Down
18 changes: 11 additions & 7 deletions music/albums2021.html
Original file line number Diff line number Diff line change
Expand Up @@ -213,14 +213,18 @@ <h5 class="modal-title">Article or Video</h5>
event.preventDefault();
const url = this.href;

// Check if the link is a YouTube link
if (url.includes('youtube')) {
// Embed YouTube video
const videoId = url.split('v=')[1]?.split('&')[0]; // Extract video ID
iframe.src = `https://www.youtube.com/embed/${videoId}`;
} else {
// Load Wikipedia page
if (url.includes('wikipedia')) {
iframe.src = url;
} else if (url.includes('youtube.com')) {
if (url.includes('embed/videoseries')) {
iframe.src = url; // Playlist
} else {
const videoId = url.split('v=')[1]?.split('&')[0];
iframe.src = `https://www.youtube.com/embed/${videoId}`; // Video
}
} else if (url.includes('spotify.com')) {
const spotifyUrl = url.replace('open.spotify.com', 'embed.spotify.com');
iframe.src = spotifyUrl;
}

modal.style.display = 'flex'; // Show modal (flex layout for centering)
Expand Down
18 changes: 11 additions & 7 deletions music/albums2022.html
Original file line number Diff line number Diff line change
Expand Up @@ -214,14 +214,18 @@ <h5 class="modal-title">Article or Video</h5>
event.preventDefault();
const url = this.href;

// Check if the link is a YouTube link
if (url.includes('youtube')) {
// Embed YouTube video
const videoId = url.split('v=')[1]?.split('&')[0]; // Extract video ID
iframe.src = `https://www.youtube.com/embed/${videoId}`;
} else {
// Load Wikipedia page
if (url.includes('wikipedia')) {
iframe.src = url;
} else if (url.includes('youtube.com')) {
if (url.includes('embed/videoseries')) {
iframe.src = url; // Playlist
} else {
const videoId = url.split('v=')[1]?.split('&')[0];
iframe.src = `https://www.youtube.com/embed/${videoId}`; // Video
}
} else if (url.includes('spotify.com')) {
const spotifyUrl = url.replace('open.spotify.com', 'embed.spotify.com');
iframe.src = spotifyUrl;
}

modal.style.display = 'flex'; // Show modal (flex layout for centering)
Expand Down
18 changes: 11 additions & 7 deletions music/albums2023.html
Original file line number Diff line number Diff line change
Expand Up @@ -219,14 +219,18 @@ <h5 class="modal-title">Article or Video</h5>
event.preventDefault();
const url = this.href;

// Check if the link is a YouTube link
if (url.includes('youtube')) {
// Embed YouTube video
const videoId = url.split('v=')[1]?.split('&')[0]; // Extract video ID
iframe.src = `https://www.youtube.com/embed/${videoId}`;
} else {
// Load Wikipedia page
if (url.includes('wikipedia')) {
iframe.src = url;
} else if (url.includes('youtube.com')) {
if (url.includes('embed/videoseries')) {
iframe.src = url; // Playlist
} else {
const videoId = url.split('v=')[1]?.split('&')[0];
iframe.src = `https://www.youtube.com/embed/${videoId}`; // Video
}
} else if (url.includes('spotify.com')) {
const spotifyUrl = url.replace('open.spotify.com', 'embed.spotify.com');
iframe.src = spotifyUrl;
}

modal.style.display = 'flex'; // Show modal (flex layout for centering)
Expand Down
Loading

0 comments on commit 7b2bd43

Please sign in to comment.