Commit 374cd94b authored by Leigh Stoller's avatar Leigh Stoller

Hack in quickie "Full Screen" button for vis.

parent 19616c33
......@@ -148,6 +148,10 @@ function Show($which, $zoom, $detail)
$html .= " onclick=\"VisChange('$zoom', 1);\">";
$html .= "Show Details</button>\n";
}
$html .= "&nbsp &nbsp &nbsp &nbsp &nbsp &nbsp ";
$html .= "<button name=fullscreenvis type=button value=1";
$html .= " onclick=\"FullScreenVis();\">";
$html .= "Full Screen</button>\n";
}
elseif ($which == "nsfile") {
$nsdata = "";
......@@ -174,7 +178,7 @@ function Show($which, $zoom, $detail)
#
function ShowVis($pid, $eid, $zoom = 1.25, $detail = 1) {
$html = "<div id=fee style='display: block; overflow: hidden; ".
" position: relative; z-index:1010; height: 380px; ".
" position: relative; z-index:1010; height: 450px; ".
" width: 90%; border: 2px solid black;'>\n".
" <div id=myvisdiv style='position:relative;'>\n".
" <img id=myvisimg border=0 ".
......@@ -530,13 +534,15 @@ echo "<script type='text/javascript' language='javascript'>
"resizeable=yes,scrollbars=yes,status=yes,".
"menubar=yes');
}
function SaveNS() {
window.open('spitnsdata.php3?pid=$pid&eid=$eid',
'_blank','width=700,height=400,toolbar=no,".
"resizeable=yes,scrollbars=yes,status=yes,".
"menubar=yes');
}
function FullScreenVis() {
window.location.replace('shownsfile.php3?pid=$pid&eid=$eid');
}
</script>\n";
#
......
......@@ -446,7 +446,7 @@ span.topbaroption { background-color:#E1E1EA; }
display: block;
position: relative;
width: 90%;
height: 380px;
height: 450px;
overflow: auto;
color: #333;
background-color: #fff;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment