Changeset e4063fff92cb13883113b8c83778545ed130b1f6
- Timestamp:
- 06/29/09 16:21:02
(4 years ago)
- Author:
- Umar Farooq <umar@omniti.com>
- git-committer:
- Umar Farooq <umar@omniti.com> 1246292462 +0000
- git-parent:
[e8d21bac58db151b8258b9fa9fe1db9a8d3fd25c]
- git-author:
- Umar Farooq <umar@omniti.com> 1246292462 +0000
- Message:
hide pause/polltime controls until we hit play, cleanup other control toggling, needs design work on graph title and icons for play/pause controls.
refs #146
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| re8d21ba |
re4063ff |
|
| 918 | 918 | font-weight: bold; |
|---|
| 919 | 919 | color:#660000; |
|---|
| 920 | | width: 290px; |
|---|
| 921 | 920 | height: 20px; |
|---|
| 922 | 921 | } |
|---|
| re8d21ba |
re4063ff |
|
| 60 | 60 | streaming = false; |
|---|
| 61 | 61 | $('#streambox').html(''); |
|---|
| 62 | | $(".stream-log").attr("style", "display:none;"); |
|---|
| 63 | | $("#graph_datetool").css("display", ""); |
|---|
| | 62 | $(".stream-log").hide(); |
|---|
| | 63 | $("#graph_datetool").show(); |
|---|
| 64 | 64 | $("#play_pause_graph").html('PLAY'); |
|---|
| | 65 | $("#stopstream_graph").hide(); |
|---|
| | 66 | $("#osliderg").hide(); |
|---|
| | 67 | $(".stream_controls").width(""); |
|---|
| 65 | 68 | } |
|---|
| 66 | 69 | //overlay mode: stackadd=false: we just add new stacks for any the incoming graph has |
|---|
| … | … | |
| 391 | 394 | <span id="play_pause_graph">PLAY</span> |
|---|
| 392 | 395 | <span id="stopstream_graph">STOP</span> |
|---|
| 393 | | <div id="osliderg"> |
|---|
| | 396 | <div id="osliderg" style="display:none"> |
|---|
| 394 | 397 | <div id="pollsliderg"></div> |
|---|
| 395 | 398 | <div id="polltimeg"></div> |
|---|
| … | … | |
| 447 | 450 | //if we are playing for the frist time |
|---|
| 448 | 451 | if(!streaming) { |
|---|
| 449 | | $('#graph_datetool').css("display", "none"); |
|---|
| 450 | | $(".stream-log").removeAttr("style").html("stream log_"); |
|---|
| | 452 | $('#graph_datetool').hide(); |
|---|
| | 453 | $(".stream-log").show().html("stream log_"); |
|---|
| | 454 | $("#stopstream_graph").show(); |
|---|
| | 455 | $("#osliderg").show(); |
|---|
| | 456 | //theres probably a better way to make sure stuff fits in the stream_controls div |
|---|
| | 457 | $(".stream_controls").width("290px"); |
|---|
| 451 | 458 | } |
|---|
| 452 | 459 | //setup/restart the plotting |
|---|
| re8d21ba |
re4063ff |
|
| 754 | 754 | function get_stream_controls() { |
|---|
| 755 | 755 | play_pause = $("<span id='play_pause'>PLAY</span>"); |
|---|
| 756 | | stop = $("<span id='stopstream'>STOP</span>"); |
|---|
| 757 | | oslider = $("<div id='oslider'><div id='pollslider'></div><div id='polltime'>"+polltime+" ms</div></div>"); |
|---|
| | 756 | stop = $("<span id='stopstream' style='display:none' >STOP</span>"); |
|---|
| | 757 | oslider = $("<div id='oslider' style='display:none'><div id='pollslider'></div><div id='polltime'>"+polltime+" ms</div></div>"); |
|---|
| 758 | 758 | stream_controls = $("<div class='stream_controls'></div>").append(play_pause).append(stop).append(oslider); |
|---|
| 759 | 759 | return stream_controls; |
|---|
| … | … | |
| 777 | 777 | if(!streaming) { |
|---|
| 778 | 778 | streambox.html(''); |
|---|
| 779 | | $(".stream-log").attr("style", "display:none;"); |
|---|
| | 779 | $(".stream-log").hide(); |
|---|
| 780 | 780 | stream_graph.stopTime(); |
|---|
| 781 | 781 | } |
|---|
| … | … | |
| 950 | 950 | $("#stopstream").click(function() { |
|---|
| 951 | 951 | streaming = false; |
|---|
| 952 | | $('#mini_ws_datetool').css("display", ""); |
|---|
| | 952 | $("#mini_ws_datetool").show(); |
|---|
| 953 | 953 | $("#play_pause").html('PLAY'); |
|---|
| 954 | 954 | $('#streambox').html(''); |
|---|
| 955 | | $(".stream-log").attr("style", "display:none;"); |
|---|
| | 955 | $(".stream-log").hide(); |
|---|
| | 956 | $("#oslider").hide(); |
|---|
| | 957 | $(".stream_controls").width(""); |
|---|
| | 958 | $(this).hide(); |
|---|
| 956 | 959 | stream_graph.ReconGraphRefresh({graphid: ginfo.id, stacks: ginfo.stacks}); |
|---|
| 957 | 960 | }); |
|---|
| … | … | |
| 962 | 965 | //if we are playing for the frist time |
|---|
| 963 | 966 | if(!streaming) { |
|---|
| 964 | | $('#mini_ws_datetool').css("display", "none"); |
|---|
| 965 | | $(".stream-log").removeAttr("style").html("stream log_"); |
|---|
| | 967 | $('#mini_ws_datetool').hide(); |
|---|
| | 968 | $(".stream-log").show().html("stream log_"); |
|---|
| | 969 | //theres probably a better way to make sure stuff fits in the stream_controls div |
|---|
| | 970 | $(".stream_controls").width("290px"); |
|---|
| | 971 | $("#stopstream").show(); |
|---|
| | 972 | $("#oslider").show(); |
|---|
| 966 | 973 | } |
|---|
| 967 | 974 | //setup/restart the plotting |
|---|
| … | … | |
| 1058 | 1065 | //if we are playing for the frist time |
|---|
| 1059 | 1066 | if(!streaming) { |
|---|
| 1060 | | $('#mini_ws_datetool').css("display", "none"); |
|---|
| 1061 | | $(".stream-log").removeAttr("style").html("stream log_"); |
|---|
| | 1067 | $("#mini_ws_datetool").hide(); |
|---|
| | 1068 | $(".stream-log").show().html("stream log_"); |
|---|
| | 1069 | $("#stopstream").show(); |
|---|
| | 1070 | $("#oslider").show(); |
|---|
| | 1071 | //theres probably a better way to make sure stuff fits in the stream_controls div |
|---|
| | 1072 | $(".stream_controls").width("290px"); |
|---|
| 1062 | 1073 | } |
|---|
| 1063 | 1074 | //setup/restart the plotting |
|---|
| … | … | |
| 1073 | 1084 | $("#stopstream").click(function() { |
|---|
| 1074 | 1085 | streaming = false; |
|---|
| 1075 | | $('#mini_ws_datetool').css("display", ""); |
|---|
| | 1086 | $('#mini_ws_datetool').show(); |
|---|
| 1076 | 1087 | $("#play_pause").html('PLAY'); |
|---|
| 1077 | 1088 | $('#streambox').html(''); |
|---|
| 1078 | | $(".stream-log").attr("style", "display:none;"); |
|---|
| | 1089 | $(".stream-log").hide(); |
|---|
| | 1090 | $(this).hide(); |
|---|
| | 1091 | $("#oslider").hide(); |
|---|
| | 1092 | $(".stream_controls").width(""); |
|---|
| 1079 | 1093 | stream_graph.ReconGraphRefresh({graphid: ginfo.id, stacks: ginfo.stacks}); |
|---|
| 1080 | 1094 | }); |
|---|