Debian Codegraph @

src/docsrc/html/source.html

raw
1 <!--
2 Copyright 2004-2023 H2 Group. Multiple-Licensed under the MPL 2.0,
3 and the EPL 1.0 (https://h2database.com/html/license.html).
4 Initial Developer: H2 Group
5 -->
6 <html><head>
7 </head>
8 <body>
9 <script type="text/javascript">
10 // <!--
11
12 function getPath(build) {
13 if (build > 200) {
14 var b = build + 1;
15 return 'version-' + Math.floor(b / 100) + '.' + Math.floor(b % 100 / 10) + '.' + build + '/h2';
16 } else if (build >= 177) {
17 return 'version-1.4.' + build + '/h2';
18 } else if (build >= 146 && build != 147) {
19 return 'version-1.3/version-1.3.' + build + '/h2';
20 } else if (build >= 120) {
21 return 'version-1.2/version-1.2.' + build + '/h2';
22 } else if (build >= 100) {
23 return 'version-1.1/version-1.1.' + build + '/h2';
24 } else if (build == 64) {
25 return 'version-1.0/version-1.0.64';
26 } else {
27 return 'version-1.0/version-1.0.' + build + '/h2';
28 }
29 }
30
31 var line = 0, file = '';
32 var params = location.search.substring(1).split('&');
33 var path = 'master/h2';
34 for (var i = 0; i<params.length; i++) {
35 var k = params[i].split('=');
36 var key = k[0], value = k[1];
37 if (key == 'line') {
38 line = value;
39 } else if (key == 'file') {
40 file = value;
41 } else if (key == 'build') {
42 path = getPath(parseInt(value));
43 }
44 }
45
46 var url = 'https://github.com/h2database/h2database/blob/' + path + '/src/main/' + file;
47 if (line > 0 && file !== '') {
48 url += '#L' + line;
49 }
50 window.location.replace(url);
51
52 // -->
53 </script>
54 </body>
55 </html>