Commit 5a283127 by marco

clean up based on cahrens pull requests notes

parent 50b92378
......@@ -3,7 +3,7 @@
margin: 40px;
}
//Problem selector requirements - TO DO: Marco -determine placement, integration for this
//Problem Selector tab menu requirements
.js .tabs .tab {
display: none;
}
......
......@@ -28,13 +28,13 @@ metadata:
"
data: |
<problem>
<p>Dropdown problems gives a limited set of options for students to respond with, and present those options
<p>Dropdown problems give a limited set of options for students to respond with, and present those options
in a format that encourages them to search for a specific answer rather than being immediately presented with options from which to recognize the correct answer.</p>
<p>
The answer options and the identification of the correct answer is defined in the <b>optioninput</b> tag.
</p>
<p>Translation between Dropdowns and __________ is extremely straightforward:
<p>Translation between Dropdown and __________ is extremely straightforward:
<optionresponse>
<optioninput options="('Multiple Choice','Text Input','Numerical Input','External Response','Image Response')" correct="Multiple Choice"></optioninput>
......
/**
* @name jQuery Tabs
* @author Trevor Davis
* @copyright (cc) Trevor Davis (http://www.trevordavis.net)
*
* Licensed under the CC-GNU GPL (http://creativecommons.org/licenses/GPL/2.0/)
*/(function(e,t,n,r){var i=function(t,n){this.elem=t;this.$elem=e(t);this.options=n;this.metadata=this.$elem.data("tabs-options");this.$navTabs=this.$elem.find(".nav-tabs");this.$tabs=this.$elem.find(".tabs")};i.prototype={defaults:{},init:function(){var t=this;t.$navTabs.on("click","a",e.proxy(t.handleClick,t));t.setInitial();t.$tabs.find(".current").show();return this},changeTabs:function(e,t){var n=this,r=n.$tabs.find(".current");n.$navTabs.find(".current").removeClass("current");e.addClass("current");r.fadeOut(500,function(){t.fadeIn(500,function(){r.add(t).toggleClass("current")})})},handleClick:function(t){var n=this,r=e(t.currentTarget),i=r.parent(),s=r.attr("href").split("#")[1],o=e("#"+s);o&&!i.hasClass("current")&&n.changeTabs(i,o);t.preventDefault()},setInitial:function(){var e=this,n=t.location.href.split("#")[1],r,i,s;if(n){r=n.replace("tab-","");i=e.$tabs.find("#"+r);if(i.length){s=e.$navTabs.find('a[href$="#'+r+'"]').parent();s.length&&e.changeTabs(s,i)}}}};i.defaults=i.prototype.defaults;e.fn.tabs=function(e){return this.each(function(){(new i(this,e)).init()})}})(jQuery,window,document);
\ No newline at end of file
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