mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2025-08-10 08:18:01 +00:00
Add the 2024 yearly report to the blog
This commit is contained in:
parent
b7907bc96f
commit
ab724d8b00
6 changed files with 251 additions and 5 deletions
|
@ -2,7 +2,8 @@ window.addEventListener("DOMContentLoaded", () => {
|
|||
document.querySelectorAll("[data-youtube-embed]").forEach((placeholder) => {
|
||||
placeholder.addEventListener("click", () => {
|
||||
const videoId = placeholder.attributes["data-youtube-embed"].value;
|
||||
placeholder.outerHTML = `<iframe width="1280" height="720" src="https://www.youtube.com/embed/${videoId}?autoplay=1" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>`;
|
||||
const timestamp = placeholder.attributes["data-youtube-timestamp"]?.value
|
||||
placeholder.outerHTML = `<iframe width="1280" height="720" src="https://www.youtube.com/embed/${videoId}?${timestamp ? `start=${timestamp}&` : ""}autoplay=1" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>`;
|
||||
});
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue