This repository has been archived by the owner on May 31, 2024. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #75 from hardingadonis/vuong-dashboard
Fix js, css, jsp
- Loading branch information
Showing
5 changed files
with
35 additions
and
25 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,28 @@ | ||
|
||
if (window.innerWidth < 768) { | ||
[].slice.call(document.querySelectorAll('[data-bss-disabled-mobile]')).forEach(function (elem) { | ||
elem.classList.remove('animated'); | ||
elem.removeAttribute('data-bss-hover-animate'); | ||
elem.removeAttribute('data-aos'); | ||
elem.removeAttribute('data-bss-parallax-bg'); | ||
elem.removeAttribute('data-bss-scroll-zoom'); | ||
}); | ||
[].slice.call(document.querySelectorAll('[data-bss-disabled-mobile]')).forEach(function (elem) { | ||
elem.classList.remove('animated'); | ||
elem.removeAttribute('data-bss-hover-animate'); | ||
elem.removeAttribute('data-aos'); | ||
elem.removeAttribute('data-bss-parallax-bg'); | ||
elem.removeAttribute('data-bss-scroll-zoom'); | ||
}); | ||
} | ||
|
||
document.addEventListener('DOMContentLoaded', function() { | ||
document.addEventListener('DOMContentLoaded', function () { | ||
|
||
var hoverAnimationTriggerList = [].slice.call(document.querySelectorAll('[data-bss-hover-animate]')); | ||
var hoverAnimationList = hoverAnimationTriggerList.forEach(function (hoverAnimationEl) { | ||
hoverAnimationEl.addEventListener('mouseenter', function(e){ e.target.classList.add('animated', e.target.dataset.bssHoverAnimate) }); | ||
hoverAnimationEl.addEventListener('mouseleave', function(e){ e.target.classList.remove('animated', e.target.dataset.bssHoverAnimate) }); | ||
}); | ||
var hoverAnimationTriggerList = [].slice.call(document.querySelectorAll('[data-bss-hover-animate]')); | ||
var hoverAnimationList = hoverAnimationTriggerList.forEach(function (hoverAnimationEl) { | ||
hoverAnimationEl.addEventListener('mouseenter', function (e) { | ||
e.target.classList.add('animated', e.target.dataset.bssHoverAnimate) | ||
}); | ||
hoverAnimationEl.addEventListener('mouseleave', function (e) { | ||
e.target.classList.remove('animated', e.target.dataset.bssHoverAnimate) | ||
}); | ||
}); | ||
|
||
var tooltipTriggerList = [].slice.call(document.querySelectorAll('[data-bss-tooltip]')); | ||
var tooltipList = tooltipTriggerList.map(function (tooltipTriggerEl) { | ||
return new bootstrap.Tooltip(tooltipTriggerEl); | ||
}) | ||
|
||
var charts = document.querySelectorAll('[data-bss-chart]'); | ||
|
||
for (var chart of charts) { | ||
chart.chart = new Chart(chart, JSON.parse(chart.dataset.bssChart)); | ||
} | ||
var tooltipTriggerList = [].slice.call(document.querySelectorAll('[data-bss-tooltip]')); | ||
var tooltipList = tooltipTriggerList.map(function (tooltipTriggerEl) { | ||
return new bootstrap.Tooltip(tooltipTriggerEl); | ||
}) | ||
}, false); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters