source.html 2.1 KB
Newer Older
1
<!--
2
Copyright 2004-2011 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">
// <!--
Thomas Mueller's avatar
Thomas Mueller committed
12 13 14 15 16 17 18 19 20 21

function getVersion(build) {
    if (build == 64) {
        return '1.0.' + build;
    } else if (build >= 146 && build != 147) {
        return '1.3.' + build;
    } else if (build >= 120) {
        return '1.2.' + build;
    } else if (build >= 100) {
        return '1.1.' + build;
22
    }
Thomas Mueller's avatar
Thomas Mueller committed
23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40
    return '1.0.' + build;
}

var line = 0, file = '';
var params = location.search.substring(1).split('&');
var tag = 'trunk/h2';
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;
    } else if (key == 'build') {
        tag = 'tags/version-' + getVersion(value) + '/h2';
    }
}

41
// -->
42 43 44 45
</script>
<pre>
<table width="100%">
    <tr>
46
        <td style="width: 50px; vertical-align: top">
47
            <script type="text/javascript">
48
// <!--
49 50
                for(var i = 1; i <= 5000; i++) {
                    if (line == i) {
51
                        document.write('<b>' + i + '></b><br />');
52
                    } else if (line <= 4 || i + 4 == line) {
Thomas Mueller's avatar
Thomas Mueller committed
53
                        document.write(i + '<a id = "here"></a><br />');
54 55 56 57
                    } else {
                        document.write(i + '<br />');
                    }
                }
58
// -->
59 60
            </script>
        </td>
61
        <td width="92%" style="vertical-align: top">
Thomas Mueller's avatar
Thomas Mueller committed
62
            <iframe id = "source" frameborder="0" marginwidth="0" marginheight="0" width="100%" height="80000px" scrolling="no" src="">
63 64 65 66 67
            </iframe>
        </td>
    </tr>
</table>
<a href="#here"></a>
68 69
<script type="text/javascript">
// <!--
70
    var source = document.getElementById('source');
71
    source.src = 'http://h2database.googlecode.com/svn/' + tag + '/src/main/' + file;
72
    document.location = '#here';
73
// -->
74
</script>
75
<!-- analytics -->
76
</pre></html>