Skip to content

Commit

Permalink
add tooltips
Browse files Browse the repository at this point in the history
  • Loading branch information
fulldecent committed Jul 9, 2023
1 parent 219bb17 commit 86107bf
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -820,6 +820,11 @@ <h6>Other</h6>
var audio = new Audio('/media/pronounce.mp3');
audio.play();
});

// activate tooltips everywhere (if adding to DOM, you must activate those) ////
const tooltipTriggerList = document.querySelectorAll('[title]');
[...tooltipTriggerList].forEach(tooltipTriggerEl => new bootstrap.Tooltip(tooltipTriggerEl));

</script>
<script src="https://cdn.jsdelivr.net/npm/anchor-js@4.3.1/anchor.min.js" integrity="sha256-0WMZ9PF4b2hTF66Eglv/9H5Vwk6lnOG4AbmCJxo96WQ=" crossorigin="anonymous"></script>
<script>
Expand Down

0 comments on commit 86107bf

Please sign in to comment.