Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-platform
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
edx-platform
Commits
41cce2d8
Commit
41cce2d8
authored
Jan 09, 2013
by
Carlos Andrés Rocha
Committed by
Victor Shnayder
Feb 05, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
WIP Rename edit-a-molecule files to be more consistent
parent
b864770d
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
3 additions
and
73 deletions
+3
-73
common/lib/capa/capa/inputtypes.py
+1
-1
common/lib/capa/capa/templates/edit-a-molecule.html
+0
-33
common/lib/capa/capa/templates/editamolecule.html
+2
-1
common/static/applets/capa/editamolecule/JME.jar
+0
-0
common/static/css/capa/edit-a-molecule.css
+0
-38
common/static/js/capa/editamolecule.js
+0
-0
No files found.
common/lib/capa/capa/inputtypes.py
View file @
41cce2d8
...
...
@@ -857,7 +857,7 @@ class EditAMoleculeInput(InputTypeBase):
"""
"""
context
=
{
'applet_loader'
:
'/static/js/capa/edit
-a-
molecule.js'
,
'applet_loader'
:
'/static/js/capa/edit
a
molecule.js'
,
}
return
context
...
...
common/lib/capa/capa/templates/edit-a-molecule.html
deleted
100644 → 0
View file @
b864770d
<!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
>&
nbsp
;
<
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>
common/lib/capa/capa/templates/editamolecule.html
View file @
41cce2d8
...
...
@@ -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/edit
amolecule/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"
>
...
...
common/static/applets/capa/edit
-a-molecule
.jar
→
common/static/applets/capa/edit
amolecule/JME
.jar
View file @
41cce2d8
File moved
common/static/css/capa/edit-a-molecule.css
deleted
100644 → 0
View file @
b864770d
/** 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
;
}
common/static/js/capa/edit
-a-
molecule.js
→
common/static/js/capa/edit
a
molecule.js
View file @
41cce2d8
File moved
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment