cheat-sheet: Add tooltip to copy hex code

[why]
With commit
  6e361d40c  cheat-sheet: Allow click to copy on hex value

(on branch gh-pages) we add the possibility to copy the raw hex code by
clicking on the hex number.

It would be more obvious if there is a tooltip.

[how]
Add tooltip via 'title' in cheat-sheet generator script.

Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
This commit is contained in:
Fini Jastrow 2023-01-25 19:55:32 +01:00 committed by Fini
parent bd9258d654
commit 643cf84240

View file

@ -85,7 +85,7 @@ for var in "${!i@}"; do
printf "\\n" printf "\\n"
printf " <div class=\"nf nf-%s center\"></div>" "$glyph_name" printf " <div class=\"nf nf-%s center\"></div>" "$glyph_name"
printf "\\n" printf "\\n"
printf " <div class=\"class-name\">nf-%s</div><div class=\"codepoint\">%s</div>" "$glyph_name" "$glyph_code" printf " <div class=\"class-name\">nf-%s</div><div title=\"Copy Hex Code to Clipboard\" class=\"codepoint\">%s</div>" "$glyph_name" "$glyph_code"
printf "\\n" printf "\\n"
printf " </div>" printf " </div>"
printf "\\n" printf "\\n"