Enable Bootstrap tooltips on the site
This commit is contained in:
parent
b354658c4a
commit
63b3956143
2 changed files with 6 additions and 1 deletions
4
assets/scripts/tooltip-enable.js
Normal file
4
assets/scripts/tooltip-enable.js
Normal 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)
|
||||||
|
})
|
|
@ -119,7 +119,8 @@
|
||||||
{{ $jqmaskjs := resources.Get "node_modules/jquery-mask-plugin/dist/jquery.mask.js" }}
|
{{ $jqmaskjs := resources.Get "node_modules/jquery-mask-plugin/dist/jquery.mask.js" }}
|
||||||
{{ $scrolljs := resources.Get "scripts/scroll-effect.js" }}
|
{{ $scrolljs := resources.Get "scripts/scroll-effect.js" }}
|
||||||
{{ $maskjs := resources.Get "scripts/phone-masking.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>
|
<script src="{{ $alljs.Permalink }}"></script>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
Loading…
Reference in a new issue