Changeset 17738 for trunk/FACT++/www
- Timestamp:
- 04/30/14 12:09:51 (11 years ago)
- Location:
- trunk/FACT++/www/viewer
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/www/viewer/index.html
r17732 r17738 268 268 <div id="waveformcontainer" class="ui-widget-content"> 269 269 <div id="waveform" style="width:100%;height:300px;"></div> 270 <div style="text-align:center;margin-bottom:2px"> 271 Min: 272 <input id="waveformmin" style="text-align:right"type="number" onchange="onWaveformMinMax();" value="0" disabled="true"></input> 273 <input id="waveformminon" type="checkbox" onclick="onWaveformMinMaxOn();" checked="true"></input> 274 Max: 275 <input id="waveformmax" style="text-align:right"type="number" onchange="onWaveformMinMax();" value="0" disabled="true"></input> 276 <input id="waveformmaxon" type="checkbox" onclick="onWaveformMinMaxOn();" checked="true"></input> 277 </div> 270 <table style="width:100%"> 271 <colgroup> 272 <col style="width:50%;"> 273 <col style="width:50%;"> 274 </colgroup> 275 <tr> 276 <td style="text-align:left"> 277 <span style="white-space:nowrap;float:left"> 278 Xmin: 279 <input id="waveformxmin" style="width:55px;text-align:right"type="number" onchange="onWaveformMinMax();" value="0" disabled="true"></input> 280 <input id="waveformxminon" type="checkbox" onclick="onWaveformMinMaxOn();" checked="true"></input> 281 282 </span> 283 <span style="white-space:nowrap;float:left"> 284 Xmax: 285 <input id="waveformxmax" style="width:55px;text-align:right"type="number" onchange="onWaveformMinMax();" value="0" disabled="true"></input> 286 <input id="waveformxmaxon" type="checkbox" onclick="onWaveformMinMaxOn();" checked="true"></input> 287 </span> 288 </td> 289 <td style="text-align:right"> 290 <span style="white-space:nowrap;"> 291 Ymin: 292 <input id="waveformmin" style="text-align:right"type="number" onchange="onWaveformMinMax();" value="0" disabled="true"></input> 293 <input id="waveformminon" type="checkbox" onclick="onWaveformMinMaxOn();" checked="true"></input> 294 </span> 295 <span style="white-space:nowrap;"> 296 Ymax: 297 <input id="waveformmax" style="text-align:right"type="number" onchange="onWaveformMinMax();" value="0" disabled="true"></input> 298 <input id="waveformmaxon" type="checkbox" onclick="onWaveformMinMaxOn();" checked="true"></input> 299 </span> 300 </td> 301 </tr> 302 </table> 278 303 </div> 279 304 -
trunk/FACT++/www/viewer/index.js
r17732 r17738 495 495 waveform.xmax = evt.numRoi; 496 496 497 if (document.getElementById("waveformxminon").checked) 498 document.getElementById("waveformxmin").value = waveform.xmin; 499 if (document.getElementById("waveformxmaxon").checked) 500 document.getElementById("waveformxmax").value = waveform.xmax; 501 497 502 if (document.getElementById("waveformminon").checked) 498 503 document.getElementById("waveformmin").value = waveform.ymin; … … 500 505 document.getElementById("waveformmax").value = waveform.ymax; 501 506 507 var xmin = document.getElementById("waveformxminon").checked ? waveform.xmin : parseInt(document.getElementById("waveformxmin").value); 508 var xmax = document.getElementById("waveformxmaxon").checked ? waveform.xmax : parseInt(document.getElementById("waveformxmax").value); 509 502 510 var ymin = document.getElementById("waveformminon").checked ? waveform.ymin : parseInt(document.getElementById("waveformmin").value); 503 511 var ymax = document.getElementById("waveformmaxon").checked ? waveform.ymax : parseInt(document.getElementById("waveformmax").value); … … 506 514 { 507 515 xaxis: { 508 min: waveform.xmin-1,509 max: waveform.xmax+1,516 min: xmin-1, 517 max: xmax+1, 510 518 }, 511 519 yaxis: { … … 903 911 904 912 var redraw; 913 if (!document.getElementById("waveformxminon").checked) 914 xmin = document.getElementById("waveformxmin").value; 915 if (!document.getElementById("waveformxmaxon").checked) 916 xmax = document.getElementById("waveformxmax").value; 905 917 if (!document.getElementById("waveformminon").checked) 906 918 ymin = document.getElementById("waveformmin").value; … … 919 931 920 932 var redraw; 933 if (document.getElementById("waveformxminon").checked) 934 { 935 document.getElementById("waveformxmin").setAttribute("disabled", "true"); 936 document.getElementById("waveformxmin").value = wf.xmin; 937 xmin = wf.xmin-1; 938 } 939 else 940 document.getElementById("waveformxmin").removeAttribute("disabled"); 941 942 if (document.getElementById("waveformxmaxon").checked) 943 { 944 document.getElementById("waveformxmax").setAttribute("disabled", "true"); 945 document.getElementById("waveformxmax").value = wf.xmax; 946 xmax = wf.xmax+1; 947 } 948 else 949 document.getElementById("waveformxmax").removeAttribute("disabled"); 950 921 951 if (document.getElementById("waveformminon").checked) 922 952 {
Note:
See TracChangeset
for help on using the changeset viewer.