source.html 2.2 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 >= 120) {
                tag = 'tags/version-1.2.' + value + '/h2';
27 28
            } else if (value >= 100) {
                tag = 'tags/version-1.1.' + value + '/h2';
29 30 31
            } else if (value >= 63) {
                tag = 'tags/version-1.0.' + value + '/h2';
            }
32 33
        }
    }
34
// -->
35 36 37 38
</script>
<pre>
<table width="100%">
    <tr>
39
        <td style="width: 50px; vertical-align: top">
40
            <script type="text/javascript">
41
// <!--
42 43
                for(var i = 1; i <= 5000; i++) {
                    if (line == i) {
44
                        document.write('<b>' + i + '></b><br />');
45
                    } else if (line <= 4 || i + 4 == line) {
Thomas Mueller's avatar
Thomas Mueller committed
46
                        document.write(i + '<a id = "here"></a><br />');
47 48 49 50
                    } else {
                        document.write(i + '<br />');
                    }
                }
51
// -->
52 53
            </script>
        </td>
54
        <td width="92%" style="vertical-align: top">
Thomas Mueller's avatar
Thomas Mueller committed
55
            <iframe id = "source" frameborder="0" marginwidth="0" marginheight="0" width="100%" height="80000px" scrolling="no" src="">
56 57 58 59 60
            </iframe>
        </td>
    </tr>
</table>
<a href="#here"></a>
61 62
<script type="text/javascript">
// <!--
63
    var source = document.getElementById('source');
64
    source.src = 'http://h2database.googlecode.com/svn/' + tag + '/src/main/' + file;
65
    document.location = '#here';
66
// -->
67
</script>
68
<!-- analytics -->
69
</pre></html>