PageSourceSearch

https://auto-book-soundtrack.github.io/resources/hidebib.js

js auto-book-soundtrack.github.io collected 2026-10-03 08:40:29 UTC 1,062 bytes, 42 lines download raw bytes

1// from: http://www.robots.ox.ac.uk/~vedaldi/assets/hidebib.js
2function hideallbibs()
3{
4    var el = document.getElementsByTagName("div") ;
5    for (var i = 0 ; i < el.length ; ++i) {
6        if (el[i].className == "paper") {
7            var bib = el[i].getElementsByTagName("pre") ;
8            if (bib.length > 0) {
9                bib [0] .style.display = 'none' ;
10            }
11        }
12    }
13}
14
15function togglebib(paperid)
16{
17    var paper = document.getElementById(paperid) ;
18    var bib = paper.getElementsByTagName('pre') ;
19    if (bib.length > 0) {
20        if (bib [0] .style.display == 'none') {
21            bib [0] .style.display = 'block' ;
22        } else {
23            bib [0] .style.display = 'none' ;
24        }
25    }
26}
27
28function toggleblock(blockId)
29{
30   var block = document.getElementById(blockId);
31   if (block.style.display == 'none') {
32    block.style.display = 'block' ;
33   } else {
34    block.style.display = 'none' ;
35   }
36}
37
38function hideblock(blockId)
39{
40   var block = document.getElementById(blockId);
41   block.style.display = 'none' ;
42}

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.