WIP Rename edit-a-molecule files to be more consistent
This commit is contained in:
committed by
Victor Shnayder
parent
b864770da4
commit
41cce2d84f
@@ -857,7 +857,7 @@ class EditAMoleculeInput(InputTypeBase):
|
||||
"""
|
||||
"""
|
||||
context = {
|
||||
'applet_loader': '/static/js/capa/edit-a-molecule.js',
|
||||
'applet_loader': '/static/js/capa/editamolecule.js',
|
||||
}
|
||||
|
||||
return context
|
||||
|
||||
@@ -1,33 +0,0 @@
|
||||
<!doctype html>
|
||||
<html>
|
||||
<head>
|
||||
<title>Edit A Molecule</title>
|
||||
<meta http-equiv="content-type" content="text/html; charset=UTF-8"/>
|
||||
<link type="text/css" rel="stylesheet" href="JsMolCalc.css"/>
|
||||
<script type="text/javascript" src="jsmolcalc/jsmolcalc.nocache.js"></script>
|
||||
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
|
||||
<script type="text/javascript" src="http://underscorejs.org/underscore-min.js"></script>
|
||||
<script type="text/template" id="task-template">
|
||||
<li class="task">
|
||||
<label><%= task %></label> <button>Check</button> <span class="result"></span>
|
||||
</li>
|
||||
</script>
|
||||
<script src="edit-a-molecule.js" type="text/javascript"></script>
|
||||
</head>
|
||||
<body>
|
||||
<h1>Edit A Molecule</h1>
|
||||
<p>The molecule Dopamine is shown below. Dopamine is a neurotransmitter.</p>
|
||||
|
||||
<object type="application/x-java-applet" id="JME" height="400" width="500">
|
||||
<param name="archive" value="JME.jar" />
|
||||
<param name="code" value="JME.class" />
|
||||
Applet failed to run. No Java plug-in was found.
|
||||
</object>
|
||||
|
||||
<div id="properties"></div>
|
||||
|
||||
<button id="update">Update</button>
|
||||
<p>Edit the molecule to complete each one of the following the tasks. Click the check button to check your answer for that. Click submit when you are done.</p>
|
||||
<ul id="tasks"></ul>
|
||||
</body>
|
||||
</html>
|
||||
@@ -13,12 +13,13 @@
|
||||
% endif
|
||||
|
||||
<object type="application/x-java-applet" id="applet_${id}" class="applet" height="400" width="500">
|
||||
<param name="archive" value="/static/applets/capa/edit-a-molecule.jar" />
|
||||
<param name="archive" value="/static/applets/capa/editamolecule/JME.jar" />
|
||||
<param name="code" value="JME.class" />
|
||||
<param name="file" value="${file}" />
|
||||
Applet failed to run. No Java plug-in was found.
|
||||
</object>
|
||||
|
||||
|
||||
<input type="hidden" name="input_${id}" id="input_${id}" value="${value|h}"/>
|
||||
|
||||
<p class="status">
|
||||
|
||||
@@ -1,38 +0,0 @@
|
||||
/** Add css rules here for your application. */
|
||||
|
||||
|
||||
/** Example rules used by the template application (remove for your app) */
|
||||
h1 {
|
||||
font-size: 2em;
|
||||
font-weight: bold;
|
||||
color: #777777;
|
||||
margin: 40px 0px 70px;
|
||||
}
|
||||
|
||||
.calculateButton {
|
||||
display: block;
|
||||
font-size: 16pt;
|
||||
}
|
||||
|
||||
.newMoleculeButton {
|
||||
display: block;
|
||||
font-size: 16pt;
|
||||
}
|
||||
|
||||
/** Most GWT widgets already have a style name defined */
|
||||
.gwt-DialogBox {
|
||||
width: 400px;
|
||||
}
|
||||
|
||||
.dialogVPanel {
|
||||
margin: 5px;
|
||||
}
|
||||
|
||||
.serverResponseLabelError {
|
||||
color: red;
|
||||
}
|
||||
|
||||
/** Set ids using widget.getElement().setId("idOfElement") */
|
||||
#closeButton {
|
||||
margin: 15px 6px 6px;
|
||||
}
|
||||
Reference in New Issue
Block a user