Topbar download button - #1299
Draft
kelson42 wants to merge 3 commits into
Draft
Conversation
kelson42
marked this pull request as draft
May 11, 2026 04:03
Comment on lines
+66
to
+116
| document.body.insertAdjacentHTML('beforeend', `<div class="modal-wrapper"> | ||
| <div class="modal"> | ||
| <div class="modal-heading"> | ||
| <div class="modal-title"> | ||
| <div> | ||
| ${downloadButtonText(downloadSize)} | ||
| </div> | ||
| </div> | ||
| <div onclick="closeModal()" class="modal-close-button"> | ||
| <div> | ||
| <svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" viewBox="0 0 14 14" fill="none"> | ||
| <path fill-rule="evenodd" clip-rule="evenodd" d="M13.7071 1.70711C14.0976 1.31658 14.0976 | ||
| 0.683417 13.7071 0.292893C13.3166 -0.0976311 12.6834 -0.0976311 12.2929 0.292893L7 5.58579L1.70711 | ||
| 0.292893C1.31658 -0.0976311 0.683417 -0.0976311 0.292893 0.292893C-0.0976311 0.683417 | ||
| -0.0976311 1.31658 0.292893 1.70711L5.58579 7L0.292893 12.2929C-0.0976311 12.6834 | ||
| -0.0976311 13.3166 0.292893 13.7071C0.683417 14.0976 1.31658 14.0976 1.70711 13.7071L7 | ||
| 8.41421L12.2929 13.7071C12.6834 14.0976 13.3166 14.0976 13.7071 13.7071C14.0976 13.3166 | ||
| 14.0976 12.6834 13.7071 12.2929L8.41421 7L13.7071 1.70711Z" fill="black" /> | ||
| </svg> | ||
| </div> | ||
| </div> | ||
| </div> | ||
| <div class="modal-content"> | ||
| <div class="modal-regular-download"> | ||
| <a href="${downloadLink}" download> | ||
| <img src="${root}/skin/download.png?KIWIXCACHEID" alt="${$t("direct-download-alt-text")}" /> | ||
| <div>${$t("direct-download-link-text")}</div> | ||
| </a> | ||
| </div> | ||
| <div class="modal-regular-download"> | ||
| <a href="${downloadLink}.sha256" download> | ||
| <img src="${root}/skin/hash.png?KIWIXCACHEID" alt="${$t("hash-download-alt-text")}" /> | ||
| <div>${$t("hash-download-link-text")}</div> | ||
| </a> | ||
| </div> | ||
| ${magnetLink ? | ||
| `<div class="modal-regular-download"> | ||
| <a href="${magnetLink}" target="_blank"> | ||
| <img src="${root}/skin/magnet.png?KIWIXCACHEID" alt="${$t("magnet-alt-text")}" /> | ||
| <div>${$t("magnet-link-text")}</div> | ||
| </a> | ||
| </div>` : ``} | ||
| <div class="modal-regular-download"> | ||
| <a href="${downloadLink}.torrent" download> | ||
| <img src="${root}/skin/bittorrent.png?KIWIXCACHEID" alt="${$t("torrent-download-alt-text")}" /> | ||
| <div>${$t("torrent-download-link-text")}</div> | ||
| </a> | ||
| </div> | ||
| </div> | ||
| </div> | ||
| </div>`); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #1083