????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_old6/Html/LevelF/Category2/ |
Upload File : |
<!doctype html>
<html>
<head>
<title>Colour the body parts</title>
<script type="text/javascript" src="../../../js/allScriptsForLessonsHtml.js"></script>
<style type="text/css">
svg
{
position: absolute;
background-color: transparent;
}
</style>
<script>
var _colorRed = 'rgba(255, 0, 0, 0.8)';
var _colorOrange = 'rgba(255, 153, 0, 0.8)';
var _colorWhite = 'rgba(255, 255, 255, 0.8)';
var _colorGreen = 'rgba(0, 255, 0, 0.9)';
var _colorPurple = 'rgba(128, 0, 128, 0.8)';
var _colorYellow = 'rgba(255, 255, 0, 0.9)';
var _currentColor = _colorOrange;
var _currentColorForValidation = 'none';
var _isEllipseClicked = false;
var _isShowClapsAnimation = false;
function page_preLoad()
{
shared_setDeviceTypeLevelCategoryLastLesson(Level.F, Category.No2);
shared_set_tblMainiPadBodyWidthHeight('id_tblMainiPadBody', 'id_meta');
shared_setHeaderTable('id_tblHeader', shared_title_page, shared_getSubTitle(Level.F, Category.No2, 36), true, true);
shared_setFooterTable('id_tblFooter', true, true, true, true, true);
var ids_headings = ['id_td_heading1'];
var ids_texts = new Array();
for (var textId = 1; textId <= 22; textId++)
{
ids_texts.push('id_td_text' + textId);
}
var ids_textBoxes = new Array();
for (var textBoxId = 1; textBoxId <= 5; textBoxId++)
{
var idTextBox = 'id_textBox' + textBoxId;
var eTextBox = document.getElementById(idTextBox);
eTextBox.value = '';
if (shared_currentDeviceType == shared_DeviceTypeAndroid)
{
eTextBox.style.border = 'solid 2px black';
}
ids_textBoxes.push(idTextBox);
}
var ids_All = ids_headings.concat(ids_texts, ids_textBoxes);
shared_adjust_fontSize_for_ids_all_devices(ids_All, 70);
var id_tables_array = ['id_table1'];
shared_border_collapse_for_tables_for_all(id_tables_array);
setSelectColors();
}
function page_onLoad()
{
setAllSvgsWidthHeightAndPositionFromTds();
setAllEllipseStyles();
}
function setSelectColors()
{
var eTdRed = document.getElementById('id_td_redColor');
var eTdOrange = document.getElementById('id_td_orangeColor');
var eTdWhite = document.getElementById('id_td_whiteColor');
var eTdGreen = document.getElementById('id_td_greenColor');
var eTdPurple = document.getElementById('id_td_purpleColor');
var eTdYellow = document.getElementById('id_td_yellowColor');
var eTdCurrentColor = document.getElementById('id_td_currentColor');
eTdRed.style.background = _colorRed;
eTdOrange.style.background = _colorOrange;
eTdWhite.style.background = _colorWhite;
eTdGreen.style.background = _colorGreen;
eTdPurple.style.background = _colorPurple;
eTdYellow.style.background = _colorYellow;
eTdCurrentColor.style.background = _currentColor;
}
function redColor_click()
{
_currentColor = _colorRed;
_currentColorForValidation = 'red';
setLableColor();
}
function orangeColor_click()
{
_currentColor = _colorOrange;
_currentColorForValidation = 'orange';
setLableColor();
}
function whiteColor_click()
{
_currentColor = _colorWhite;
_currentColorForValidation = 'white';
setLableColor();
}
function greenColor_click()
{
_currentColor = _colorGreen;
_currentColorForValidation = 'green';
setLableColor();
}
function purpleColor_click()
{
_currentColor = _colorPurple;
_currentColorForValidation = 'purple';
setLableColor();
}
function yellowColor_click()
{
_currentColor = _colorYellow;
_currentColorForValidation = 'yellow';
setLableColor();
}
function setLableColor()
{
var eCurrentColor = document.getElementById('id_td_currentColor');
eCurrentColor.style.background = _currentColor;
}
function setAllSvgsWidthHeightAndPositionFromTds()
{
var nTds = 5;
for (var nthTd = 1; nthTd <= nTds; nthTd++)
{
shared_svg_setSvgWidthHeightAndPositionFromTd('id_td' + nthTd, 'id_svg' + nthTd);
}
}
function setAllEllipseStyles()
{
var allEllipseIdsArray = getAllEllipseIdsArray();
for (var indexEllipse = 0; indexEllipse < allEllipseIdsArray.length; indexEllipse++)
{
var id_ellipse = allEllipseIdsArray[indexEllipse];
var eEllipse = document.getElementById(id_ellipse);
eEllipse.userColor = 'none';
shared_svg_setEllipseStyle_stroke_width_zero(id_ellipse);
}
}
function getAllEllipseIdsArray()
{
var allEllipseIdsArray = new Array();
for (var nthEllipse = 1; nthEllipse <= 6; nthEllipse++)
{
allEllipseIdsArray.push('id_ellipse' + nthEllipse );
}
return (allEllipseIdsArray);
}
function ellipse_click(id_ellipse)
{
_isEllipseClicked = true;
var eEllipse = document.getElementById(id_ellipse);
eEllipse.userColor = _currentColorForValidation;
if (eEllipse.isValidated)
{
clearAllEllipses();
eEllipse = document.getElementById(id_ellipse);
}
eEllipse.style.stroke = 'blue';
eEllipse.style.fill = _currentColor;
}
function clearAllEllipses()
{
var allEllipseIdsArray = new Array();
for (var nthEllipse = 1; nthEllipse <= 6; nthEllipse++)
{
allEllipseIdsArray.push('id_ellipse' + nthEllipse);
}
shared_svg_clearMultiEllipsesUsingIdsArray(allEllipseIdsArray);
}
function btnValidate_click()
{
_isShowClapsAnimation = false;
for (var i = 1; i <= 6; i++)
{
var eEllipse = document.getElementById('id_ellipse' + i);
if ((i == 1) || (i == 2))
{
if (eEllipse.userColor == 'green')
{
_isShowClapsAnimation = true;
}
else
{
_isShowClapsAnimation = false;
break;
}
}
else if (i == 3)
{
if (eEllipse.userColor == 'purple')
{
_isShowClapsAnimation = true;
}
else
{
_isShowClapsAnimation = false;
break;
}
}
else if (i == 4)
{
if (eEllipse.userColor == 'red')
{
_isShowClapsAnimation = true;
}
else
{
_isShowClapsAnimation = false;
break;
}
}
else if (i == 5)
{
if (eEllipse.userColor == 'white')
{
_isShowClapsAnimation = true;
}
else
{
_isShowClapsAnimation = false;
break;
}
}
else if (i == 6)
{
if (eEllipse.userColor == 'orange' || eEllipse.userColor == 'yellow')
{
_isShowClapsAnimation = true;
}
else
{
_isShowClapsAnimation = false;
break;
}
}
}
var eTextBox1Value = document.getElementById('id_textBox1').value.toUpperCase();
var eTextBox2Value = document.getElementById('id_textBox2').value.toUpperCase();
var eTextBox3Value = document.getElementById('id_textBox3').value.toUpperCase();
var eTextBox4Value = document.getElementById('id_textBox4').value.toUpperCase();
var eTextBox5Value = document.getElementById('id_textBox5').value.toUpperCase();
if (_isShowClapsAnimation &&
((eTextBox1Value == 'YE') || (eTextBox1Value == 'YES')) &&
(eTextBox2Value == 'RAIN') &&
(eTextBox3Value == 'EART') &&
(eTextBox4Value == 'UNGS') &&
(eTextBox5Value == 'ODY'))
{
shared_show_claps_animation('shared_id_div_claps_image');
}
else if (!_isEllipseClicked)
{
shared_show_message_info(shared_title_application, "Please fill all body parts with colors!", MessageOption.OK);
show_message_info();
}
else
{
shared_show_message_info(shared_title_application, "There is a wrong data. Try again!", MessageOption.OK);
show_message_info();
}
}
function btnHome_click()
{
shared_btnHomeCategories_click('LevelF');
}
function btnPrevious_click()
{
window.location = 'LevelFCat2Lesson35.html';
}
function btnNext_click()
{
window.location = 'LevelFCat2Lesson37.html';
}
</script>
</head>
<body onload="page_onLoad()">
<div id="shared_id_div_claps_image">
</div>
<div id="shared_id_div_message">
</div>
<table id="id_tblMainiPadBody" border="1px" cellspacing="0" cellpadding="0">
<tr height="8%">
<td>
<div id="id_tblHeader"></div>
</td>
</tr>
<tr height="*" data-role="page"> <!-- for swiping left and right especially for Android device -->
<td>
<table width="100%" height="100%" border="0" cellpadding="2%" cellspacing="0">
<tr height="100%">
<td>
<table id="id_table1" width="100%" height="100%" border="1" cellpadding="0" cellspacing="0">
<tr height="4%">
<td id="id_td_heading1" class="shared_style_blue_24px_bold_padding_left_2_percent">Colour the body parts [click on image to paint with color]:</td>
</tr>
<tr height="11%">
<td>
<table width="100%" height="100%" border="0" cellpadding="0" cellspacing="2%">
<tr height="50%">
<td>
<table width="100%" height="100%" border="1" cellpadding="0" cellspacing="0">
<tr>
<td id="id_td_text1" class="shared_style_blue_24px_bold_padding_left_2_percent" style="border:none" width="*">Select color:</td>
<td id="id_td_redColor" width="7%" onclick="redColor_click()" style="border-top:none; border-bottom:none"> </td>
<td id="id_td_yellowColor" width="7%" onclick="yellowColor_click()" style="border-top:none; border-bottom:none"> </td>
<td id="id_td_orangeColor" width="7%" onclick="orangeColor_click()" style="border-top:none; border-bottom:none"> </td>
<td id="id_td_whiteColor" width="7%" onclick="whiteColor_click()" style="border-top:none; border-bottom:none"> </td>
<td id="id_td_greenColor" width="7%" onclick="greenColor_click()" style="border-top:none; border-bottom:none"> </td>
<td id="id_td_purpleColor" width="7%" onclick="purpleColor_click()" style="border-top:none; border-bottom:none"> </td>
<td id="id_td_text2" width="7%" style="border:none"> </td>
<td id="id_td_text3" width="7%" style="border:none"> </td>
<td id="id_td_text4" width="7%" style="border:none"> </td>
<td id="id_td_text5" width="7%" style="border:none"> </td>
</tr>
</table>
</td>
</tr>
<tr height="*">
<td>
<table width="100%" height="100%" border="1" cellpadding="0" cellspacing="0">
<tr>
<td id="id_td_text6" class="shared_style_blue_24px_bold_padding_left_2_percent" style="border:none" width="30%">Current color:</td>
<td id="id_td_currentColor" width="42%" style="border-top:none; border-bottom:none"> </td>
<td id="id_td_text7" width="*" style="border:none"> </td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
<tr height="*">
<td align="center">
<table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0">
<tr height="18%">
<td id="id_td1" width="40%" align="center">
<img src="../../../img/LevelF/Category2/LevelFCat2Lesson36/eyes.png" width="50%" alt="" draggable="false"/>
<svg id="id_svg1" style="visibility: hidden">
<ellipse id="id_ellipse1" cx="36%" cy="46%" rx="9%" ry="10%"/>
<ellipse id="id_ellipse2" cx="63%" cy="47%" rx="9%" ry="10%"/>
</svg>
</td>
<td width="*">
<table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td id="id_td_text8" class="shared_style_black_24px_bold_padding_left_2_percent" width="37%" align="right">Colour the e </td>
<td id="id_td_text9" width="18%">
<textarea id="id_textBox1" class="shared_style_blue_24px_bold" style="width:80%; text-align:left; resize:none" rows="1">
</textarea>
</td>
<td id="id_td_text10" class="shared_style_black_24px_bold_padding_left_2_percent" width="*">green.</td>
</tr>
</table>
</td>
</tr>
<tr height="20%">
<td id="id_td2" width="40%" align="center">
<img src="../../../img/LevelF/Category2/LevelFCat2Lesson36/brain.png" width="35%" alt="" draggable="false"/>
<svg id="id_svg2" style="visibility: hidden">
<ellipse id="id_ellipse3" cx="50%" cy="29%" rx="12%" ry="20%"/>
</svg>
</td>
<td width="*">
<table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td id="id_td_text11" class="shared_style_black_24px_bold_padding_left_2_percent" width="37%" align="right">Colour the b </td>
<td id="id_td_text12" width="18%">
<textarea id="id_textBox2" class="shared_style_blue_24px_bold" style="width:80%; text-align:left; resize:none" rows="1">
</textarea>
</td>
<td id="id_td_text13" class="shared_style_black_24px_bold_padding_left_2_percent" width="*">purple.</td>
</tr>
</table>
</td>
</tr>
<tr height="20%">
<td id="id_td3" width="40%" align="center">
<img src="../../../img/LevelF/Category2/LevelFCat2Lesson36/heart.png" width="35%" alt="" draggable="false"/>
<svg id="id_svg3" style="visibility: hidden">
<ellipse id="id_ellipse4" cx="52%" cy="46%" rx="6%" ry="20%"/>
</svg>
</td>
<td width="*">
<table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td id="id_td_text14" class="shared_style_black_24px_bold_padding_left_2_percent" width="37%" align="right">Colour the h </td>
<td id="id_td_text15" width="18%">
<textarea id="id_textBox3" class="shared_style_blue_24px_bold" style="width:80%; text-align:left; resize:none" rows="1">
</textarea>
</td>
<td id="id_td_text16" class="shared_style_black_24px_bold_padding_left_2_percent" width="*">red.</td>
</tr>
</table>
</td>
</tr>
<tr height="22%">
<td id="id_td4" width="40%" align="center">
<img src="../../../img/LevelF/Category2/LevelFCat2Lesson36/lungs.png" width="35%" alt="" draggable="false"/>
<svg id="id_svg4" style="visibility: hidden">
<ellipse id="id_ellipse5" cx="50%" cy="58%" rx="8%" ry="22%"/>
</svg>
</td>
<td width="*">
<table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td id="id_td_text17" class="shared_style_black_24px_bold_padding_left_2_percent" width="37%" align="right">Colour the l </td>
<td id="id_td_text18" width="18%">
<textarea id="id_textBox4" class="shared_style_blue_24px_bold" style="width:80%; text-align:left; resize:none" rows="1">
</textarea>
</td>
<td id="id_td_text19" class="shared_style_black_24px_bold_padding_left_2_percent" width="*">white.</td>
</tr>
</table>
</td>
</tr>
<tr height="*">
<td id="id_td5" width="40%" align="center">
<img src="../../../img/LevelF/Category2/LevelFCat2Lesson36/body.png" width="30%" alt="" draggable="false"/>
<svg id="id_svg5" style="visibility: hidden">
<ellipse id="id_ellipse6" cx="49%" cy="50%" rx="14%" ry="46%"/>
</svg>
</td>
<td width="*">
<table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td id="id_td_text20" class="shared_style_black_24px_bold_padding_left_2_percent" width="37%" align="right">Colour the b </td>
<td id="id_td_text21" width="18%">
<textarea id="id_textBox5" class="shared_style_blue_24px_bold" style="width:80%; text-align:left; resize:none" rows="1">
</textarea>
</td>
<td id="id_td_text22" class="shared_style_black_24px_bold_padding_left_2_percent" width="*">orange or yellow.</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>