source.html 1.9 KB
Newer Older
1 2 3 4
<!--
Copyright 2004-2008 H2 Group. Licensed under the H2 License, Version 1.0 (http://h2database.com/html/license.html).
Initial Developer: H2 Group
-->
5 6 7
<html><head>
<title>Source Code Viewer</title>
</head>
8 9
<script type="text/javascript">
// <!--
10 11
    var line = 0, file = '';
    var params = location.search.substring(1).split('&');
12
    var tag = 'trunk/h2';
13 14 15 16 17 18 19
    for (var i = 0; i<params.length; i++) {
        var k = params[i].split('=');
        var key = k[0], value = k[1];
        if (key == 'line') {
            line = value;
        } else if (key == 'file') {
            file = value;
20
        } else if (key == 'build') {
21 22 23 24 25
            if (value == 64) {
                tag = 'tags/version-1.0.' + value;
            } else if (value >= 63) {
                tag = 'tags/version-1.0.' + value + '/h2';
            }
26 27
        }
    }
28
// -->
29 30 31 32
</script>
<pre>
<table width="100%">
    <tr>
33
        <td style="width: 50px; vertical-align: top">
34
            <script type="text/javascript">
35
// <!--
36 37
                for(var i = 1; i <= 5000; i++) {
                    if (line == i) {
38
                        document.write('<b>' + i + '></b><br />');
39 40 41 42 43 44
                    } else if (line <= 4 || i + 4 == line) {
                        document.write(i + '<a name="here"></a><br />');
                    } else {
                        document.write(i + '<br />');
                    }
                }
45
// -->
46 47
            </script>
        </td>
48
        <td width="92%" style="vertical-align: top">
49 50 51 52 53 54
            <iframe id="source" frameborder="0" marginwidth="0" marginheight="0" width="100%" height="80000px" scrolling="no" src="">
            </iframe>
        </td>
    </tr>
</table>
<a href="#here"></a>
55 56
<script type="text/javascript">
// <!--
57
    var source = document.getElementById('source');
58
    source.src = 'http://h2database.googlecode.com/svn/' + tag + '/src/main/' + file;
59
    document.location = '#here';
60
// -->
61
</script>
62
<!-- analytics -->
63
</pre></html>