delete_file();
});
- $("#advoptbtn").click(function(){
-// toggleVis("advancedOptionsContainer");
- $("#advancedOptionsContainer").fadeToggle();
- $('html, body').animate({
- scrollTop: $("#advancedOptionsContainer").offset().top
- }, 2000);
-// var $target = $('html,body');
-// $target.animate({scrollTop: $target.height()}, 1000);
- });
- $("#debugbtn").click(function(){
-// toggleVis("theConsoleContainer");
- $("#theConsoleContainer").fadeToggle();
- $('html, body').animate({
- scrollTop: $("#theConsoleContainer").offset().top
- }, 2000);
-// var $target = $('html,body');
-// $target.animate({scrollTop: $target.height()}, 1000);
- });
+// $("#advoptbtn").click(function(){
+// // toggleVis("advancedOptionsContainer");
+// $("#advancedOptionsContainer").fadeToggle();
+// $('html, body').animate({
+// scrollTop: $("#advancedOptionsContainer").offset().top
+// }, 2000);
+// // var $target = $('html,body');
+// // $target.animate({scrollTop: $target.height()}, 1000);
+// });
+
+
+// $("#debugbtn").click(function(){
+// // toggleVis("theConsoleContainer");
+// $("#theConsoleContainer").fadeToggle();
+// $('html, body').animate({
+// scrollTop: $("#theConsoleContainer").offset().top
+// }, 2000);
+// // var $target = $('html,body');
+// // $target.animate({scrollTop: $target.height()}, 1000);
+// });
$("#button_init_system").click(function(){
exec_init_system();
});
+ unfolds($("#show_advanced_options"),$("#advancedOptionsContainer"));
+ unfolds($("#show_theConsole"),$("#theConsoleContainer"));
+
timer = $.timer(function() {
clear_report();
timer.stop();
});
+
+
+
+
+
+
+
+
+function unfold(button,container){
+ var button_text = button.html();
+ var new_button_text;
+
+ if(container.is(':visible')){
+ new_button_text = button_text.replace("[-]","[+]");
+ } else {
+ new_button_text = button_text.replace("[+]","[-]");
+ }
+ container.fadeToggle();
+ $('html, body').animate({
+ scrollTop: container.offset().top
+ }, 2000);
+ button.html(new_button_text);
+}
+
+function unfolds(button,container){
+ button.click(function(){
+ unfold(button,container);
+ });
+
+ var button_text = button.html();
+
+ if(container.is(':visible')){
+ button.html("[-] "+button_text);
+ } else {
+ button.html("[+] "+button_text);
+ }
+
+}
+
+
function set_clear_timer(){
timer.set({time:3000,autostart: true});
}
print "</script>";
# end of that story
- print "<input type='button' id='debugbtn' value='show/hide debug output' >";
- print "<input type='button' id='advoptbtn' value='show/hide advanced options'>";
+# print "<input type='button' id='debugbtn' value='show/hide debug output' >";
+# print "<input type='button' id='advoptbtn' value='show/hide advanced options'>";
print "</td></tr>";
print "</table>";
print "</p>";
-
+
+
+
+ print "<p id='show_advanced_options' class='quasibutton' >advanced options</p>";
print "<div id='advancedOptionsContainer' class='stylishBox hidden_by_default'>";
print "<div class='header'>advanced options</div>";
print "<div id='advancedOptions'>";
print q%<input type='button' id='button_init_system' value='init system'
title="initialize the readout system (resets the TRB3)">%;
print "</td></tr></table>";
-
-
print "</div>";
print "</div>";
+ print "<p id='show_theConsole' class='quasibutton' >show debug output</p>";
print "<div id='theConsoleContainer' class='stylishBox hidden_by_default'>";
print "<div class='header'>debug output</div>";
print "<div id='theConsole'>[the \"console\"]</div>";