From f8db0dfa4c7e855ef2cfc26a184a126a5149e080 Mon Sep 17 00:00:00 2001 From: ZsgsDesign Date: Mon, 28 Mar 2022 19:51:07 +0800 Subject: [PATCH] desktop notification icon support for judged --- public/static/img/notify/.gitignore | 1 + public/static/img/notify/pending.png | Bin 0 -> 11216 bytes resources/views/problem/editor.blade.php | 2 +- 3 files changed, 2 insertions(+), 1 deletion(-) create mode 100644 public/static/img/notify/pending.png diff --git a/public/static/img/notify/.gitignore b/public/static/img/notify/.gitignore index f36b8a784..10ff6149e 100644 --- a/public/static/img/notify/.gitignore +++ b/public/static/img/notify/.gitignore @@ -2,6 +2,7 @@ !.gitignore !cancel.png !checked.png +!pending.png !njupt.png !contest_alert.png !noj.png diff --git a/public/static/img/notify/pending.png b/public/static/img/notify/pending.png new file mode 100644 index 0000000000000000000000000000000000000000..5b93637d7b90bb441083fb68667f5d844aae9279 GIT binary patch literal 11216 zcmc(Fc|4Tg`}dhK7&~pYm?@u6QVB_vWu_EuLM4?fr6|iF*_XLd)F)f3%HF0(DA}2j z!l$y7HH^W?l4XW46Jze*nZCc*^Vjn{|2@CQ>*d9D-`94o`<&~Xb6xKnHb*RFBvm8< z05S*m?>!0t7XFI`cro~AF1URW{=xb0IdB{gf5P$SuR~hGcmFAW0Avpee=)0WH3!0n z%2)QCymHLP?Ml$u%NIaUP|(&(6ic2+!_87a#m+w?xK=!K~bL=%+Mcy&D_JrgqTa(<}I8`0c9gKUWdjt<|KQ64=;@c|<5~L8C ziY5*m_*!|cdsC?+Xe|R}4Myw0{(oxjt@bIK!Xove^wsqe81hkRB|W~@e^`ua|FA@9 zY*zda3pw9!4@h1WW0_di=&cC0Zv~;MLbZBNJ%(#2l_1LxQ}~A^iwnkvOQe7b0rOdU z6&5Mmyh-O*XC)TdAV$9v?7+=d-ECvpuC zF>DOS(h#~@42*in>%et148)gpSV6Pepk8?+4ir)4klb6NW#d@nxhOs3ztv{-{D-CH z98~+)fGOxH7cyAV-&#PsXXbO2D(bbN5*PfZ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+MTlcNUW5DMm0x{(zbfY2j+?rScs!3nFePXXNYWb*j^-722>)H8J8mGbYw# zG5wZ;4doY(t{EQCY%Al?VzvnhU!iW^Xvpp{f$&3lP!HfA90LAtKt$sI)3-t_=>NiI z%7Z`Nfd7VS{tu8s{G|Za$Ay4Y7>fUM91x>LstGCK-D8F+5dIw4cVzGDJucDz1!*&9 AL;wH) literal 0 HcmV?d00001 diff --git a/resources/views/problem/editor.blade.php b/resources/views/problem/editor.blade.php index 2640e4ac7..f6c11f8d3 100644 --- a/resources/views/problem/editor.blade.php +++ b/resources/views/problem/editor.blade.php @@ -1142,7 +1142,7 @@ function adjustAppearance(){ $("#verdict_info").addClass(ret.data.color); if(ret.data.verdict!="Pending" && ret.data.verdict!="Waiting" && ret.data.verdict!="Judging") { clearInterval(tempInterval); - notify(ret.data.verdict, 'Your submission to problem {{$problem->title}} has been proceed.',(ret.data.verdict=="Partially Accepted"||ret.data.verdict=="Accepted")?"/static/img/notify/checked.png":"/static/img/notify/cancel.png",'{{$problem->pid}}'); + notify(ret.data.verdict, 'Your submission to problem {{$problem->title}} has been proceed.',(ret.data.verdict=="Partially Accepted"||ret.data.verdict=="Accepted")?"/static/img/notify/checked.png":((ret.data.verdict=="Judged")?"/static/img/notify/pending.png":"/static/img/notify/cancel.png"),'{{$problem->pid}}'); @if(!$contest_mode) if (ret.data.verdict=="Accepted"){ localStorage.setItem('{{$problem->pcode}}','```\n' + editor.getValue() + '\n```')