event.preventDefault();
const generateNewTheme = () => {
debounceResize();
themeList.find('.active').removeClass('active');
const $this = $(this);
$this.parent().addClass('active');
const themeurl = themes[$this.attr('data-theme')];
setThemeCookie($this.attr('data-theme'));
const href = (gitlist.basepath === '/' ? '' : gitlist.basepath) + themeurl;
themesheet.attr('href', href);
gitlist.setTheme()
}