| @@ 7290-7303 (lines=14) @@ | ||
| 7287 | $item++; |
|
| 7288 | } |
|
| 7289 | ||
| 7290 | if (!empty($answerCorrect) && !empty($selectedValue)) { |
|
| 7291 | $s.= '<script> |
|
| 7292 | jsPlumb.ready(function() { |
|
| 7293 | jsPlumb.connect({ |
|
| 7294 | source: "window_'.$windowId.'", |
|
| 7295 | target: "window_'.$questionId.'_'.$selectedValue.'_answer", |
|
| 7296 | endpoint:["Blank", { radius:15 }], |
|
| 7297 | anchor:["RightMiddle","LeftMiddle"], |
|
| 7298 | paintStyle:{ strokeStyle:"#8a8888" , lineWidth:8 }, |
|
| 7299 | connector: [connectorType, { curviness: curvinessValue } ], |
|
| 7300 | }) |
|
| 7301 | }); |
|
| 7302 | </script>'; |
|
| 7303 | } |
|
| 7304 | $s .= '</select></div></td>'; |
|
| 7305 | ||
| 7306 | $s.='<td width="45%" valign="top" >'; |
|
| @@ 7378-7384 (lines=7) @@ | ||
| 7375 | } |
|
| 7376 | $s .= '</select>'; |
|
| 7377 | ||
| 7378 | if (!empty($answerCorrect) && !empty($selectedValue)) { |
|
| 7379 | $s.= '<script> |
|
| 7380 | $(function() { |
|
| 7381 | deleteItem($("#'.$questionId.'_'.$selectedValue.'"), $("#drop_'.$windowId.'")); |
|
| 7382 | }); |
|
| 7383 | </script>'; |
|
| 7384 | } |
|
| 7385 | ||
| 7386 | ||
| 7387 | if (isset($select_items[$lines_count])) { |
|