File: index.html

package info (click to toggle)
ruby-sdoc 1.1.0-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, forky, sid, trixie
  • size: 848 kB
  • sloc: javascript: 4,418; ruby: 629; makefile: 3
file content (74 lines) | stat: -rw-r--r-- 2,231 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
<!DOCTYPE html>
<html lang="en">
<head>
  <title>search index</title>
  <link rel="stylesheet" href="../css/reset.css" type="text/css" media="screen" charset="utf-8" />
  <link rel="stylesheet" href="../css/panel.css" type="text/css" media="screen" charset="utf-8" />
  <script src="../js/search_index.js" type="text/javascript" charset="utf-8"></script>
  <script src="../js/searcher.js" type="text/javascript" charset="utf-8"></script>
  <script src="tree.js" type="text/javascript" charset="utf-8"></script>
  <script src="../js/jquery-1.3.2.min.js" type="text/javascript" charset="utf-8"></script>
  <script src="../js/searchdoc.js" type="text/javascript" charset="utf-8"></script>
  <script type="text/javascript" charset="utf-8">
  function placeholder() {
    if ($('<input type="text">')[0].placeholder !== undefined) return;

    $('#search-label').click(function() {
      $('#search').focus();
      $('#search-label').hide();
    });

    $('#search').focus(function() {
      $('#search-label').hide();
    });
    $('#search').blur(function() {
      this.value == '' && $('#search-label').show();
    });

    $('#search')[0].value == '' && $('#search-label').show();
  }
  $(function() {
    placeholder();
    $('#links').hide();
    var panel = new Searchdoc.Panel($('#panel'), search_data, tree, window.parent.frames[1]);
    $('#search').focus();

    var s = window.parent.location.search.match(/\?q=([^&]+)/);
    if (s) {
      s = decodeURIComponent(s[1]).replace(/\+/g, ' ');
      if (s.length > 0) {
        $('#search').val(s);
        panel.search(s, true);
      }
    }
  })
  </script>
</head>

<body>
  <div class="panel panel_tree" id="panel">
    <div class="header">
      <div>
        <label for="search" id="search-label" style="display: none">Search</label>
        <table>
          <tr>
            <td>
              <input type="Search" placeholder="Search" autosave="searchdoc" results="10" id="search" autocomplete="off" />
            </td>
          </tr>
        </table>
      </div>
    </div>
    <div class="tree">
      <ul>
      </ul>
    </div>
    <div class="result">
      <ul>
      </ul>
    </div>
  </div>
  <a href="links.html" id="links">index</a>
</body>

</html>