Ad placeholder

User:Crashaholic/citizen.js: Difference between revisions

Jump to navigation Jump to search
m
does this work??
m (refresh the page cuz im going full jank heh)
m (does this work??)
Line 37: Line 37:
}
}


$('#citizen-pref-theme-option-auto').attr('onClick', 'refreshPage();');
function attachRefresh()
$('#citizen-pref-theme-option-dark').attr('onClick', 'refreshPage();');
{
$('#citizen-pref-theme-option-light').attr('onClick', 'refreshPage();');
$('#citizen-pref-theme-option-auto').attr('onClick', 'refreshPage();');
$('#citizen-pref-theme-option-dark').attr('onClick', 'refreshPage();');
$('#citizen-pref-theme-option-light').attr('onClick', 'refreshPage();');
}
 
function attachRefreshDelay()
{
setTimeout(attachRefresh, 10);
}
 
$('#citizen-pref-toggle').on('click', 'attachRefreshDelay();')

Navigation menu