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
7171e6b7
Commit
7171e6b7
authored
Jan 17, 2013
by
Diana Huang
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'feature/diana/rubric-input' into diana/open-ended-ui-updates
parents
3646ff53
18a3d5e7
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
79 additions
and
57 deletions
+79
-57
common/lib/xmodule/xmodule/gst_module.py
+2
-3
common/lib/xmodule/xmodule/js/src/graphical_slider_tool/graph.js
+2
-2
common/lib/xmodule/xmodule/js/src/graphical_slider_tool/gst.js
+3
-1
common/lib/xmodule/xmodule/js/src/graphical_slider_tool/gst_main.js
+1
-1
common/lib/xmodule/xmodule/js/src/graphical_slider_tool/sliders.js
+3
-3
common/lib/xmodule/xmodule/js/src/graphical_slider_tool/state.js
+1
-1
lms/static/js/help.js
+0
-0
lms/static/sass/multicourse/_about_pages.scss
+1
-22
lms/static/sass/multicourse/_help.scss
+65
-23
lms/templates/index.html
+1
-1
lms/templates/static_templates/faq.html
+0
-0
lms/templates/static_templates/help.html
+0
-0
No files found.
common/lib/xmodule/xmodule/gst_module.py
View file @
7171e6b7
...
@@ -24,11 +24,10 @@ class GraphicalSliderToolModule(XModule):
...
@@ -24,11 +24,10 @@ class GraphicalSliderToolModule(XModule):
'''
'''
js
=
{
js
=
{
'coffee'
:
[
resource_string
(
__name__
,
'js/src/javascript_loader.coffee'
)],
'js'
:
[
'js'
:
[
# 3rd party libraries used by graphic slider tool.
# 3rd party libraries used by graphic slider tool.
# TODO - where to store them - outside xmodule?
# TODO - where to store them - outside xmodule?
resource_string
(
__name__
,
'js/src/graphical_slider_tool/jstat-1.0.0.min.js'
),
resource_string
(
__name__
,
'js/src/graphical_slider_tool/gst_main.js'
),
resource_string
(
__name__
,
'js/src/graphical_slider_tool/gst_main.js'
),
resource_string
(
__name__
,
'js/src/graphical_slider_tool/state.js'
),
resource_string
(
__name__
,
'js/src/graphical_slider_tool/state.js'
),
resource_string
(
__name__
,
'js/src/graphical_slider_tool/logme.js'
),
resource_string
(
__name__
,
'js/src/graphical_slider_tool/logme.js'
),
...
@@ -38,8 +37,8 @@ class GraphicalSliderToolModule(XModule):
...
@@ -38,8 +37,8 @@ class GraphicalSliderToolModule(XModule):
resource_string
(
__name__
,
'js/src/graphical_slider_tool/graph.js'
),
resource_string
(
__name__
,
'js/src/graphical_slider_tool/graph.js'
),
resource_string
(
__name__
,
'js/src/graphical_slider_tool/el_output.js'
),
resource_string
(
__name__
,
'js/src/graphical_slider_tool/el_output.js'
),
resource_string
(
__name__
,
'js/src/graphical_slider_tool/g_label_el_output.js'
),
resource_string
(
__name__
,
'js/src/graphical_slider_tool/g_label_el_output.js'
),
resource_string
(
__name__
,
'js/src/graphical_slider_tool/gst.js'
)
resource_string
(
__name__
,
'js/src/graphical_slider_tool/gst.js'
)
]
]
}
}
js_module_name
=
"GraphicalSliderTool"
js_module_name
=
"GraphicalSliderTool"
...
...
common/lib/xmodule/xmodule/js/src/graphical_slider_tool/graph.js
View file @
7171e6b7
...
@@ -401,7 +401,7 @@ define('Graph', ['logme'], function (logme) {
...
@@ -401,7 +401,7 @@ define('Graph', ['logme'], function (logme) {
return
false
;
return
false
;
}
}
}
else
{
}
else
{
logme
(
'MESSAGE: "xticks" were not specified. Using defaults.'
);
//
logme('MESSAGE: "xticks" were not specified. Using defaults.');
return
false
;
return
false
;
}
}
...
@@ -416,7 +416,7 @@ define('Graph', ['logme'], function (logme) {
...
@@ -416,7 +416,7 @@ define('Graph', ['logme'], function (logme) {
return
false
;
return
false
;
}
}
}
else
{
}
else
{
logme
(
'MESSAGE: "yticks" were not specified. Using defaults.'
);
//
logme('MESSAGE: "yticks" were not specified. Using defaults.');
return
false
;
return
false
;
}
}
...
...
common/lib/xmodule/xmodule/js/src/graphical_slider_tool/gst.js
View file @
7171e6b7
...
@@ -14,7 +14,9 @@ window.GraphicalSliderTool = function (el) {
...
@@ -14,7 +14,9 @@ window.GraphicalSliderTool = function (el) {
// with a unique DOM ID), we will iterate over all children, and for
// with a unique DOM ID), we will iterate over all children, and for
// each match, we will call GstMain module.
// each match, we will call GstMain module.
$
(
el
).
children
(
'.graphical_slider_tool'
).
each
(
function
(
index
,
value
)
{
$
(
el
).
children
(
'.graphical_slider_tool'
).
each
(
function
(
index
,
value
)
{
GstMain
(
$
(
value
).
attr
(
'id'
));
JavascriptLoader
.
executeModuleScripts
(
$
(
value
),
function
(){
GstMain
(
$
(
value
).
attr
(
'id'
));
});
});
});
});
});
};
};
common/lib/xmodule/xmodule/js/src/graphical_slider_tool/gst_main.js
View file @
7171e6b7
...
@@ -19,7 +19,7 @@ define(
...
@@ -19,7 +19,7 @@ define(
if
(
$
(
'#'
+
gstId
).
attr
(
'data-processed'
)
!==
'processed'
)
{
if
(
$
(
'#'
+
gstId
).
attr
(
'data-processed'
)
!==
'processed'
)
{
$
(
'#'
+
gstId
).
attr
(
'data-processed'
,
'processed'
);
$
(
'#'
+
gstId
).
attr
(
'data-processed'
,
'processed'
);
}
else
{
}
else
{
logme
(
'MESSAGE: Already processed GST with ID '
+
gstId
+
'. Skipping.'
);
//
logme('MESSAGE: Already processed GST with ID ' + gstId + '. Skipping.');
return
;
return
;
}
}
...
...
common/lib/xmodule/xmodule/js/src/graphical_slider_tool/sliders.js
View file @
7171e6b7
...
@@ -20,9 +20,9 @@ define('Sliders', ['logme'], function (logme) {
...
@@ -20,9 +20,9 @@ define('Sliders', ['logme'], function (logme) {
}
else
if
(
sliderDiv
.
length
>
1
)
{
}
else
if
(
sliderDiv
.
length
>
1
)
{
logme
(
'ERROR: Found more than one slider for the parameter "'
+
paramName
+
'".'
);
logme
(
'ERROR: Found more than one slider for the parameter "'
+
paramName
+
'".'
);
logme
(
'sliderDiv.length = '
,
sliderDiv
.
length
);
logme
(
'sliderDiv.length = '
,
sliderDiv
.
length
);
}
else
{
}
//
else {
logme
(
'MESSAGE: Did not find a slider for the parameter "'
+
paramName
+
'".'
);
//
logme('MESSAGE: Did not find a slider for the parameter "' + paramName + '".');
}
//
}
}
}
function
createSlider
(
sliderDiv
,
paramName
)
{
function
createSlider
(
sliderDiv
,
paramName
)
{
...
...
common/lib/xmodule/xmodule/js/src/graphical_slider_tool/state.js
View file @
7171e6b7
...
@@ -24,7 +24,7 @@ define('State', ['logme'], function (logme) {
...
@@ -24,7 +24,7 @@ define('State', ['logme'], function (logme) {
dynamicElByElId
=
{};
dynamicElByElId
=
{};
stateInst
+=
1
;
stateInst
+=
1
;
logme
(
'MESSAGE: Creating state instance # '
+
stateInst
+
'.'
);
//
logme('MESSAGE: Creating state instance # ' + stateInst + '.');
// Initially, there are no parameters to track. So, we will instantiate
// Initially, there are no parameters to track. So, we will instantiate
// an empty object.
// an empty object.
...
...
lms/static/js/
faq
.js
→
lms/static/js/
help
.js
View file @
7171e6b7
File moved
lms/static/sass/multicourse/_about_pages.scss
View file @
7171e6b7
...
@@ -194,30 +194,9 @@
...
@@ -194,30 +194,9 @@
margin-bottom
:
40px
;
margin-bottom
:
40px
;
h3
{
h3
{
background
:
url('/static/images/bullet-closed.png')
no-repeat
left
0
.25em
;
font-family
:
$sans-serif
;
font-family
:
$sans-serif
;
font-weight
:
700
;
font-weight
:
700
;
margin-bottom
:
10px
;
margin-bottom
:
15px
;
padding-left
:
20px
;
cursor
:
pointer
;
}
.answer
{
display
:
none
;
color
:
#3c3c3c
;
padding-left
:
16px
;
font-family
:
$serif
;
li
{
line-height
:
1
.6em
;
}
}
// opened states
&
.opened
{
h3
{
background
:
url('/static/images/bullet-open.png')
no-repeat
left
0
.25em
;
}
}
}
}
}
}
}
...
...
lms/static/sass/multicourse/_help.scss
View file @
7171e6b7
.static-container.help
{
.static-container.help
{
section
.questions
{
section
.questions
{
float
:
left
;
@include
clearfix
;
width
:
flex-grid
(
9
);
margin-right
:
flex-gutter
();
article
{
nav
.categories
{
margin-bottom
:
40px
;
border
:
1px
solid
rgb
(
220
,
220
,
220
);
@include
box-sizing
(
border-box
);
float
:
left
;
margin-left
:
flex-gutter
();
padding
:
20px
;
width
:
flex-grid
(
3
);
h2
{
a
{
border-bottom
:
1px
solid
rgb
(
220
,
220
,
220
);
display
:
block
;
margin-bottom
:
40px
;
letter-spacing
:
1px
;
padding-bottom
:
20px
;
margin
:
0px
-20px
;
padding
:
12px
0px
12px
20px
;
text-align
:
left
;
&
:hover
{
background
:
rgb
(
245
,
245
,
245
);
text-decoration
:
none
;
}
}
}
}
}
}
section
.emails
{
.responses
{
border
:
1px
solid
rgb
(
220
,
220
,
220
);
float
:
left
;
@include
box-sizing
(
border-box
);
width
:
flex-grid
(
9
);
float
:
left
;
padding
:
20px
;
width
:
flex-grid
(
3
);
ul
{
.category
{
margin-left
:
0
;
padding-top
:
40px
;
padding-left
:
0
;
list-style
:
none
;
li
{
&
:first-child
{
margin-bottom
:
1em
;
padding-top
:
0px
;
}
>
h2
{
border-bottom
:
1px
solid
rgb
(
220
,
220
,
220
);
margin-bottom
:
40px
;
padding-bottom
:
20px
;
}
}
.response
{
margin-bottom
:
40px
;
h3
{
background
:
url('/static/images/bullet-closed.png')
no-repeat
left
0
.25em
;
font-family
:
$sans-serif
;
font-weight
:
700
;
margin-bottom
:
10px
;
padding-left
:
20px
;
cursor
:
pointer
;
}
.answer
{
display
:
none
;
color
:
#3c3c3c
;
padding-left
:
16px
;
font-family
:
$serif
;
li
{
line-height
:
1
.6em
;
}
}
// opened states
&
.opened
{
h3
{
background
:
url('/static/images/bullet-open.png')
no-repeat
left
0
.25em
;
}
}
}
}
}
}
}
}
}
}
lms/templates/index.html
View file @
7171e6b7
...
@@ -164,7 +164,7 @@
...
@@ -164,7 +164,7 @@
<section
id=
"video-modal"
class=
"modal home-page-video-modal video-modal"
>
<section
id=
"video-modal"
class=
"modal home-page-video-modal video-modal"
>
<div
class=
"inner-wrapper"
>
<div
class=
"inner-wrapper"
>
<iframe
width=
"640"
height=
"360"
src=
"http://www.youtube.com/embed/
IlNU60ZKj3I
?showinfo=0"
frameborder=
"0"
allowfullscreen
></iframe>
<iframe
width=
"640"
height=
"360"
src=
"http://www.youtube.com/embed/
XNaiOGxWeto
?showinfo=0"
frameborder=
"0"
allowfullscreen
></iframe>
</div>
</div>
</section>
</section>
...
...
lms/templates/static_templates/faq.html
View file @
7171e6b7
This diff is collapsed.
Click to expand it.
lms/templates/static_templates/help.html
View file @
7171e6b7
This diff is collapsed.
Click to expand it.
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