comparison static/app.js @ 1:c7f4f2ac38f2 draft default tip

" master branch Updating"
author lain
date Tue, 09 Aug 2022 15:19:45 +0000
parents 426b0f85a311
children
comparison
equal deleted inserted replaced
0:426b0f85a311 1:c7f4f2ac38f2
43 } ; 43 } ;
44 44
45 Array.prototype.forEach.call(document.getElementsByClassName( 45 Array.prototype.forEach.call(document.getElementsByClassName(
46 "history_metadata_extractor_h2"), 46 "history_metadata_extractor_h2"),
47 (h2) => { 47 (h2) => {
48 var table = h2.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling.nextSibling ; 48 var table = h2.nextElementSibling.nextElementSibling.nextElementSibling ;
49 h2.onclick = (e) => { 49 h2.onclick = (e) => {
50 if (table.classList.contains("d-none")) { 50 if (table.classList.contains("d-none")) {
51 table.classList.remove("d-none") ; 51 table.classList.remove("d-none") ;
52 } else { 52 } else {
53 table.classList.add("d-none") ; 53 table.classList.add("d-none") ;