| @@ 7445-7458 (lines=14) @@ | ||
| 7442 | $item++; |
|
| 7443 | } |
|
| 7444 | ||
| 7445 | if (!empty($answerCorrect) && !empty($selectedValue)) { |
|
| 7446 | $s.= '<script> |
|
| 7447 | jsPlumb.ready(function() { |
|
| 7448 | jsPlumb.connect({ |
|
| 7449 | source: "window_'.$windowId.'", |
|
| 7450 | target: "window_'.$questionId.'_'.$selectedValue.'_answer", |
|
| 7451 | endpoint:["Blank", { radius:15 }], |
|
| 7452 | anchor:["RightMiddle","LeftMiddle"], |
|
| 7453 | paintStyle:{ strokeStyle:"#8a8888" , lineWidth:8 }, |
|
| 7454 | connector: [connectorType, { curviness: curvinessValue } ], |
|
| 7455 | }) |
|
| 7456 | }); |
|
| 7457 | </script>'; |
|
| 7458 | } |
|
| 7459 | $s .= '</select></div></td>'; |
|
| 7460 | ||
| 7461 | $s.='<td width="45%" valign="top" >'; |
|
| @@ 7532-7538 (lines=7) @@ | ||
| 7529 | } |
|
| 7530 | $s .= '</select>'; |
|
| 7531 | ||
| 7532 | if (!empty($answerCorrect) && !empty($selectedValue)) { |
|
| 7533 | $s.= '<script> |
|
| 7534 | $(function() { |
|
| 7535 | deleteItem($("#'.$questionId.'_'.$selectedValue.'"), $("#drop_'.$windowId.'")); |
|
| 7536 | }); |
|
| 7537 | </script>'; |
|
| 7538 | } |
|
| 7539 | ||
| 7540 | if (isset($select_items[$lines_count])) { |
|
| 7541 | $s.= '<div id="window_'.$windowId.'_answer" class=""> |
|