X-Git-Url: https://git.auder.net/?p=qomet.git;a=blobdiff_plain;f=public%2Fjavascripts%2Fcourse.js;h=63205385fdd7e722e81d63c1bf0005949be638b0;hp=65b6ab75ec385efc96ed60c3acdbefa02236bad9;hb=14c9c66a3bc1abfeb3097a0c9fe4f0ff25fe2b8b;hpb=a3080c337cfaca9d600911396cae5a9233d43554 diff --git a/public/javascripts/course.js b/public/javascripts/course.js index 65b6ab7..6320538 100644 --- a/public/javascripts/course.js +++ b/public/javascripts/course.js @@ -1,4 +1,5 @@ /*Draft format (compiled to json) + * TODO: separate questions and answers in Evaluation object @@ -13,19 +14,26 @@ + choix 3 - choix4 - + with params interpolation £ (tout simplement) + / params: javascript parameter generator (another function, body only) * answer 2 (which can be on several lines) * With answer -*/ + + dans le cas de parametetrized, answer est une fonction javascript !! qui prend en arg le(s) param(s) + coté serveur on stock parameterized question + body func + une fois côté client, extra work first to 1) execute each func 2) replace (and store!!!) all params +https://stackoverflow.com/questions/7650071/is-there-a-way-to-create-a-function-from-a-string-with-javascript + + */ new Vue({ el: '#course', data: { - display: "evaluations", //or "students", or "grades" (admin mode) + display: "evaluations", //or "students" (in admin mode) course: course, monitorPwd: "", newEvaluation: { name: "" },