Ejemplo n.º 1
0
 /**
  * get_js_functionnames
  *
  * @return xxx
  */
 function get_js_functionnames()
 {
     // start list of function names
     $names = parent::get_js_functionnames();
     $names .= ($names ? ',' : '') . 'TypeChars,ShowHint,ShowClue,CheckAnswers,CompileGuesses';
     return $names;
 }
Ejemplo n.º 2
0
 /**
  * get_js_functionnames
  *
  * @return xxx
  */
 function get_js_functionnames()
 {
     // start list of function names
     $names = parent::get_js_functionnames();
     $names .= ($names ? ',' : '') . 'TypeChars,Hint,CheckWord,CheckFinished,TimesUp';
     return $names;
 }
Ejemplo n.º 3
0
 /**
  * get_js_functionnames
  *
  * @return xxx
  */
 function get_js_functionnames()
 {
     // start list of function names
     $names = parent::get_js_functionnames();
     $names .= ($names ? ',' : '') . 'CheckAnswer,TimesUp';
     return $names;
 }
Ejemplo n.º 4
0
 /**
  * fix_js_CheckPair_JMemori
  *
  * @param xxx $str (passed by reference)
  * @param xxx $start
  * @param xxx $length
  */
 function fix_js_CheckPair_JMemori(&$str, $start, $length)
 {
     $substr = substr($str, $start, $length);
     // surround main body of function with if (id>=0) { ... }
     $search = '/(?<={)(.*)(?=if \\(Pairs == F\\.length\\))/s';
     $replace = "\n\t" . 'if (id>=0) {$1}' . "\n\t";
     $substr = preg_replace($search, $replace, $substr, 1);
     parent::fix_js_CheckAnswers($substr, 0, strlen($substr));
     $str = substr_replace($str, $substr, $start, $length);
 }
Ejemplo n.º 5
0
 /**
  * get_js_functionnames
  *
  * @return xxx
  */
 function get_js_functionnames()
 {
     // start list of function names
     $names = parent::get_js_functionnames();
     $names .= ($names ? ',' : '') . 'TypeChars,ShowHint,ShowAnswers,ChangeQ,ShowHideQuestions,CheckMCAnswer,CheckMultiSelAnswer,CheckShortAnswer,CheckFinished,SwitchHybridDisplay,SetUpQuestions,CalculateOverallScore';
     return $names;
 }
Ejemplo n.º 6
0
 /**
  * fix_js_CheckFinished
  *
  * @param xxx $str (passed by reference)
  * @param xxx $start
  * @param xxx $length
  */
 function fix_js_CheckFinished(&$str, $start, $length)
 {
     parent::fix_js_CheckAnswers($str, $start, $length);
 }
Ejemplo n.º 7
0
 /**
  * get_js_functionnames
  *
  * @return xxx
  */
 function get_js_functionnames()
 {
     // Note that the drag functions get added twice to the html
     // once from hp6card.js_ (this is actually the JMatch version)
     // and once from djmix6.js_. Consequently, we need to process
     // these functions twice: once to delete, and then again to modify
     $drag = 'beginDrag,doDrag,endDrag';
     // start list of function names
     $names = parent::get_js_functionnames();
     $names .= ($names ? ',' : '') . "CardSetHTML,{$drag},CheckAnswer,TimesUp,WriteToGuess,{$drag}";
     return $names;
 }