File: index.html

package info (click to toggle)
jsxgraph 1.3.5+dfsg1-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 26,044 kB
  • sloc: xml: 5,869; java: 1,072; python: 747; php: 192; makefile: 146; sh: 47
file content (48 lines) | stat: -rw-r--r-- 1,315 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
    <title>JSXGraph CeBIT Tests</title>
    <style type="text/css">
        .box {
            width: 200px;
            height: 80px;
        }
    </style>
    <script type="text/javascript" src="/javascript/jquery/jquery.min.js"></script>
    <script type="text/javascript">

        var good = '#0f0',
            bad = '#f00',

            tests = {
                Canvas: function () {
                    return !!document.createElement('canvas').getContext;
                },

                VML: function () {
                    return !!document.namespaces;
                },

                SVG: function () {
                    return document.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#BasicStructure", "1.1");
                }                
            };

    </script>
</head>
<body>

<div id="result"></div>
<a href="events.html"><div class="box" style="float: left; background-color: #ccc;">Next</div></a>

<script type="text/javascript">
    var test;

    for(test in tests) {
        $('#result').append('<div class="box" style="background-color: ' + (tests[test]() ? good : bad) + '">' + test + '<' + '/div>');
    }
</script>

</body>
</html>