{'head'}; my $body = \$_[1]->{'body'}; my $u = LJ::User->remote; LJ::need_res('stc/lj_base-app.css', 'stc/imgupload.css', 'stc/display_none.css'); if ($GET{upload_count} || LJ::did_post()) { my $js = ""; if (my $ct = $GET{upload_count}) { for my $pn (1..$ct) { my $swidth = int($GET{"sw_$pn"}); my $sheight = int($GET{"sh_$pn"}); my $esurl = LJ::ejs($GET{"su_$pn"}); my $eppurl = LJ::ejs($GET{"pp_$pn"}); $js .= "InOb.onUpload(\"$esurl\", \"$eppurl\", $swidth, $sheight);\n"; } # From URL, with optional alt text } else { my $img = LJ::ejs($POST{'url'}); my $alt = LJ::ejs($POST{'alt'}); $js = "InOb.onInsURL(\"$img\", 0, 0, \"$alt\")\n"; } my $ret = qq{
}; return $ret; } my $step = 1; my $ret = ''; $$head .= qq~ ~; $ret .= "