From: Damyan Ivanov Date: Wed, 22 Aug 2018 13:39:47 +0000 (+0000) Subject: extend dsa numbers with an optional trailing -\d+, treat DLA as DSA, add new 'securit... X-Git-Tag: 2.2~7 X-Git-Url: https://git.ktnx.net/?p=icedeb.git;a=commitdiff_plain;h=7c295465c545334178efd5b6647a75ca3052dff8 extend dsa numbers with an optional trailing -\d+, treat DLA as DSA, add new 'security' color-tag --- diff --git a/icedeb.css b/icedeb.css index e1268cb..41e2943 100644 --- a/icedeb.css +++ b/icedeb.css @@ -51,7 +51,9 @@ a, a:visited { color: blue; } .hints .hint.p { background-color: hsl(120,100%,96%) } .hints .hint.m { background-color: hsl(240,100%,90%) } .hints .hint.i { background-color: hsl( 40,100%,96%) } +.hints .hint.s { background-color: hsl( 80,100%,96%) } .like-b .hint.b, .like-p .hint.p, .like-m .hint.m, +.like-s .hint.s, .like-i .hint.i { opacity: 1; } diff --git a/icedeb.html b/icedeb.html index 8ebbc69..2fb2710 100644 --- a/icedeb.html +++ b/icedeb.html @@ -37,7 +37,7 @@ (site)
Security tracker - pb + pbs (site)
Installation checks diff --git a/icedeb.js b/icedeb.js index 0d6676b..29327a8 100644 --- a/icedeb.js +++ b/icedeb.js @@ -174,7 +174,7 @@ function link_clicked(e) { function check_likely_inputs(q) { let cnt = document.getElementById('button-list-container').classList; - cnt.remove('like-b', 'like-p', 'like-m', 'like-i'); + cnt.remove('like-b', 'like-p', 'like-m', 'like-i', 'like-s'); document.querySelectorAll('.likely') .forEach((el) => { el.classList.remove('likely'); @@ -195,7 +195,10 @@ function check_likely_inputs(q) { if ( /^<.+@.+>$/.test(q) ) cnt.add('like-i'); - document.querySelectorAll('.like-b .hint.b, .like-p .hint.p, .like-m .hint.m, .like-i .hint.i') + if ( /^d[sl]a[- ]\d+(-\d+)?$/i.test(q) ) + cnt.add('like-s'); + + document.querySelectorAll('.like-b .hint.b, .like-p .hint.p, .like-m .hint.m, .like-i .hint.i, .like-s .hint.s') .forEach((el) => { el.parentElement.parentElement.classList.add('likely'); } );