document.addEventListener("DOMContentLoaded", function(event) {
const themes = require('./themes.js')
const themeList = $('#theme-list');
const menuResponsive = require('./menu-responsive')
const debounceResize = menuResponsive({
menuList: themeList,
})
function setThemeCookie(theme) {
Cookies.set(themeCookieName, theme, { expires: 3650, path: '/' });
}
const currentCookie = getThemeCookie('gitlist-bootstrap-theme');
for(let key in themes) {
const menu = '<li class="' + (currentCookie === key ? 'active' : '') + '" style="text-transform: capitalize"><a href="#" data-theme="' + key + '" class="theme-link">' + key.substring(10) + '</a></li>';
themeList.append(menu);
}