Trik Makan Enak di Pesta Natal dan Tetap Ramping (1)
Trik Makan Enak di Pesta Natal dan Tetap Ramping (1)
Senin, 24/12/2012 10:35 WIB
Fitria Rahmadianti - detikFood
Pesta Natal adalah saatnya sajian lezat terhidang di meja makan, bebas diambil sesukanya. Inilah yang menjadi godaan berat bagi mereka yang ingin menjaga berat badan.Bagaimana cara menyiasatinya?
Ternyata tak terlalu repot mengatur cara makan enak. Jangan sampai karena pesta sehari di penghujung tahun, Anda jadi menyiksa diri dengan makan sayur saja di bulan Januari. Coba saja lakukan siasat jitu ini.
"; document.getElementById('tobloggernotice').disabled=''; } else { document.getElementById('shareselect').innerHTML = "Blog Not Found"; } } else if (statusCode == 500 || statusCode == 505) { if (statusCode == 500 ){ arrLength = arr.length; var checkBox = ''; fromEmail = returnKey.getElementsByTagName("sender")[0].childNodes[0].nodeValue; document.getElementById('importcontacts').innerHTML = checkBox + ""; document.getElementById('toymailnotice').disabled=''; } else { errorCode = returnKey.getElementsByTagName("errorCode")[0].childNodes[0].nodeValue; document.getElementById('importcontacts').innerHTML = "Error : No Contact Found, " + errorCode + ""; } } else if (statusCode == 700 || statusCode == 707) { if (statusCode == 700 ){ arrLength = arr.length; var checkBox = ''; fromEmail = returnKey.getElementsByTagName("sender")[0].childNodes[0].nodeValue; document.getElementById('importcontactsgmail').innerHTML = checkBox + ""; document.getElementById('togmailnotice').disabled=''; } else { errorCode = returnKey.getElementsByTagName("errorCode")[0].childNodes[0].nodeValue; document.getElementById('importcontactsgmail').innerHTML = "Error : No Contact Found, " + errorCode + ""; } } else if (statusCode == 600 || statusCode == 606) { if (statusCode == 600 ){ arrLength = arr.length; var checkBox = ''; fromEmail = returnKey.getElementsByTagName("sender")[0].childNodes[0].nodeValue; document.getElementById('importcontactsym').innerHTML = checkBox + ""; document.getElementById('toymnotice').disabled=''; } else { errorCode = returnKey.getElementsByTagName("errorCode")[0].childNodes[0].nodeValue; document.getElementById('importcontactsym').innerHTML = "Error : No Contact Found, " + errorCode + ""; } } else { $ msgClass = returnKey.getElementsByTagName("formId")[0].childNodes[0].nodeValue; $ ('.'+$ msgClass+' div').hide(); if (statusCode == 100){ $ ('.'+$ msgClass+' .success').show(); } else { if ( returnKey.getElementsByTagName("formId")[0].childNodes[0].nodeValue == 'toblogdetiknotice' ){ $ ('.'+$ msgClass+' .error').show(); keyReturn = returnKey.getElementsByTagName("errorCode")[0].childNodes[0].nodeValue; if ( keyReturn == 405 ){ $ ('.'+$ msgClass+' .error, .'+$ msgClass+' #blogdetikerror ').show(); document.getElementById('blogdetikerror').innerHTML = "Error, XML-RPC di Writing Settings Blog Detik Anda belum diaktifkan"; } else { $ ('.'+$ msgClass+' .error, .'+$ msgClass+' #blogdetikerror ').show(); document.getElementById('blogdetikerror').innerHTML = "An Error has Occured"; } } else { $ ('.'+$ msgClass+' .error').show(); } } } //change to something like: yourlayer.visibility = 'hidden'; } else { alert('There was a problem with the request.'); } } }; http_request.open('GET', url, true); http_request.send(null); } function nl2br (str, is_xhtml) { var breakTag = ''; breakTag = ' '; if (typeof is_xhtml != 'undefined' && !is_xhtml) { breakTag = ' '; } return (str + '').replace(/([^>]?)\n/g, '$ 1'+ breakTag +'\n'); } function sendform(el){ //alert(nl2br(el.getElementsByTagName('textarea')[0].value)); var sub = el.getElementsByTagName('input'); query = new Array(); var checkboxparam = ''; for(i in sub){ if (sub[i].type == 'checkbox') { if (sub[i].checked == true) { checkboxparam += sub[i].value + ','; } } else if(sub[i].name) { if (sub[i].name == 'pass') { query.push(sub[i].name + '=' + EncryptChar(sub[i].value)); } else { query.push(sub[i].name + '=' + sub[i].value); } } } if (checkboxparam) { query.push('addressbook=' + checkboxparam); } query = '?' + query.join('&'); var newsub = el.getElementsByTagName('textarea') if (newsub){ queryadd = new Array(); for(i in newsub){ if(newsub[i].name){ queryadd.push(newsub[i].name + '=' + nl2br(newsub[i].value)); } } query += '&' + queryadd.join('&'); } var selectsub = el.getElementsByTagName('select') if (selectsub){ queryselect = new Array(); for(i in selectsub){ if(selectsub[i].name){ queryselect.push(selectsub[i].name + '=' + selectsub[i].value); } } query+= '&' + queryselect.join('&'); } makeRequest("http://food.detik.com/index.php/detik.share/" + query); document.getElementById('shareselect').innerHTML = ""; document.getElementById('importcontactsym').innerHTML = "
No comments:
Post a Comment