Commit 7171e6b7 by Diana Huang

Merge branch 'feature/diana/rubric-input' into diana/open-ended-ui-updates

parents 3646ff53 18a3d5e7
...@@ -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"
......
...@@ -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;
} }
......
...@@ -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) {
JavascriptLoader.executeModuleScripts($(value), function(){
GstMain($(value).attr('id')); GstMain($(value).attr('id'));
}); });
}); });
});
}; };
...@@ -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;
} }
......
...@@ -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) {
......
...@@ -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.
......
...@@ -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;
}
} }
} }
} }
......
.static-container.help { .static-container.help {
section.questions { section.questions {
@include clearfix;
nav.categories {
border: 1px solid rgb(220,220,220);
@include box-sizing(border-box);
float: left;
margin-left: flex-gutter();
padding: 20px;
width: flex-grid(3);
a {
display: block;
letter-spacing: 1px;
margin: 0px -20px;
padding: 12px 0px 12px 20px;
text-align: left;
&:hover {
background: rgb(245,245,245);
text-decoration: none;
}
}
}
.responses {
float: left; float: left;
width: flex-grid(9); width: flex-grid(9);
margin-right: flex-gutter();
article { .category {
margin-bottom: 40px; padding-top: 40px;
&:first-child {
padding-top: 0px;
}
h2 { > h2 {
border-bottom: 1px solid rgb(220,220,220); border-bottom: 1px solid rgb(220,220,220);
margin-bottom: 40px; margin-bottom: 40px;
padding-bottom: 20px; padding-bottom: 20px;
} }
} }
}
section.emails { .response {
border: 1px solid rgb(220,220,220); margin-bottom: 40px;
@include box-sizing(border-box);
float: left;
padding: 20px;
width: flex-grid(3);
ul { h3 {
margin-left: 0; background: url('/static/images/bullet-closed.png') no-repeat left 0.25em;
padding-left: 0; font-family: $sans-serif;
list-style: none; font-weight: 700;
margin-bottom: 10px;
padding-left: 20px;
cursor: pointer;
}
.answer {
display: none;
color: #3c3c3c;
padding-left: 16px;
font-family: $serif;
li { li {
margin-bottom: 1em; line-height: 1.6em;
}
}
// opened states
&.opened {
h3 {
background: url('/static/images/bullet-open.png') no-repeat left 0.25em;
}
}
} }
} }
} }
} }
...@@ -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>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment