mirror of
https://github.com/MeiK2333/github-style.git
synced 2025-10-07 18:14:06 +00:00
bug fix & update Post activity
This commit is contained in:
13
static/js/stop.js
Normal file
13
static/js/stop.js
Normal file
@@ -0,0 +1,13 @@
|
||||
function stopClickEvent(selector) {
|
||||
const elements = document.querySelectorAll(selector);
|
||||
for (const current of elements) {
|
||||
current.onclick = (event) => {
|
||||
event.stopPropagation();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
(() => {
|
||||
stopClickEvent('.day');
|
||||
stopClickEvent('.js-year-link');
|
||||
})();
|
Reference in New Issue
Block a user