bs-init.js 685 B

123456789101112131415161718192021
  1. if (window.innerWidth < 768) {
  2. [].slice.call(document.querySelectorAll('[data-bss-disabled-mobile]')).forEach(function (elem) {
  3. elem.classList.remove('animated');
  4. elem.removeAttribute('data-bss-hover-animate');
  5. elem.removeAttribute('data-aos');
  6. elem.removeAttribute('data-bss-parallax-bg');
  7. elem.removeAttribute('data-bss-scroll-zoom');
  8. });
  9. }
  10. document.addEventListener('DOMContentLoaded', function () {
  11. if ('AOS' in window) {
  12. AOS.init();
  13. }
  14. var tooltipTriggerList = [].slice.call(document.querySelectorAll('[data-bss-tooltip]'));
  15. var tooltipList = tooltipTriggerList.map(function (tooltipTriggerEl) {
  16. return new bootstrap.Tooltip(tooltipTriggerEl);
  17. })
  18. }, false);