forked from rDrama/rDrama
remove unnecessary arrow functions
parent
446ef58c2c
commit
b4448ae926
|
@ -180,7 +180,6 @@ function smoothScrollTop()
|
|||
}
|
||||
|
||||
// Click navbar to scroll back to top
|
||||
(() => {
|
||||
for (const i of document.querySelectorAll('nav'))
|
||||
{
|
||||
i.addEventListener('click', (e) => {
|
||||
|
@ -192,7 +191,6 @@ function smoothScrollTop()
|
|||
smoothScrollTop();
|
||||
}, false);
|
||||
}
|
||||
})();
|
||||
|
||||
// Dynamic shadow when the user scrolls
|
||||
document.addEventListener('scroll',function (event) {
|
||||
|
|
|
@ -569,7 +569,6 @@
|
|||
{% endif %}
|
||||
|
||||
<script>
|
||||
(() => {
|
||||
{% if not v or v.highlightcomments %}
|
||||
document.addEventListener('DOMContentLoaded', function() {
|
||||
showNewCommentCounts('{{p.id}}', {{p.comment_count}})
|
||||
|
@ -583,7 +582,6 @@
|
|||
{% endif %}
|
||||
})
|
||||
{% endif %}
|
||||
})()
|
||||
</script>
|
||||
|
||||
{% if success %}
|
||||
|
|
Loading…
Reference in New Issue