our $group= param('graph');
+my $defwidth= 370;
+my $defheight= 200;
+
our $elem= param('elem');
if (defined $elem) {
my $g= $graphs{$section,$group,$elem};
die unless $g;
- my $width= num_param('w',370,100,1600);
- my $height= num_param('h',200,100,1600);
+ my $width= num_param('w',$defwidth,100,1600);
+ my $height= num_param('h',$defheight,100,1600);
my $sloth= param('sloth');
die unless defined $sloth;
my $imgurl= "$self?graph=$detail§ion=$section".
"&sloth=$tsloth&elem=$elem";
print a({href=>"$imgurl&w=780&h=800"},
- img({src=>$imgurl, alt=>''}));
+ img({src=>$imgurl, alt=>'', width=>780, height=>800}));
}
}
print end_html();
foreach my $elem (@$elems) {
my $g= $graphs{$ref_section,$ref_group,$elem};
print img({src=>"$imgurl&elem=$elem&sloth=".($sloth + $g->{Slower}),
- alt=>''});
+ alt=>'', width=>$defwidth, height=>$defheight});
}
print "</span>";
print "</a>\n";