X new html for export

This commit is contained in:
benfry
2003-01-26 17:50:01 +00:00
parent 887bc724e4
commit a32ad08129
2 changed files with 34 additions and 2 deletions

View File

@@ -1394,10 +1394,39 @@ afterwards, some of these steps need a cleanup function
}
}
//File htmlOutputFile = new File(projectDir, "index.html");
File htmlOutputFile = new File(appletDir, "index.html");
FileOutputStream fos = new FileOutputStream(htmlOutputFile);
PrintStream ps = new PrintStream(fos);
ps.println("<html>");
ps.println("<head>");
ps.println("<title>" + exportSketchName + " : Built with Proce55ing</title>");
ps.println("<meta http-equiv=\"Content-Type\" content=\"text/html; charset=iso-8859-1\">");
ps.println("<BODY BGCOLOR=\"#666666\" text=\"#FFFFFF\" link=\"#CCCC00\" vlink=\"#CCCC00\" alink=\"#999900\">");
ps.println("<center>");
ps.println(" <table width=\"400\" border=\"0\" cellspacing=\"0\" cellpadding=\"10\">");
ps.println(" <tr>");
ps.println(" <td>&nbsp;</td>");
ps.println(" </tr>");
ps.println(" <tr>");
ps.println(" <td><applet code=\"" + exportSketchName + " archive=\"" + exportSketchName + ".jar width=" + wide + " height=" + high + ">");
ps.println(" </applet></td>");
ps.println(" </tr>");
ps.println(" <tr>");
ps.println(" <td>&nbsp;</td>");
ps.println(" </tr>");
ps.println(" <tr>");
ps.println(" <td><a href=\"" + exportSketchName + ".java\"><font face=\"Arial, Helvetica, sans-serif\" size=\"2\">Source code</font></a></td>");
ps.println(" </tr>");
ps.println(" <tr>");
ps.println(" <td><font size=\"2\" face=\"Arial, Helvetica, sans-serif\">Built with <a href=\"http://Proce55ing.net\">Proce55ing</a></font></td>");
ps.println(" </tr>");
ps.println(" </table>");
ps.println("</center>");
ps.println("</body>");
ps.println("</html>");
/*
ps.println("<HTML> <BODY BGCOLOR=\"white\">");
ps.println();
ps.println("<BR> <BR> <BR> <CENTER>");
@@ -1415,8 +1444,11 @@ afterwards, some of these steps need a cleanup function
ps.println("</CENTER>");
ps.println("</BODY> </HTML>");
*/
ps.flush();
ps.close();
#ifdef MACOS
/*
if (PdeBase.platform == PdeBase.MACOS9) {

View File

@@ -10,9 +10,9 @@ _ new colors chosen by casey
_ disappearing text caret on win2k
_ works in 'insert' mode
_ framerate() and framerate(15)
_ pmouseX problem reported by casey (in bugs.txt)
_ weirdness with mac swiss-german keyboard on []{}|
_ framerate() and framerate(15)
_ several examples broken (note from creas) in bugs.txt