You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
825 B
JavaScript
18 lines
825 B
JavaScript
// TO OPEN ACTION BUTTONS CONTAINER IN TASKS CONTAINER ON MOBILE
|
|
document.addEventListener('DOMContentLoaded', function () {
|
|
var actionsButtons = document.querySelectorAll('.actionsButton');
|
|
|
|
actionsButtons.forEach(function (button) {
|
|
button.addEventListener('click', function () {
|
|
var arrowDown = button.querySelector('.fa-angle-down');
|
|
var arrowUp = button.querySelector('.fa-angle-up');
|
|
|
|
arrowDown.style.display = arrowDown.style.display === 'none' ? 'inline-block' : 'none';
|
|
arrowUp.style.display = arrowUp.style.display === 'none' ? 'inline-block' : 'none';
|
|
|
|
var actionsContainer = button.nextElementSibling;
|
|
actionsContainer.classList.toggle('hidden');
|
|
actionsContainer.classList.toggle('grid');
|
|
});
|
|
});
|
|
}); |