[LON-CAPA-cvs] cvs: loncom /homework chemresponse.pm

albertel lon-capa-cvs@mail.lon-capa.org
Fri, 18 Feb 2005 05:37:42 -0000


albertel		Fri Feb 18 00:37:42 2005 EDT

  Modified files:              
    /loncom/homework	chemresponse.pm 
  Log:
  - xhtml cleanups
  
  
Index: loncom/homework/chemresponse.pm
diff -u loncom/homework/chemresponse.pm:1.46 loncom/homework/chemresponse.pm:1.47
--- loncom/homework/chemresponse.pm:1.46	Thu Feb 17 16:42:37 2005
+++ loncom/homework/chemresponse.pm	Fri Feb 18 00:37:42 2005
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # chemical equation style response
 #
-# $Id: chemresponse.pm,v 1.46 2005/02/17 21:42:37 albertel Exp $
+# $Id: chemresponse.pm,v 1.47 2005/02/18 05:37:42 albertel Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -84,7 +84,8 @@
 <html>
 <head>
 <title>Molecule Editor</title>
-<script language="JavaScript">
+<script type="text/javascript">
+// <!--
 function submitSmiles() {
     jmeFile = document.applets.JME.jmeFile();
     if (jmeFile == "") {
@@ -98,6 +99,7 @@
 function openHelpWindow() {
     window.open("/adm/jme/jme_help.html","","scrollbars=yes,resizable=yes,width=500,height=600");
 }
+// -->
 </script>
 </head>
 <body bgcolor="#ffffff">
@@ -109,11 +111,11 @@
 </applet><br />
 <font face="arial,helvetica,sans-serif" size=-1><a href="http://www.molinspiration.com/jme/index.html">JME Editor</a> courtesy of Peter Ertl, Novartis</font>
 <form>
-<input type="button" name="submit" value="Insert Answer" onClick = "submitSmiles();" />
+<input type="button" name="submit" value="Insert Answer" onclick = "submitSmiles();" />
 <br />
-<input type="button" value="  Close  " onClick = "window.close()" />
+<input type="button" value="  Close  " onclick = "window.close()" />
 &nbsp;&nbsp;
-<input type="button" value="  Help  " onClick = "openHelpWindow()" />
+<input type="button" value="  Help  " onclick = "openHelpWindow()" />
 </form>
 </center>
 </body>
@@ -123,7 +125,7 @@
     $body=~s/\n/ /g;
     my $docopen=&Apache::lonhtmlcommon::javascript_docopen();
     my $result=<<CHEMINPUT;
-<input type="button" value="Draw Molecule" onClick="javascript:editor=window.open('','','width=500,height=500,scrollbars=no,resizable=yes');editor.$docopen;editor.document.writeln('$body')" />
+<input type="button" value="Draw Molecule" onclick="javascript:editor=window.open('','','width=500,height=500,scrollbars=no,resizable=yes');editor.$docopen;editor.document.writeln('$body')" />
 CHEMINPUT
     return $result;
 }
@@ -334,13 +336,15 @@
     my $docopen=&Apache::lonhtmlcommon::javascript_docopen();
     my $result=<<EDITREACTION;
 <script type="text/javascript">
+// <!--
     function create_reaction_window_${id}_${field} () {
 	editor=window.open('','','width=500,height=270,scrollbars=no,resizable=yes');
 	editor.$docopen;
 	editor.document.writeln('<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN"><html> <head><title>LON-CAPA Reaction Editor</title></head><frameset rows="30%,*" border="0">  <frame src="/res/adm/pages/reactionresponse/reaction_viewer.html?inhibitmenu=yes" name="viewer" scrolling="no" />  <frame src="/res/adm/pages/reactionresponse/reaction_editor.html?inhibitmenu=yes&reaction=$reaction_es&id=$id_es&field=$field_es" name="editor" scrolling="no" /> </frameset> </html>');
     }
+// -->
 </script>
-<input type='button' value='Edit Answer' onClick="javascript:create_reaction_window_${id}_${field}();void(0);" />
+<input type='button' value='Edit Answer' onclick="javascript:create_reaction_window_${id}_${field}();void(0);" />
 EDITREACTION
     return $result;
 }