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