Merge branch 'main' of https://github.com/olinpin/twitter-project into CSS
This commit is contained in:
@@ -46,4 +46,14 @@ $(".sort-dropdown-list li").on("click", function() {
|
||||
|
||||
$(window).on("test", function(e, filter) {
|
||||
console.log(filter);
|
||||
})
|
||||
|
||||
let root = document.querySelector(":root")
|
||||
|
||||
$(".logo").on("click", function() {
|
||||
if (root.style.getPropertyValue("--main-bg") === 'ghostwhite') {
|
||||
root.style.setProperty('--main-bg', '#292929');
|
||||
} else {
|
||||
root.style.setProperty('--main-bg', 'ghostwhite');
|
||||
}
|
||||
})
|
||||
Reference in New Issue
Block a user