| @@ 7354-7367 (lines=14) @@ | ||
| 7351 | $item++; |
|
| 7352 | } |
|
| 7353 | ||
| 7354 | if (!empty($answerCorrect) && !empty($selectedValue)) { |
|
| 7355 | $s.= '<script> |
|
| 7356 | jsPlumb.ready(function() { |
|
| 7357 | jsPlumb.connect({ |
|
| 7358 | source: "window_'.$windowId.'", |
|
| 7359 | target: "window_'.$questionId.'_'.$selectedValue.'_answer", |
|
| 7360 | endpoint:["Blank", { radius:15 }], |
|
| 7361 | anchor:["RightMiddle","LeftMiddle"], |
|
| 7362 | paintStyle:{ strokeStyle:"#8a8888" , lineWidth:8 }, |
|
| 7363 | connector: [connectorType, { curviness: curvinessValue } ], |
|
| 7364 | }) |
|
| 7365 | }); |
|
| 7366 | </script>'; |
|
| 7367 | } |
|
| 7368 | $s .= '</select></div></td>'; |
|
| 7369 | ||
| 7370 | $s.='<td width="45%" valign="top" >'; |
|
| @@ 7441-7447 (lines=7) @@ | ||
| 7438 | } |
|
| 7439 | $s .= '</select>'; |
|
| 7440 | ||
| 7441 | if (!empty($answerCorrect) && !empty($selectedValue)) { |
|
| 7442 | $s.= '<script> |
|
| 7443 | $(function() { |
|
| 7444 | deleteItem($("#'.$questionId.'_'.$selectedValue.'"), $("#drop_'.$windowId.'")); |
|
| 7445 | }); |
|
| 7446 | </script>'; |
|
| 7447 | } |
|
| 7448 | ||
| 7449 | if (isset($select_items[$lines_count])) { |
|
| 7450 | $s.= '<div id="window_'.$windowId.'_answer" class=""> |
|