diff options
author | Hygna <hygna@proton.me> | 2022-10-03 21:42:33 +0100 |
---|---|---|
committer | Hygna <hygna@proton.me> | 2022-10-03 21:42:33 +0100 |
commit | 8687b705852347731e51151d96c1674e4d24cc34 (patch) | |
tree | 9d2401f07edd1d2cea9ae9f8d2db7f11b7bbac7a /src | |
parent | Squashed many bugs (diff) | |
download | libredirect-8687b705852347731e51151d96c1674e4d24cc34.zip |
Switched to html labels
Diffstat (limited to 'src')
-rw-r--r-- | src/pages/options/index.html | 36 | ||||
-rw-r--r-- | src/pages/options/widgets/general.ejs | 2 |
2 files changed, 19 insertions, 19 deletions
diff --git a/src/pages/options/index.html b/src/pages/options/index.html index d79da014..a3afec55 100644 --- a/src/pages/options/index.html +++ b/src/pages/options/index.html @@ -182,56 +182,56 @@ <div> <div> <img src="../../../assets/images/youtube-icon.png"> - <x data-localise="__MSG_youtube__" label="youtube">Youtube</x> + <label data-localise="__MSG_youtube__" for="youtube">Youtube</label> </div> <input id="youtube" type="checkbox"> </div> <div> <div> <img src="../../../assets/images/youtubeMusic-icon.png"> - <x data-localise="__MSG_youtubeMusic__" label="youtubeMusic">YT Music</x> + <label data-localise="__MSG_youtubeMusic__" for="youtubeMusic">YT Music</label> </div> <input id="youtubeMusic" type="checkbox"> </div> <div> <div> <img src="../../../assets/images/twitter-icon.png"> - <x data-localise="__MSG_twitter__" label="twitter">Twitter</x> + <label data-localise="__MSG_twitter__" for="twitter">Twitter</label> </div> <input id="twitter" type="checkbox"> </div> <div> <div> <img src="../../../assets/images/instagram-icon.png"> - <x data-localise="__MSG_instagram__" label="instagram">Instagram</x> + <label data-localise="__MSG_instagram__" for="instagram">Instagram</label> </div> <input id="instagram" type="checkbox"> </div> <div> <div> <img src="../../../assets/images/tiktok-icon.png"> - <x data-localise="__MSG_tiktok__" label="tiktok">TikTok</x> + <label data-localise="__MSG_tiktok__" for="tiktok">TikTok</label> </div> <input id="tiktok" type="checkbox"> </div> <div> <div> <img src="../../../assets/images/reddit-icon.png"> - <x data-localise="__MSG_reddit__" label="reddit">Reddit</x> + <label data-localise="__MSG_reddit__" for="reddit">Reddit</label> </div> <input id="reddit" type="checkbox"> </div> <div> <div> <img src="../../../assets/images/imgur-icon.png"> - <x data-localise="__MSG_imgur__" label="imgur">Imgur</x> + <label data-localise="__MSG_imgur__" for="imgur">Imgur</label> </div> <input id="imgur" type="checkbox"> </div> <div> <div> <img src="../../../assets/images/wikipedia-icon.svg"> - <x data-localise="__MSG_wikipedia__" label="wikipedia">Wikipedia</x> + <label data-localise="__MSG_wikipedia__" for="wikipedia">Wikipedia</label> </div> <input id="wikipedia" type="checkbox"> </div> @@ -243,42 +243,42 @@ <ellipse cx="1682" cy="502" rx="88" ry="424"></ellipse> </svg> - <x data-localise="__MSG_medium__" label="medium">Medium</x> + <label data-localise="__MSG_medium__" for="medium">Medium</label> </div> <input id="medium" type="checkbox"> </div> <div> <div> <img src="../../../assets/images/quora-icon.png"> - <x data-localise="__MSG_quora__" label="quora">Quora</x> + <label data-localise="__MSG_quora__" for="quora">Quora</label> </div> <input id="quora" type="checkbox"> </div> <div> <div> <img src="../../../assets/images/imdb-icon.svg"> - <x data-localise="__MSG_imdb__" label="imdb">IMDb</x> + <label data-localise="__MSG_imdb__" for="imdb">IMDb</label> </div> <input id="imdb" type="checkbox"> </div> <div> <div> <img src="../../../assets/images/reuters-icon.svg"> - <x data-localise="__MSG_reuters__" label="reuters">Reuters</x> + <label data-localise="__MSG_reuters__" for="reuters">Reuters</label> </div> <input id="reuters" type="checkbox"> </div> <div> <div> <img src="../../../assets/images/peertube-icon.svg"> - <x data-localise="__MSG_peertube__" label="peertube">PeerTube</x> + <label data-localise="__MSG_peertube__" for="peertube">PeerTube</label> </div> <input id="peertube" type="checkbox"> </div> <div> <div> <img src="../../../assets/images/lbry-icon.png"> - <x data-localise="__MSG_lbry__" label="lbry">LBRY</x> + <label data-localise="__MSG_lbry__" for="lbry">LBRY</label> </div> <input id="lbry" type="checkbox"> </div> @@ -288,7 +288,7 @@ <path d="M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"></path> </svg> - <x data-localise="__MSG_search__" label="search">Search</x> + <label data-localise="__MSG_search__" for="search">Search</label> </div> <input id="search" type="checkbox"> </div> @@ -298,7 +298,7 @@ <path d="M12.87 15.07l-2.54-2.51.03-.03c1.74-1.94 2.98-4.17 3.71-6.53H17V4h-7V2H8v2H1v1.99h11.17C11.5 7.92 10.44 9.75 9 11.35 8.07 10.32 7.3 9.19 6.69 8h-2c.73 1.63 1.73 3.17 2.98 4.56l-5.09 5.02L4 19l5-5 3.11 3.11.76-2.04zM18.5 10h-2L12 22h2l1.12-3h4.75L21 22h2l-4.5-12zm-2.62 7l1.62-4.33L19.12 17h-3.24z"></path> </svg> - <x data-localise="__MSG_translate__" label="translate">Translate</x> + <label data-localise="__MSG_translate__" for="translate">Translate</label> </div> <input id="translate" type="checkbox"> </div> @@ -308,7 +308,7 @@ <path d="M20.5 3l-.16.03L15 5.1 9 3 3.36 4.9c-.21.07-.36.25-.36.48V20.5c0 .28.22.5.5.5l.16-.03L9 18.9l6 2.1 5.64-1.9c.21-.07.36-.25.36-.48V3.5c0-.28-.22-.5-.5-.5zM10 5.47l4 1.4v11.66l-4-1.4V5.47zm-5 .99l3-1.01v11.7l-3 1.16V6.46zm14 11.08l-3 1.01V6.86l3-1.16v11.84z"></path> </svg> - <x data-localise="__MSG_maps__" label="maps">Maps</x> + <label data-localise="__MSG_maps__" for="maps">Maps</label> </div> <input id="maps" type="checkbox"> </div> @@ -318,7 +318,7 @@ <path d="M19.35 10.04C18.67 6.59 15.64 4 12 4 9.11 4 6.6 5.64 5.35 8.04 2.34 8.36 0 10.91 0 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.65-4.96zM14 13v4h-4v-4H7l5-5 5 5h-3z"></path> </svg> - <x data-localise="__MSG_sendFiles__" label="sendFiles">Send Files</x> + <label data-localise="__MSG_sendFiles__" for="sendFiles">Send Files</label> </div> <input id="sendFiles" type="checkbox"> </div> diff --git a/src/pages/options/widgets/general.ejs b/src/pages/options/widgets/general.ejs index 77028ac2..e24046db 100644 --- a/src/pages/options/widgets/general.ejs +++ b/src/pages/options/widgets/general.ejs @@ -92,7 +92,7 @@ <% } else { _%> <%- include ('src/assets/images/' + service + '-icon.svg') %> <% } _%> - <x data-localise="__MSG_<%= service %>__" label="<%= service %>"><%= config.services[service].name %></x> + <label data-localise="__MSG_<%= service %>__" for="<%= service %>"><%= config.services[service].name %></label> </div> <input id="<%= service %>" type="checkbox"> </div> |