]>
Git — Sourcephile - doclang.git/blob - style/dtc-errors.js
1 /* == Algorithm for show/unshow ==
2 Each hint/file is given a number, hint# or file#
3 When we say showOnly with a class name we add the rules to
4 the css #content div {display:none}, #content div.className {display:block}
5 When going back to showAll we remove these results
10 var css
= document
.styleSheets
[0];
11 for (var i
= 0; i
< n
; i
++)
12 css
.deleteRule(css
.cssRules
.length
-1);
16 var css
= document
.styleSheets
[0];
17 css
.insertRule(s
, css
.cssRules
.length
);
23 if (id
== last
) return;
26 css_add(".errors-all {font-weight: bold;}");
31 css_add(".errors-content > ol > li {display:none;}");
36 css_add(".errors-content > ol > li." + id
+ " {display:list-item;}");
37 css_add("#" + id
+ "{font-weight:bold;}");