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