Hooked courseware up to mongo correctly, persisting solutions and configured controller to correctly pass user to next course or return to first if all are completed

This commit is contained in:
Nathan Leniz
2015-02-04 21:28:10 -05:00
parent 70d704d975
commit 9246d7f663
5 changed files with 49 additions and 9 deletions

View File

@@ -37,11 +37,18 @@ var libraryIncludes = "<script src='//ajax.googleapis.com/ajax/libs/jquery/2.1.3
"<link rel='stylesheet' href='//maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css'/>" +
"<style>body { padding: 0px 3px 0px 3px; }</style>";
var allTests = '';
(function() {
tests.forEach(function(elem) {
allTests += elem + ' ';
});
})();
var coursewareTests = "<script>" +
"var allTestsGood = true;" +
"var expect = chai.expect; " +
"try {" +
tests[0] +
allTests +
"} catch (err) {" +
"allTestsGood = false;" +
"}" +