sigit_design/assets/js/pageActionView.js

13 lines
575 B
JavaScript
Raw Normal View History

2024-07-25 16:16:25 +00:00
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)';
}
});