Sha256: 28b8b96f3e9ec74cc676ef377ce692816b5dea3d34870c0d4b803ad643f09e16

Contents?: true

Size: 405 Bytes

Versions: 8

Compression:

Stored size: 405 Bytes

Contents

document.addEventListener('DOMContentLoaded', function () {
    const folders = document.querySelectorAll('.folder');

    folders.forEach(folder => {
      folder.addEventListener('click', function () {
        const nextElement = this.nextElementSibling;
        if (nextElement.classList.contains('nested-list-group')) {
          nextElement.classList.toggle('show');
        }
      });
    });
  });

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
jekyll-theme-zer0-0.1.7 assets/js/side-bar-folders.js
jekyll-theme-zer0-0.1.6 assets/js/side-bar-folders.js
jekyll-theme-zer0-0.1.5 assets/js/side-bar-folders.js
jekyll-theme-zer0-0.1.4 assets/js/side-bar-folders.js
jekyll-theme-zer0-0.1.3 assets/js/side-bar-folders.js
jekyll-theme-zer0-0.1.2 assets/js/side-bar-folders.js
jekyll-theme-zer0-0.1.1 assets/js/side-bar-folders.js
jekyll-theme-zer0-0.1.0 assets/js/side-bar-folders.js