feat(single): identity chips, comment 神评, reward open from author bar
Share VIP/verify/level/badge chrome via aksrt-identity helpers on author bar, author card, and comments; mark hot comments; open reward modal from author actions; admin threshold for 神评; task list go-to actions.
This commit is contained in:
@@ -40,6 +40,13 @@
|
||||
}
|
||||
|
||||
btn.addEventListener('click', openReward);
|
||||
document.querySelectorAll('[data-aksrt-reward-open]').forEach(function (el) {
|
||||
if (el === btn) return;
|
||||
el.addEventListener('click', function (e) {
|
||||
e.preventDefault();
|
||||
openReward();
|
||||
});
|
||||
});
|
||||
if (closeBtn) closeBtn.addEventListener('click', closeReward);
|
||||
if (overlay) overlay.addEventListener('click', closeReward);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user