| @@ 7301-7314 (lines=14) @@ | ||
| 7298 | $item++; |
|
| 7299 | } |
|
| 7300 | ||
| 7301 | if (!empty($answerCorrect) && !empty($selectedValue)) { |
|
| 7302 | $s.= '<script> |
|
| 7303 | jsPlumb.ready(function() { |
|
| 7304 | jsPlumb.connect({ |
|
| 7305 | source: "window_'.$windowId.'", |
|
| 7306 | target: "window_'.$questionId.'_'.$selectedValue.'_answer", |
|
| 7307 | endpoint:["Blank", { radius:15 }], |
|
| 7308 | anchor:["RightMiddle","LeftMiddle"], |
|
| 7309 | paintStyle:{ strokeStyle:"#8a8888" , lineWidth:8 }, |
|
| 7310 | connector: [connectorType, { curviness: curvinessValue } ], |
|
| 7311 | }) |
|
| 7312 | }); |
|
| 7313 | </script>'; |
|
| 7314 | } |
|
| 7315 | $s .= '</select></div></td>'; |
|
| 7316 | ||
| 7317 | $s.='<td width="45%" valign="top" >'; |
|
| @@ 7389-7395 (lines=7) @@ | ||
| 7386 | } |
|
| 7387 | $s .= '</select>'; |
|
| 7388 | ||
| 7389 | if (!empty($answerCorrect) && !empty($selectedValue)) { |
|
| 7390 | $s.= '<script> |
|
| 7391 | $(function() { |
|
| 7392 | deleteItem($("#'.$questionId.'_'.$selectedValue.'"), $("#drop_'.$windowId.'")); |
|
| 7393 | }); |
|
| 7394 | </script>'; |
|
| 7395 | } |
|
| 7396 | ||
| 7397 | ||
| 7398 | if (isset($select_items[$lines_count])) { |
|