Enable Bootstrap tooltips on the site

This commit is contained in:
Thomas A. Christensen II 2022-02-14 21:03:46 -06:00
parent b354658c4a
commit 63b3956143
Signed by: millironx
GPG key ID: 139C07724802BC5D
2 changed files with 6 additions and 1 deletions

View file

@ -0,0 +1,4 @@
var tooltipTriggerList = [].slice.call(document.querySelectorAll('[data-bs-toggle="tooltip"]'))
var tooltipList = tooltipTriggerList.map(function (tooltipTriggerEl) {
return new bootstrap.Tooltip(tooltipTriggerEl)
})

View file

@ -119,7 +119,8 @@
{{ $jqmaskjs := resources.Get "node_modules/jquery-mask-plugin/dist/jquery.mask.js" }}
{{ $scrolljs := resources.Get "scripts/scroll-effect.js" }}
{{ $maskjs := resources.Get "scripts/phone-masking.js" }}
{{ $alljs := slice $jqueryjs $popperjs $twbsjs $fajs $fittextjs $scrolljs $jqmaskjs $maskjs | resources.Concat "js/bundle.js" | minify | fingerprint }}
{{ $ttjs := resources.Get "scripts/tooltip-enable.js" }}
{{ $alljs := slice $jqueryjs $popperjs $twbsjs $fajs $fittextjs $scrolljs $jqmaskjs $maskjs $ttjs | resources.Concat "js/bundle.js" | minify | fingerprint }}
<script src="{{ $alljs.Permalink }}"></script>
</body>
</html>