Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // ACTIVITIES SELECT PULDOWN BOX
- var xx = 0;
- var ch = "A";
- document.write('<optgroup label="' + ch + '">');
- while (Actions[xx]){
- if ((Actions[xx].charAt(0)).toUpperCase() != ch){
- ch = (Actions[xx].charAt(0)).toUpperCase();
- document.write('</optgroup>');
- document.write('<optgroup label="' + ch + '">');
- }
- document.write('<option value="' + xx + '">' + Actions[xx] + '</option>');
- xx += 2;
- }
- document.write('</optgroup></select>');
- // START TIME SELECT
- document.write('<table><tr><td style="width:28%">');
- document.write('<fieldset class="fibl"><legend>Started at:</legend>');
- document.write('<select id="starth" onchange="eattime(\'starth\')" class="fiel" style="align:center; text-align:center; background-color:#e9ffe8">');
- writeh('#e9ffe8');
- document.write('</select> H. ');
- document.write('<select id="startm" onchange="eattime(\'startm\')" class="fiel" style="align:center; text-align:center; background-color:#e9ffe8">');
- writem('#e9ffe8');
- document.write('</select> M.');
- document.write('</fieldset>');
- // DURATION SELECT
- document.write('</td><td style="width:28%">');
- document.write('<fieldset class="fibl"><legend>Duration:</legend>');
- document.write('<select id="durh" onchange="eattime(\'durh\')" class="fiel" style="align:center; text-align:center; background-color:#e9ffe8">');
- writeh('#e9ffe8');
- document.write('</select> H. ');
- document.write('<select id="durm" onchange="eattime(\'durm\')" class="fiel" style="align:center; text-align:center; background-color:#e9ffe8">');
- writem('#e9ffe8');
- document.write('</select> M.');
- document.write('</fieldset></td><td width="24%"><span class="fibl">Select:</span><INPUT style="background-color:#e9ffe8" type="radio" name="multi" id="m1" value="0" checked="checked" onclick="keerit(this.value)"><label for="m1" class="fibl">Activities</label><br /><span class="fibl">OR Select a Lifestyle</span></td>');
- // LIFESTYLE BUTTON GROUP
- document.write('<td rowspan="2" width="20%"><fieldset name="four" class="fibl" width=:100%><legend>Lifestyle:</legend>');
- document.write('<INPUT style="background-color:#e9ffe8" class="fiel" type="radio" name="multi" id="m2" value="1.2" onclick="keerit(this.value)"><label for="m2">Bed Rest</label>');
- document.write('<br /><INPUT type="radio" name="multi" id="m3" value="1.3" onclick="keerit(this.value)"><label for="m3">Sedentary</label>');
- document.write('<br /><INPUT type="radio" name="multi" id="m4" value="1.4" onclick="keerit(this.value)"><label for="m4">Active</label>');
- document.write('<br /><INPUT type="radio" name="multi" id="m5" value="1.5" style="background-color:#e9ffe8"; onclick="keerit(this.value)"><label for="m5">Very Active</label>');
- // MULTIPLIER AND SUBMIT
- document.write('</fieldset></td></tr><tr>');
- document.write('<td><input type="button" id="actionclr" class="fiel" onclick="clrAct()" onmouseover="but(\'actionclr\',\'#ffe8e9\',\'navy\')" onmouseout="but(\'actionclr\',\'#e9ffe8\',\'navy\')" style="background-color:#e9ffe8" value="Clear Activities"></td>');
- document.write('<td><input type="button" id="actionadd" class="fiel" onclick="addaction()" onmouseover="but(\'actionadd\',\'#ffe8e9\',\'navy\')" onmouseout="but(\'actionadd\',\'#e9ffe8\',\'navy\')" style="background-color:#e9ffe8" value="Add">');
- document.write('<input type="button" id="actionback" class="fiel" onclick="popAction()" onmouseover="but(\'actionback\',\'#ffe8e9\',\'navy\')" onmouseout="but(\'actionback\',\'#e9ffe8\',\'navy\')" style="background-color:#e9ffe8" value="Undo Last"></td>');
- document.write('<td><span class="fibl">Multiplier = </span><input type="text" value="0" id="multiplier" class="tees" style="align:center;width:3em"></td>');
- document.write('<td></td></tr></table>');
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement