Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
emulab-devel
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Merge Requests
0
Merge Requests
0
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
Elijah Grubb
emulab-devel
Commits
374cd94b
Commit
374cd94b
authored
Aug 07, 2006
by
Leigh Stoller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Hack in quickie "Full Screen" button for vis.
parent
19616c33
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
3 deletions
+9
-3
www/showexp.php3
www/showexp.php3
+8
-2
www/style.css
www/style.css
+1
-1
No files found.
www/showexp.php3
View file @
374cd94b
...
...
@@ -148,6 +148,10 @@ function Show($which, $zoom, $detail)
$html
.=
" onclick=
\"
VisChange('
$zoom
', 1);
\"
>"
;
$html
.=
"Show Details</button>
\n
"
;
}
$html
.=
"            "
;
$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:
38
0px; "
.
" position: relative; z-index:1010; height:
45
0px; "
.
" 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
"
;
#
...
...
www/style.css
View file @
374cd94b
...
...
@@ -446,7 +446,7 @@ span.topbaroption { background-color:#E1E1EA; }
display
:
block
;
position
:
relative
;
width
:
90%
;
height
:
38
0px
;
height
:
45
0px
;
overflow
:
auto
;
color
:
#333
;
background-color
:
#fff
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment