????JFIF??x?x????'
Server IP : 79.136.114.73 / Your IP : 3.133.59.209 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/LevelD/Category2/ |
Upload File : |
<!DOCTYPE html> <html> <head> <title>Fill glass with 'orange juice, water, milk, cooldrink and lassi'</title> <script type="text/javascript" src="../../../js/allScriptsForLessonsHtml.js"></script> <script> function page_preLoad() { shared_setDeviceTypeLevelCategoryLastLesson(Level.D, Category.No2); shared_set_tblMainiPadBodyWidthHeight('id_tblMainiPadBody', 'id_meta'); shared_setHeaderTable('id_tblHeader', shared_title_page, shared_getSubTitle(Level.D, Category.No2, 19), true, true); shared_setFooterTable('id_tblFooter', true, true, true, true, true); var ids_headings = ['id_td_heading1', 'id_td_heading2', 'id_td_heading3', 'id_td_heading4', 'id_td_heading5', 'id_td_heading6']; shared_adjust_fontSize_for_ids_all_devices(ids_headings, 70); shared_adjust_fontSize_for_ids_all_devices(['id_span_heading'], 60); } function page_onLoad() { } function td_click(event) { var id_td = event.currentTarget.id; var eTd = document.getElementById(id_td); var imagePath = '../../../img/LevelD/Category2/LevelDCat2Lesson19/'; if (eTd.getAttribute('liquidType') == 'orange') { if (eTd.getAttribute('liquid') == 'empty') { eTd.firstElementChild.src = imagePath + 'glassOrangeHalf.png'; eTd.setAttribute('liquid', 'half'); } else if (eTd.getAttribute('liquid') == 'half') { eTd.firstElementChild.src = imagePath + 'glassOrangeFull.png'; eTd.setAttribute('liquid', 'full'); } else//full { eTd.firstElementChild.src = imagePath + 'glassEmpty.png'; eTd.setAttribute('liquid', 'empty'); } } else if (eTd.getAttribute('liquidType') == 'coolDrink') { if (eTd.getAttribute('liquid') == 'empty') { eTd.firstElementChild.src = imagePath + 'glassCoolDrinkHalf.png'; eTd.setAttribute('liquid', 'half'); } else if (eTd.getAttribute('liquid') == 'half') { eTd.firstElementChild.src = imagePath + 'glassCoolDrinkFull.png'; eTd.setAttribute('liquid', 'full'); } else//full { eTd.firstElementChild.src = imagePath + 'glassEmpty.png'; eTd.setAttribute('liquid', 'empty'); } } else if ((eTd.getAttribute('liquidType') == 'milk') || (eTd.getAttribute('liquidType') == 'water') || (eTd.getAttribute('liquidType') == 'lassi')) { if (eTd.getAttribute('liquid') == 'empty') { eTd.firstElementChild.src = imagePath + 'glassWaterHalf.png'; eTd.setAttribute('liquid', 'half'); } else if (eTd.getAttribute('liquid') == 'half') { eTd.firstElementChild.src = imagePath + 'glassWaterFull.png'; eTd.setAttribute('liquid', 'full'); } else//full { eTd.firstElementChild.src = imagePath + 'glassEmpty.png'; eTd.setAttribute('liquid', 'empty'); } } } function btnValidate_click() { var set1GlassesLiquidCount = 0; var set2GlassesLiquidCount = 0; var set3GlassesLiquidCount = 0; var set4GlassesLiquidCount = 0; var set5GlassesLiquidCount = 0; for (var id = 1; id <= 1; id++) { var id_td = 'id_td_' + id; var eTd = document.getElementById(id_td); set1GlassesLiquidCount += getUserLiquidFilledValue(eTd); } for (var id = 2; id <= 3; id++) { var id_td = 'id_td_' + id; var eTd = document.getElementById(id_td); set2GlassesLiquidCount += getUserLiquidFilledValue(eTd); } for (var id = 4; id <= 6; id++) { var id_td = 'id_td_' + id; var eTd = document.getElementById(id_td); set3GlassesLiquidCount += getUserLiquidFilledValue(eTd); } for (var id = 7; id <= 10; id++) { var id_td = 'id_td_' + id; var eTd = document.getElementById(id_td); set4GlassesLiquidCount += getUserLiquidFilledValue(eTd); } for (var id = 11; id <= 15; id++) { var id_td = 'id_td_' + id; var eTd = document.getElementById(id_td); set5GlassesLiquidCount += getUserLiquidFilledValue(eTd); } var eTr = document.getElementById('id_tr_set1'); eTr.style.background = (set1GlassesLiquidCount == 0.5) ? shared_colorLightGreen : shared_colorLightRed; var eTr = document.getElementById('id_tr_set2'); eTr.style.background = (set2GlassesLiquidCount == 1.5) ? shared_colorLightGreen : shared_colorLightRed; var eTr = document.getElementById('id_tr_set3'); eTr.style.background = (set3GlassesLiquidCount == 2.5) ? shared_colorLightGreen : shared_colorLightRed; var eTr = document.getElementById('id_tr_set4'); eTr.style.background = (set4GlassesLiquidCount == 3.5) ? shared_colorLightGreen : shared_colorLightRed; var eTr = document.getElementById('id_tr_set5'); eTr.style.background = (set5GlassesLiquidCount == 4.5) ? shared_colorLightGreen : shared_colorLightRed; if ((set1GlassesLiquidCount == 0.5) && (set2GlassesLiquidCount == 1.5) && (set3GlassesLiquidCount == 2.5) && (set4GlassesLiquidCount == 3.5) && (set5GlassesLiquidCount == 4.5)) { shared_show_claps_animation('shared_id_div_claps_image'); } } function getUserLiquidFilledValue(eTd) { if (eTd.getAttribute('liquid') == 'half') { return (0.5); } else if (eTd.getAttribute('liquid') == 'full') { return (1.0); } return (0); } function btnPrevious_click() { window.location = 'LevelDCat2Lesson18.html'; } function btnNext_click() { window.location = 'LevelDCat2Lesson20.html'; } function btnHome_click() { shared_btnHomeCategories_click('LevelD'); } </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="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="2%"> <tr> <td> <table width="100%" height="100%" border="1" cellspacing="0" cellpadding="0" style="border-collapse:collapse"> <tr height="8%"> <td id="id_td_heading1" class="shared_style_blue_24px_bold_padding_left_2_percent" align="left">Fill the following glasses as asked:<br>[<span id="id_span_heading" style="color:red">1 click: half filled glass, 2 clicks: full filled glass, 3 clicks: empty</span>]</td> </tr> <tr height="*"> <td> <table width="100%" height="100%" border="0" cellspacing="2%" cellpadding="0"> <tr id="id_tr_set1" height="20%"> <td> <table width="100%" height="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td id="id_td_heading2" width="*" class="shared_style_black_24px_bold_padding_left_2_percent" width="60%">Half a glass orange juice.</td> <td width="8%"> </td> <td width="8%"> </td> <td width="8%"> </td> <td width="8%"> </td> <td id="id_td_1" width="8%" align="center" liquidType="orange" liquid="empty" onClick="td_click(event)"> <img src="../../../img/LevelD/Category2/LevelDCat2Lesson19/glassEmpty.png" width="95%" draggable="false"> </td> </tr> </table> </td> </tr> <tr id="id_tr_set2" height="20%"> <td> <table width="100%" height="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td id="id_td_heading4" width="*" class="shared_style_black_24px_bold_padding_left_2_percent">One and half glass of milk.</td> <td width="8%"> </td> <td width="8%"> </td> <td width="8%"> </td> <td id="id_td_2" width="8%" align="center" liquidType="milk" liquid="empty" onClick="td_click(event)"> <img src="../../../img/LevelD/Category2/LevelDCat2Lesson19/glassEmpty.png" width="95%" draggable="false"> </td> <td id="id_td_3" width="8%" align="center" liquidType="milk" liquid="empty" onClick="td_click(event)"> <img src="../../../img/LevelD/Category2/LevelDCat2Lesson19/glassEmpty.png" width="95%" draggable="false"> </td> </tr> </table> </td> </tr> <tr id="id_tr_set3" height="20%"> <td> <table width="100%" height="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td id="id_td_heading3" width="*" class="shared_style_black_24px_bold_padding_left_2_percent">Two and half glass of water.</td> <td width="8%"> </td> <td width="8%"> </td> <td id="id_td_4" width="8%" align="center" liquidType="water" liquid="empty" onClick="td_click(event)"> <img src="../../../img/LevelD/Category2/LevelDCat2Lesson19/glassEmpty.png" width="95%" draggable="false"> </td> <td id="id_td_5" width="8%" align="center" liquidType="water" liquid="empty" onClick="td_click(event)"> <img src="../../../img/LevelD/Category2/LevelDCat2Lesson19/glassEmpty.png" width="95%" draggable="false"> </td> <td id="id_td_6" width="8%" align="center" liquidType="water" liquid="empty" onClick="td_click(event)"> <img src="../../../img/LevelD/Category2/LevelDCat2Lesson19/glassEmpty.png" width="95%" draggable="false"> </td> </tr> </table> </td> </tr> <tr id="id_tr_set4" height="20%"> <td> <table width="100%" height="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td id="id_td_heading5" width="*" class="shared_style_black_24px_bold_padding_left_2_percent">Three and half glass of cool drink.</td> <td width="8%"> </td> <td id="id_td_7" width="8%" align="center" liquidType="coolDrink" liquid="empty" onClick="td_click(event)"> <img src="../../../img/LevelD/Category2/LevelDCat2Lesson19/glassEmpty.png" width="95%" draggable="false"> </td> <td id="id_td_8" width="8%" align="center" liquidType="coolDrink" liquid="empty" onClick="td_click(event)"> <img src="../../../img/LevelD/Category2/LevelDCat2Lesson19/glassEmpty.png" width="95%" draggable="false"> </td> <td id="id_td_9" width="8%" align="center" liquidType="coolDrink" liquid="empty" onClick="td_click(event)"> <img src="../../../img/LevelD/Category2/LevelDCat2Lesson19/glassEmpty.png" width="95%" draggable="false"> </td> <td id="id_td_10" width="8%" align="center" liquidType="coolDrink" liquid="empty" onClick="td_click(event)"> <img src="../../../img/LevelD/Category2/LevelDCat2Lesson19/glassEmpty.png" width="95%" draggable="false"> </td> </tr> </table> </td> </tr> <tr id="id_tr_set5" height="*"> <td> <table width="100%" height="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td id="id_td_heading6" width="*" class="shared_style_black_24px_bold_padding_left_2_percent">Four and half glass of lassi.</td> <td id="id_td_11" width="8%" align="center" liquidType="lassi" liquid="empty" onClick="td_click(event)"> <img src="../../../img/LevelD/Category2/LevelDCat2Lesson19/glassEmpty.png" width="95%" draggable="false"> </td> <td id="id_td_12" width="8%" align="center" liquidType="lassi" liquid="empty" onClick="td_click(event)"> <img src="../../../img/LevelD/Category2/LevelDCat2Lesson19/glassEmpty.png" width="95%" draggable="false"> </td> <td id="id_td_13" width="8%" align="center" liquidType="lassi" liquid="empty" onClick="td_click(event)"> <img src="../../../img/LevelD/Category2/LevelDCat2Lesson19/glassEmpty.png" width="95%" draggable="false"> </td> <td id="id_td_14" width="8%" align="center" liquidType="lassi" liquid="empty" onClick="td_click(event)"> <img src="../../../img/LevelD/Category2/LevelDCat2Lesson19/glassEmpty.png" width="95%" draggable="false"> </td> <td id="id_td_15" width="8%" align="center" liquidType="lassi" liquid="empty" onClick="td_click(event)"> <img src="../../../img/LevelD/Category2/LevelDCat2Lesson19/glassEmpty.png" width="95%" draggable="false"> </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>