mirror of
https://github.com/renbaoshuo/S2OJ.git
synced 2024-12-22 09:01:53 +00:00
feat: click_zan cnt block title
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
d2e2760be3
commit
bc3cf49280
@ -25,7 +25,7 @@ function echoBlog($info) {
|
||||
echo '<div>', UOJUser::getLink($poster), '</div>';
|
||||
echo '<div class="hstack gap-2 flex-wrap small text-muted">';
|
||||
echo '<span>', '<i class="bi bi-chat-dots"></i> ', $blog->getReplyCnt(), ' </span>';
|
||||
echo '<span>', '<i class="bi bi-hand-thumbs-up"></i> ', $blog->getDisplayZanCnt(), ' </span>';
|
||||
echo '<span title="', $blog->info['zan'], '">', '<i class="bi bi-hand-thumbs-up"></i> ', $blog->getDisplayZanCnt(), ' </span>';
|
||||
echo '</div>';
|
||||
echo '</div>';
|
||||
echo '</div>';
|
||||
|
@ -121,6 +121,6 @@ class ClickZans {
|
||||
|
||||
if ($cnt < 0) $display_cnt = '-?';
|
||||
|
||||
return '<span class="' . $cls . '"><span class="uoj-click-zan-cnt">[<strong>' . $display_cnt . '</strong>]</span></span>';
|
||||
return '<span class="' . $cls . '"><span class="uoj-click-zan-cnt" title="' . $cnt . '">[<strong>' . $display_cnt . '</strong>]</span></span>';
|
||||
}
|
||||
}
|
||||
|
@ -114,6 +114,7 @@ h6,
|
||||
.uoj-click-zan-cnt {
|
||||
margin-left: 5px;
|
||||
margin-right: 5px;
|
||||
cursor: help;
|
||||
}
|
||||
|
||||
.uoj-click-zan-block-cur-up .uoj-click-zan-up {
|
||||
|
@ -334,7 +334,7 @@ $.fn.click_zan_block = function() {
|
||||
$(this)
|
||||
.append(up_node)
|
||||
.append(down_node)
|
||||
.append($('<span class="uoj-click-zan-cnt">[<strong>' + display_cnt + '</strong>]</span>'));
|
||||
.append($('<span class="uoj-click-zan-cnt" title="' + cnt + '">[<strong>' + display_cnt + '</strong>]</span>'));
|
||||
});
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user