add HTML5 doctype to all tests
[dygraphs.git] / tests / resize.html
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <title>resize the window</title>
5 <!--[if IE]>
6 <script type="text/javascript" src="../excanvas.js"></script>
7 <![endif]-->
8 <script type="text/javascript" src="../strftime/strftime-min.js"></script>
9 <script type="text/javascript" src="../rgbcolor/rgbcolor.js"></script>
10 <script type="text/javascript" src="../dygraph-canvas.js"></script>
11 <script type="text/javascript" src="../dygraph.js"></script>
12 <script type="text/javascript" src="data.js"></script>
13 </head>
14 <body>
15 <div id="div_g" style="width:95%; height:95%"></div>
16
17 <script type="text/javascript">
18 g = new Dygraph(
19 document.getElementById("div_g"),
20 NoisyData, {
21 rollPeriod: 7,
22 errorBars: true
23 }
24 );
25
26 window.onresize = function() {
27 g.resize();
28 }
29 </script>
30 </body>
31 </html>