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
78a3b7cf
Commit
78a3b7cf
authored
Dec 12, 2012
by
Valera Rozuvan
Committed by
Alexander Kryklia
Jan 15, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added documentation for code. Fixed several minor issues. Added checks for some error cases.
parent
8efab2c9
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
0 deletions
+8
-0
common/lib/xmodule/xmodule/js/src/graphical_slider_tool/graph.js
+0
-0
common/lib/xmodule/xmodule/js/src/graphical_slider_tool/gst_main.js
+8
-0
No files found.
common/lib/xmodule/xmodule/js/src/graphical_slider_tool/graph.js
View file @
78a3b7cf
This diff is collapsed.
Click to expand it.
common/lib/xmodule/xmodule/js/src/graphical_slider_tool/gst_main.js
View file @
78a3b7cf
...
@@ -16,13 +16,21 @@ define(
...
@@ -16,13 +16,21 @@ define(
function
GstMain
(
gstId
)
{
function
GstMain
(
gstId
)
{
var
config
,
state
;
var
config
,
state
;
// Get the JSON configuration, and parse it, and store as an object.
config
=
JSON
.
parse
(
$
(
'#'
+
gstId
+
'_json'
).
html
()).
root
;
config
=
JSON
.
parse
(
$
(
'#'
+
gstId
+
'_json'
).
html
()).
root
;
// Parse the configuration settings for sliders and text inputs, and
// extract all of the defined constants (their names along with their
// initial values).
state
=
State
(
gstId
,
config
);
state
=
State
(
gstId
,
config
);
// Create the sliders and the text inputs, attaching them to
// approriate constants.
Sliders
(
gstId
,
config
,
state
);
Sliders
(
gstId
,
config
,
state
);
Inputs
(
gstId
,
config
,
state
);
Inputs
(
gstId
,
config
,
state
);
// Configure and display the loop. Attach event for the graph to be
// updated on any change of a slider or a text input.
Graph
(
gstId
,
config
,
state
);
Graph
(
gstId
,
config
,
state
);
}
}
});
});
...
...
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