????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_old7/Html/LevelH/Category1/ |
Upload File : |
<!doctype html>
<html>
<head>
<title>Underline the correct adverb and re-write each sentence</title>
<script type="text/javascript" src="../../../js/allScriptsForLessonsHtml.js"></script>
<script>
function page_preLoad()
{
shared_setDeviceTypeLevelCategoryLastLesson(Level.H, Category.No1);
shared_set_tblMainiPadBodyWidthHeight('id_tblMainiPadBody', 'id_meta');
shared_setHeaderTable('id_tblHeader', shared_title_page, shared_getSubTitle(Level.H, Category.No1, 20), true, true);
shared_setFooterTable('id_tblFooter', true, true, true, true, true);
var ids_headings = ['id_td_heading1', 'id_td_heading2'];
var ids_textBoxes = new Array();
var ids_td_textBoxes = new Array();
for (var id = 1; id <= 10; id++)
{
var idTdTextBox = 'id_td_textBox' + id;
var idTextBox = 'id_textBox' + id;
var eTextBox = document.getElementById(idTextBox);
eTextBox.value = '';
if (shared_currentDeviceType == shared_DeviceTypeAndroid)
{
eTextBox.style.border = 'solid 2px black';
}
ids_textBoxes.push(idTextBox);
ids_td_textBoxes.push(idTdTextBox);
}
var ids_spans = new Array();
for (var idSpan = 1; idSpan <= 10; idSpan++)
{
ids_spans.push('id_span' + idSpan);
}
var ids_tds_texts = new Array();
for (var textId = 1; textId <= 15; textId++)
{
ids_tds_texts.push('id_td' + textId);
}
var ids_All = ids_headings.concat(ids_td_textBoxes);
shared_adjust_fontSize_for_ids_all_devices(ids_All, 70);
shared_adjust_fontSize_for_ids_all_devices(ids_tds_texts, 80);
shared_adjust_fontSize_for_ids_all_devices(ids_spans, 80);
shared_adjust_fontSize_for_ids_all_devices(ids_textBoxes, 60);
var id_tables_array = ['id_table1', 'id_table2'];
shared_border_collapse_for_tables_except_android(id_tables_array);
}
function page_onLoad()
{
getAllGroupsCanvasIdsArray();
drawUnderline();
}
function getAllGroupsCanvasIdsArray()
{
var set1IdsArray = ['id_span1', 'id_span2'];
var set2IdsArray = ['id_span3', 'id_span4'];
var set3IdsArray = ['id_span5', 'id_span6'];
var set4IdsArray = ['id_span7', 'id_span8'];
var set5IdsArray = ['id_span9', 'id_span10'];
shared_allGroupsIdsArrayInArray = [set1IdsArray, set2IdsArray, set3IdsArray, set4IdsArray, set5IdsArray];
}
function drawUnderline()
{
for (var id = 1; id <= 10; id++)
{
shared_draw_underline('id_span' + id);
}
}
function span_click(id_span)
{
shared_showHideUnderlineOfCorrespondingGroup(id_span, shared_allGroupsIdsArrayInArray);
}
function btnValidate_click()
{
var correctSpanIdsArray = ['id_span2', 'id_span3', 'id_span5', 'id_span7', 'id_span9'];
var nCorrectSpans = shared_validate_tds(shared_allGroupsIdsArrayInArray, correctSpanIdsArray);
var eTextBox1 = document.getElementById('id_textBox1');
var eTextBox2 = document.getElementById('id_textBox2');
var eTextBox3 = document.getElementById('id_textBox3');
var eTextBox4 = document.getElementById('id_textBox4');
var eTextBox5 = document.getElementById('id_textBox5');
var eTextBox6Value = document.getElementById('id_textBox6').value.toUpperCase();
var eTextBox7Value = document.getElementById('id_textBox7').value.toUpperCase();
var eTextBox8Value = document.getElementById('id_textBox8').value.toUpperCase();
var eTextBox9Value = document.getElementById('id_textBox9').value.toUpperCase();
var eTextBox10Value = document.getElementById('id_textBox10').value.toUpperCase();
if ((nCorrectSpans == 5) &&
(eTextBox1.isCorrect == true) &&
(eTextBox2.isCorrect == true) &&
(eTextBox3.isCorrect == true) &&
(eTextBox4.isCorrect == true) &&
(eTextBox5.isCorrect == true) &&
(eTextBox6Value != '') &&
(eTextBox7Value != '') &&
(eTextBox8Value != '') &&
(eTextBox9Value != '') &&
(eTextBox10Value != ''))
{
shared_show_claps_animation('shared_id_div_claps_image');
}
}
function validateSentence(id_textBox)
{
var eTextBox = document.getElementById(id_textBox);
var inputText = eTextBox.value;
var enteredTextArray = inputText.split(" ");
var trimmedText = '';
for (var textIndex = 0; textIndex < enteredTextArray.length; textIndex++)
{
if (enteredTextArray[textIndex].trim() != '')
{
trimmedText += enteredTextArray[textIndex].trim() + ' ';
}
}
trimmedText = trimmedText.trim().toUpperCase();
var correctText = getCorrectText(id_textBox);
eTextBox.isCorrect = (trimmedText == correctText) ? true : false;
}
function getCorrectText(id_textBox)
{
var correctText = '';
if (id_textBox == 'id_textBox1')
{
correctText = 'THE ROOM IS VERY DIRTY. THERE IS LITTER EVERYWHERE';
}
else if (id_textBox == 'id_textBox2')
{
correctText = 'THE BABY IS SLEEPING. PLEASE TALK SOFTLY';
}
else if (id_textBox == 'id_textBox3')
{
correctText = 'THE SUN ALWAYS RISES IN THE EAST';
}
else if (id_textBox == 'id_textBox4')
{
correctText = 'THE ACCIDENT HAPPENED SUDDENLY';
}
else if (id_textBox == 'id_textBox5')
{
correctText = 'DID YOU MEET JOHN JUST NOW?';
}
return (correctText);
}
function btnHome_click()
{
shared_btnHomeCategories_click('LevelH');
}
function btnPrevious_click()
{
window.location = 'LevelHCat1Lesson19.html';
}
function btnNext_click()
{
window.location = 'LevelHCat1Lesson21.html';
}
</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="*" data-role="page"> <!-- for swiping left and right especially for Android device -->
<td>
<table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td>
<table width="100%" height="100%" border="0" cellpadding="2%" cellspacing="0">
<tr height="60%">
<td style="padding-bottom:0px">
<table id="id_table1" width="100%" height="100%" border="1" cellpadding="0" cellspacing="0">
<tr height="12%">
<td id="id_td_heading1" class="shared_style_blue_24px_bold_padding_left_2_percent">
<u>Underline the correct adverb and re-write each sentence</u>: <br>
[<span style="color:brown">click to underline between brackets</span>]
</td>
</tr>
<tr height="*">
<td style="padding-left:2%">
<table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td id="id_td1" class="shared_style_black_24px">
<span>1. The room is very dirty. There is litter (</span>
<span id="id_span1" onClick="span_click('id_span1')">somewhere</span>
<span>/</span>
<span id="id_span2" onClick="span_click('id_span2')">everywhere</span>
<span>).</span>
</td>
</tr>
<tr>
<td id="id_td_textBox1">
<textarea id="id_textBox1" class="shared_style_blue_24px_bold" style="width:95%; text-align:left; resize:none" rows="1" onchange="validateSentence('id_textBox1')">
</textarea>
</td>
</tr>
<tr>
<td id="id_td2" class="shared_style_black_24px">
<span>2. The baby is sleeping. Please talk (</span>
<span id="id_span3" onClick="span_click('id_span3')">softly</span>
<span>/</span>
<span id="id_span4" onClick="span_click('id_span4')">loudly</span>
<span>).</span>
</td>
</tr>
<tr>
<td id="id_td_textBox2">
<textarea id="id_textBox2" class="shared_style_blue_24px_bold" style="width:95%; text-align:left; resize:none" rows="1" onchange="validateSentence('id_textBox2')">
</textarea>
</td>
</tr>
<tr>
<td id="id_td3" class="shared_style_black_24px">
<span>3. The sun (</span>
<span id="id_span5" onClick="span_click('id_span5')">always</span>
<span>/</span>
<span id="id_span6" onClick="span_click('id_span6')">never</span>
<span>) rises in the east.</span>
</td>
</tr>
<tr>
<td id="id_td_textBox3">
<textarea id="id_textBox3" class="shared_style_blue_24px_bold" style="width:95%; text-align:left; resize:none" rows="1" onchange="validateSentence('id_textBox3')">
</textarea>
</td>
</tr>
<tr>
<td id="id_td4" class="shared_style_black_24px">
<span>4. The accident happened (</span>
<span id="id_span7" onClick="span_click('id_span7')">suddenly</span>
<span>/</span>
<span id="id_span8" onClick="span_click('id_span8')">usually</span>
<span>).</span>
</td>
</tr>
<tr>
<td id="id_td_textBox4">
<textarea id="id_textBox4" class="shared_style_blue_24px_bold" style="width:95%; text-align:left; resize:none" rows="1" onchange="validateSentence('id_textBox4')">
</textarea>
</td>
</tr>
<tr>
<td id="id_td5" class="shared_style_black_24px">
<span>5. Did you meet John (</span>
<span id="id_span9" onClick="span_click('id_span9')">just now</span>
<span>/</span>
<span id="id_span10" onClick="span_click('id_span10')">tomorrow</span>
<span>) ?</span>
</td>
</tr>
<tr>
<td id="id_td_textBox5">
<textarea id="id_textBox5" class="shared_style_blue_24px_bold" style="width:95%; text-align:left; resize:none" rows="1" onchange="validateSentence('id_textBox5')">
</textarea>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
<tr height="*">
<td>
<table id="id_table2" width="100%" height="100%" border="1" cellpadding="0" cellspacing="0">
<tr height="10%">
<td id="id_td_heading2" class="shared_style_blue_24px_bold_padding_left_2_percent"><u>Fill in the blanks with suitable adverb<u>:</td>
</tr>
<tr height="*">
<td style="padding-left:2%">
<table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0">
<tr height="20%">
<td>
<table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td id="id_td6" class="shared_style_black_24px" width="35%">1. I will wait for you</td>
<td id="id_td_textBox6" width="25%">
<textarea id="id_textBox6" class="shared_style_blue_24px_bold" style="width:95%; text-align:center; resize:none" rows="1">
</textarea>
</td>
<td id="id_td7" class="shared_style_black_24px_padding_left_2_percent" width="*">.</td>
</tr>
</table>
</td>
</tr>
<tr height="20%">
<td>
<table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td id="id_td8" class="shared_style_black_24px" width="10%">2. I</td>
<td id="id_td_textBox7" width="25%">
<textarea id="id_textBox7" class="shared_style_blue_24px_bold" style="width:95%; text-align:center; resize:none" rows="1">
</textarea>
</td>
<td id="id_td9" class="shared_style_black_24px_padding_left_2_percent" width="*">play cricket.</td>
</tr>
</table>
</td>
</tr>
<tr height="20%">
<td>
<table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td id="id_td10" class="shared_style_black_24px" width="10%">3. We</td>
<td id="id_td_textBox8" width="25%">
<textarea id="id_textBox8" class="shared_style_blue_24px_bold" style="width:95%; text-align:center; resize:none" rows="1">
</textarea>
</td>
<td id="id_td11" class="shared_style_black_24px_padding_left_2_percent" width="*">go to hill station in summer.</td>
</tr>
</table>
</td>
</tr>
<tr height="20%">
<td>
<table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td id="id_td12" class="shared_style_black_24px" width="42%">4. The children behaved</td>
<td id="id_td_textBox9" width="25%">
<textarea id="id_textBox9" class="shared_style_blue_24px_bold" style="width:95%; text-align:center; resize:none" rows="1">
</textarea>
</td>
<td id="id_td13" class="shared_style_black_24px_padding_left_2_percent" width="*">.</td>
</tr>
</table>
</td>
</tr>
<tr height="*">
<td>
<table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td id="id_td14" class="shared_style_black_24px" width="66%">5. My mother likes to take a nap in the</td>
<td id="id_td_textBox10" width="25%">
<textarea id="id_textBox10" class="shared_style_blue_24px_bold" style="width:95%; text-align:center; resize:none" rows="1">
</textarea>
</td>
<td id="id_td15" class="shared_style_black_24px_padding_left_2_percent" width="*">.</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>