Changeset 9966
- Timestamp:
- 10/27/14 23:22:08 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/webif/graph/graph.svg
r8418 r9966 4 4 width='100%' height='100%' 5 5 viewBox='0 0 800 300' 6 preserveAspectRatio=' none'6 preserveAspectRatio='xMidYMid' 7 7 onload='init(evt)' 8 style='background-color:#F0F0F0' 8 9 > 9 <g id='graph' >10 <rect id='g' class='graph_bg' x1='0' y1='0' width='800' height='300' />10 <g id='graph' style='font-family: Verdana, Arial; '> 11 <rect id='g' class='graph_bg' x1='0' y1='0' width='800' height='300' style='fill:#F0F0F0;' /> 11 12 <text id='graph_error' class='graph_error' x='400' y='125' visibility='hidden'>Error occured!</text> 12 <path id='graph_grid' class='graph_grid' d='M 2 75 L 800 75 M 2 150 L 800 150 M 2 225 L 800 225'/> 13 <text id='graph_grid_interval' style='font-size:8px;' cursor='pointer' class='graph_grid_txt' x='400' y='10'>-</text> 13 <path id='graph_grid' class='graph_grid' d='M 2 75 L 800 75 M 2 150 L 800 150 M 2 225 L 800 225 M 2 300 L 800 300'/> 14 15 <rect id='graph_grid_button_back' style='fill:#A9D0F5;' cursor='pointer' x='270' y='0' rx='5' ry='5' width='40' height='20'/> 16 <text id='graph_grid_button_text' style='font-size:8px; fill:black;' cursor='pointer' class='graph_grid_txt' x='305' y='12'>Change</text> 17 <rect id='graph_grid_button' style='fill:#A9D0F5;opacity:0;' cursor='pointer' x='270' y='0' rx='5' ry='5' width='40' height='20'/> 18 <text id='graph_grid_interval' style='font-size:8px; fill:black;' class='graph_grid_txt' x='400' y='12'>-</text> 19 20 <text id='graph_grid_txt4' class='graph_grid_txt' x='800' y='298'>-</text> 14 21 <text id='graph_grid_txt3' class='graph_grid_txt' x='800' y='223'>-</text> 15 22 <text id='graph_grid_txt2' class='graph_grid_txt' x='800' y='148'>-</text> … … 75 82 if ( location.search.indexOf('hidelabels=1') > 0 ) hideLabels = true; 76 83 SVGDoc = evt.target.ownerDocument; 77 SVGDoc.getElementById('graph_grid_interval').addEventListener('mousedown', switch_interval, false); 84 SVGDoc.getElementById('graph_grid_button').addEventListener('mousedown', switch_interval, false); 85 SVGDoc.getElementById('graph_grid_button_text').addEventListener('mousedown', switch_interval, false); 78 86 fetch_data(); 79 87 switch_interval(); … … 224 232 SVGDoc.getElementById('graph_grid_txt2').firstChild.data = 2*rmax/4 + 'ms'; 225 233 SVGDoc.getElementById('graph_grid_txt3').firstChild.data = rmax/4 + 'ms'; 234 SVGDoc.getElementById('graph_grid_txt4').firstChild.data = '0ms' 226 235 SVGDoc.getElementById('graph_error').setAttributeNS(null, 'visibility', 'hidden'); 227 236 }
Note:
See TracChangeset
for help on using the changeset viewer.