Debian Codegraph @

src/docsrc/html/source.html

raw
1 <!--
2 Copyright 2004-2019 H2 Group. Multiple-Licensed under the MPL 2.0,
3 and the EPL 1.0 (http://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 >= 177) {
14 return 'version-1.4.' + build + '/h2';
15 } else if (build >= 146 && build != 147) {
16 return 'version-1.3/version-1.3.' + build + '/h2';
17 } else if (build >= 120) {
18 return 'version-1.2/version-1.2.' + build + '/h2';
19 } else if (build >= 100) {
20 return 'version-1.1/version-1.1.' + build + '/h2';
21 } else if (build == 64) {
22 return 'version-1.0/version-1.0.64';
23 } else {
24 return 'version-1.0/version-1.0.' + build + '/h2';
25 }
26 }
27
28 var line = 0, file = '';
29 var params = location.search.substring(1).split('&');
30 var path = 'master/h2';
31 for (var i = 0; i<params.length; i++) {
32 var k = params[i].split('=');
33 var key = k[0], value = k[1];
34 if (key == 'line') {
35 line = value;
36 } else if (key == 'file') {
37 file = value;
38 } else if (key == 'build') {
39 path = getPath(value);
40 }
41 }
42
43 var url = 'https://github.com/h2database/h2database/blob/' + path + '/src/main/' + file;
44 if (line > 0 && file !== '') {
45 url += '#L' + line;
46 }
47 window.location.replace(url);
48
49 // -->
50 </script>
51 </body>
52 </html>