sigit_design/assets/js/pageActionView.js
2024-07-25 19:16:25 +03:00

13 lines
575 B
JavaScript

document.getElementById('pageActionTrigger').addEventListener('click', function() {
var filesPageSecMidActionsWrapper = document.querySelector('.filesPageSecMidActionsWrapper');
var svgElement = document.querySelector('#pageActionTrigger svg');
if (filesPageSecMidActionsWrapper.style.display === 'none') {
filesPageSecMidActionsWrapper.style.display = 'flex';
svgElement.style.transform = 'rotate(180deg)';
} else {
filesPageSecMidActionsWrapper.style.display = 'none';
svgElement.style.transform = 'rotate(0deg)';
}
});