10
0
mirror of https://github.com/LCPQ/QUESTDB_website.git synced 2024-07-03 18:06:06 +02:00

Improve emoji accessibility

This commit is contained in:
Mickaël Véril 2020-02-04 10:48:11 +01:00
parent f9bf435b80
commit dfa4a16f35

View File

@ -421,7 +421,7 @@ draft: false
if (kv !== undefined) {
const [val, unsafe] = kv[1]
if (unsafe) {
td.append($("<span/>", { title: "unsafe value", style: "font-family: color-emoji;" }).text('⚠'))
td.append($("<span/>", { title: "unsafe value", role:"img", "aria-label":"Warning", style: "font-family: color-emoji;" }).text('⚠'))
}
if (unsafe && !$("#cb_unsafe").is(':checked')) {
td.append($("<s/>").append(val.toString()))
@ -448,7 +448,7 @@ draft: false
{{< getDataFilesName >}}
<noscript>
<p style="background-color: red; color: white; font-size: 20; font-weight: bold;">
<span role="img" style="font-family: color-emoji; font-weight: normal;"></span>
<span role="img" aria-label="Warning" style="font-family: color-emoji; font-weight: normal;"></span>
<span>This website work only if JavaScript is enable. You must enable
JavaScript.
<a href="https://www.enable-javascript.com/" target="_blank">How to enable JavaScript ?</a></span>