-
- var bgcolor1 = '#eeeeee';
- var bgcolor2 = '#ffffff';
- var sticky_color = { '#eeeeee' : '#ffff66',
- '#ffffff' : '#ffffb8' };
- var notes_bgcolor = '';
-
- var trs = document.getElementsByTagName("TR");
- for (var i=0; i < trs.length; i++) {
- if (trs[i].id.length > 6 && trs[i].id.substring(0,6) == 'notes_') {
- if (( classnum == '-1' ) || ( trs[i].getAttribute('data-classnum') == classnum )) {
- trs[i].style.display = 'table-row';
- if ( notes_bgcolor == bgcolor1 ) {
- notes_bgcolor = bgcolor2;
- } else {
- notes_bgcolor = bgcolor1;
- }
- trs[i].style.backgroundColor = (trs[i].getAttribute('data-sticky') == '1') ? sticky_color[notes_bgcolor] : notes_bgcolor;
- } else {
- trs[i].style.display = 'none';
- }
- }
- }
-% if ($note_classes_conf) {
-
- var as = document.getElementsByTagName("a");
- for (var i=0; i < as.length; i++) {
- if(as[i].id.length > 14 && as[i].id.substring(0,14) == 'notes_tablink_') {
- if(as[i].id == 'notes_tablink_'+classnum) {
- as[i].style.fontWeight = 'bold';
- } else {
- as[i].style.fontWeight = 'normal';
- }
- }