Subversion Repositories php-qbpwcf

Rev

Rev 23 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
23 liveuser 1
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
2
<html>
3
 
4
  <head>
5
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
6
    <title>amCharts Responsive Example</title>
7
    <link href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/themes/start/jquery-ui.css"rel="stylesheet" />
8
    <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4/jquery.min.js"></script>
9
    <script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/jquery-ui.min.js"></script>
10
    <style>
11
    .ui-resizable-helper {
12
        border: 1px dotted gray;
13
    }
14
    .resizable {
15
        display: block;
16
        width: 800px;
17
        height: 500px;
18
        padding: 0;
19
        border: 2px solid #ddd;
20
        overflow: hidden;
21
        position: relative;
22
    }
23
    iframe {
24
        width: 100%;
25
        height: 100%;
26
    }
27
    #controls {
28
        background: #ccc;
29
        opacity: 0.5;
30
        padding: 5px 8px;
31
        font-size: 14px;
32
        font-weight: bold;
33
        font-family: Verdana;
34
        margin-bottom: 10px;
35
    }
36
    #dims {
37
        background: #ddd;
38
        color: #555;
39
        padding: 5px 8px;
40
        font-size: 14px;
41
        font-family: Verdana;
42
        width: 100px;
43
        text-align: center;
44
    }
45
    .ui-resizable-se {
46
        display: none!important;
47
    }
48
    </style>
49
 
50
    <script>
51
    $(function () {
52
        $(".resizable").resizable({
53
            animate: true,
54
            animateEasing: 'swing',
55
            animateDuration: 250,
56
            resize: function( event, ui ) {
57
                $('#dims').html(ui.size.width+'x'+ui.size.height+'px');
58
            }
59
        });
60
    });
61
 
62
    function setType (type) {
63
        $('#iframe').attr('src', type);
64
    }
65
 
66
    function reload() {
67
        setType($('#type').val());
68
    }
69
 
70
    function resize( dim, dir) {
71
        var container = $('.resizable');
72
        if ( 'w' == dim )
73
            container.css({ 'width': container.width() + dir});
74
        else
75
            container.css({ 'height': container.height() + dir});
76
        $('#dims').html(container.width()+'x'+container.height()+'px');
77
    }
78
    </script>
79
 
80
  </head>
81
 
82
  <body>
83
    <div id="controls">
84
      <input type="button" value="w-" onclick="resize('w', -50);" />
85
      <input type="button" value="w+" onclick="resize('w', 50);" />
86
      <input type="button" value="h-" onclick="resize('h', -50);" />
87
      <input type="button" value="h+" onclick="resize('h', 50);" />
88
      <select id="type" onchange="setType(this.options[this.selectedIndex].value);">
89
        <option value="pie1.html" selected="selected">Pie #1 (Simple w/ legend)</option>
90
        <option value="pie2.html"/>Pie #2 (3D w/ legend)</option>
91
        <option value="pie3.html"/>Pie #3 (several instances)</option>
92
        <option value="serial1.html">Serial #1 (Area)</option>
93
        <option value="serial2.html">Serial #2 (Bar &amp; Line)</option>
94
        <option value="serial3.html">Serial #3 (Line w/ zoom)</option>
95
        <option value="xy.html">XY</option>
96
        <option value="radar.html">Radar</option>
97
        <option value="gauge.html">Gauge</option>
98
        <option value="funnel.html">Funnel</option>
99
        <option value="gantt.html">GANTT</option>
100
        <option value="stock.html">Stock</option>
101
        <option value="map.html">Map</option>
102
      </select>
103
      <input type="button" value="reload" onclick="reload();" />
104
    </div>
105
 
106
    <div id="dims">800x500px</div>
107
    <div class="resizable">
108
      <iframe id="iframe" src="pie1.html" sytle="border: none; width: 100%; height: 100%;" frameborder="0"></iframe>
109
    </div>
110
  </body>
111
 
112
</html>