Resep Cumi Goreng Tepung Crispy, Pakai Tepung Tapioka - Kompas.com KOMPAS.com
'; // divphoto = document.getElementsByClassName('photo')[0]; // divphoto.removeAttribute('class'); // divphoto.innerHTML = script; // } if(id !== '' && wid !== ''){ script = ''; div.innerHTML = script; } // console.log(script); var observer_ivs = new IntersectionObserver(function(entires){ entires.forEach(function(entry) { if(entry.intersectionRatio > 0){ ivs_inject(entry.target) } }); }, { threshold: 1 }); observer_ivs.observe(document.getElementById('ivs-inject-start')); function ivs_inject(element){ console.log('inject ivs') observer_ivs.unobserve(element); observer_ivs.disconnect(); var ivs = document.createElement('script'); ivs.src = 'https://player.ivideosmart.com/ivsplayer/v4/dist/js/loader.js'; document.getElementById('ivs-inject').appendChild(ivs); } ' komentar_item += '' komentar_item += '' komentar_item += '' komentar_item += '' komentar_item += '' }); komentar_item += ''; if(result.result.total > 1){ komentar_item += ''; } }else{ komentar_item = ' '; } var comment_cookie = getCookieKcm('comment'); document.getElementById("comments").value = comment_cookie; document.getElementById("for_comment").innerHTML = komentar_item; var x = document.getElementsByClassName("total_comment"); if(result.result.total > 0){ if(typeof document.getElementsByClassName("total_comment_share")[0] !== 'undefined'){ document.getElementsByClassName("total_comment_share")[0].innerHTML = result.result.total; } for (i = 0; i 0)r=(r+((o 12 ? H - 12 : H == 0 ? 12 : H; format = format.replace(/(^|[^\\])hh+/g, "$1" + ii(h)); format = format.replace(/(^|[^\\])h/g, "$1" + h); var m = utc ? date.getUTCMinutes() : date.getMinutes(); format = format.replace(/(^|[^\\])mm+/g, "$1" + ii(m)); format = format.replace(/(^|[^\\])m/g, "$1" + m); var s = utc ? date.getUTCSeconds() : date.getSeconds(); format = format.replace(/(^|[^\\])ss+/g, "$1" + ii(s)); format = format.replace(/(^|[^\\])s/g, "$1" + s); var f = utc ? date.getUTCMilliseconds() : date.getMilliseconds(); format = format.replace(/(^|[^\\])fff+/g, "$1" + ii(f, 3)); f = Math.round(f / 10); format = format.replace(/(^|[^\\])ff/g, "$1" + ii(f)); f = Math.round(f / 10); format = format.replace(/(^|[^\\])f/g, "$1" + f); var T = H 0 ? "+" : "-"; if (!utc) { tz = Math.abs(tz); var tzHrs = Math.floor(tz / 60); var tzMin = tz % 60; K += ii(tzHrs) + ":" + ii(tzMin); } format = format.replace(/(^|[^\\])K/g, "$1" + K); var day = (utc ? date.getUTCDay() : date.getDay()) + 1; format = format.replace(new RegExp(dddd[0], "g"), dddd[day]); format = format.replace(new RegExp(ddd[0], "g"), ddd[day]); format = format.replace(new RegExp(MMMM[0], "g"), MMMM[M]); format = format.replace(new RegExp(MMM[0], "g"), MMM[M]); format = format.replace(/\\(.)/g, "$1"); return format; }; //Cek if not login then redirect // $("#comments").on('click', function() { // var e = getCookieKcm('kmp_uid'); // if(e == ''){ // window.top.location. = document.getElementById("login_url").value; // } // }); //Limit character to LimitNum=300 function limitText(limitField, limitNum) { if (limitField.value.length > limitNum) { limitField.value = limitField.value.substring(0, limitNum); } else{ // document.getElementById("countdown").innerHTML = limitNum - limitField.value.length; } } //Insert comment function insertComment(commentId) { var e = getCookieKcm('kmp_uid'); if(e == ''){ document.cookie = "comment="+document.getElementById("comments").value; window.top.location. = document.getElementById("login_url").value; } else{ var xml_path = document.getElementById("urlpage").value; // var article_url = document.referrer; var article_url = document.getElementById("urlpage").value; var token = getCookieKcm('kmp_uid'); var type = getCookieKcm('kmp_lgn') == 'kompas'?'kid':'sc'; var data = {}; data['xml_path'] = xml_path; data['article_url'] = article_url; data['token'] = token; data['acc_type'] = type; data['loginwith'] = getCookieKcm('lgn_w'); if(commentId != ""){ var uname = document.getElementById("uname-"+commentId).value; var content = document.getElementById("content-"+commentId).value; var comments = document.getElementById("comments_reply_"+commentId).value; data['uname'] = uname; data['content'] = content; data['comments'] = comments; } else { var comments = document.getElementById("comments").value; data['comments'] = comments; } if(comments == "" || comments.trim().length == 0){ alert("Komentar tidak boleh kosong!"); } else{ if(commentId != ""){ $("#btnkirim-"+commentId).css("display", "none"); $("#btnLoading-"+commentId).css("display", "block"); } else { $("#btnkirim").css("display", "none"); $("#btnLoading").css("display", "block"); } $.post("https://apis.kompas.com/api/comment/insert/v2", data, function(result){ if(result.status == false){ if(result.message == "Silahkan Login dahulu untuk memberi komentar."){ window.top.location. = result.loginUrl; } else{ alert(result.message); } $("#btnkirim").css("display", "inline"); $("#btnLoading").css("display", "none"); } else{ if ($("div").hasClass("comment__board")) { $(".comment__board").css("display", "none"); $(".comment__list").css("display", "block"); } $(".comment__list").prepend(result.view); if(commentId != ""){ $("#btnkirim-"+commentId).css("display", "inline"); $("#btnLoading-"+commentId).css("display", "none"); closeForm(commentId); } else { $("#btnkirim").css("display", "inline"); $("#btnLoading").css("display", "none"); $("#comments").val(''); } document.cookie = "comment="; } }).fail(function(err) { $("#btnkirim").css("display", "inline"); $("#btnLoading").css("display", "none"); window.top.location. = "https://account.kompas.com/login/a29tcGFz/aHR0cDovL3d3dy5rb21wYXMuY29t"; }); } } } //Reply comment function replyComment(commentId) { var uname = document.getElementById("uname_"+commentId).innerText; var date = document.getElementById("tgl_"+commentId).innerText; var content = document.getElementById("cont_"+commentId).innerText; document.getElementById("reply_form_"+commentId).style.display = "block"; document.getElementById("comments_reply_"+commentId).focus(); document.getElementById("uname-"+commentId).value = uname; document.getElementById("tgl-"+commentId).value = date; document.getElementById("content-"+commentId).value = content; } //Close reply comment function closeForm(commentId) { $("#reply_form_"+commentId).css("display","none"); $("#uname-"+commentId).val(""); $("#tgl-"+commentId).val(""); $("#content-"+commentId).val(""); } //Like dislike comment function likedislikeComment(commentId, type){ var data = {}; data['xml_path'] = document.getElementById("urlpage").value; data['comment_id'] = commentId; data['type'] = type; data['total_like'] = document.getElementById("like_"+commentId).value; data['total_dislike'] = document.getElementById("dislike_"+commentId).value; data['token'] = getCookieKcm('kmp_uid'); data['acc_type'] = getCookieKcm('kmp_lgn') == 'kompas'?'kid':'sc'; data['loginwith'] = getCookieKcm('lgn_w'); $.post("https://apis.kompas.com/api/comment/likedislike/v2", data, function(result){ if(result.status==true){ $("#like_"+commentId).val(result.total_like); $("#dislike_"+commentId).val(result.total_dislike); $("#total_like_"+commentId).html(result.total_like); $("#total_dislike_"+commentId).html(result.total_dislike); if(type=='like'){ $('#button_like_'+commentId).attr('disabled','disabled'); $('#button_dislike_'+commentId).removeAttr('disabled','disabled'); }else{ $('#button_like_'+commentId).removeAttr('disabled','disabled'); $('#button_dislike_'+commentId).attr('disabled','disabled'); } }else{ $("#btnkirim").css("display", "inline"); $("#btnLoading").css("display", "none"); window.top.location. = document.getElementById("login_url").value; } }); } '; new_comment += '
Resep Cumi Goreng Tepung Crispy, Pakai Tepung Tapioka
'; // divphoto = document.getElementsByClassName('photo')[0]; // divphoto.removeAttribute('class'); // divphoto.innerHTML = script; // } if(id !== '' && wid !== ''){ script = ''; div.innerHTML = script; } // console.log(script); var observer_ivs = new IntersectionObserver(function(entires){ entires.forEach(function(entry) { if(entry.intersectionRatio > 0){ ivs_inject(entry.target) } }); }, { threshold: 1 }); observer_ivs.observe(document.getElementById('ivs-inject-start')); function ivs_inject(element){ console.log('inject ivs') observer_ivs.unobserve(element); observer_ivs.disconnect(); var ivs = document.createElement('script'); ivs.src = 'https://player.ivideosmart.com/ivsplayer/v4/dist/js/loader.js'; document.getElementById('ivs-inject').appendChild(ivs); }
Rekomendasi untuk anda
Powered by
Jixie mencari berita yang dekat dengan preferensi dan pilihan Anda. Kumpulan berita tersebut disajikan sebagai berita pilihan yang lebih sesuai dengan minat Anda.
Terkini Lainnya
'+row.title+'
'; kanal = url_page.substring(8, url_page.indexOf('.')).toUpperCase(); if(kanal == 'WWW'){ kanal = url_page.split('/')[3].toUpperCase(); } new_comment += ''+kanal+' - '+row.tanggal_artikel+''; new_comment += ''; new_comment += ''; new_comment += ''; new_comment += ''; }); document.getElementById('comment-widget').innerHTML = new_comment; } } }Resep Ayam Popcorn ala KFC yang Krispi, Tambah Saus Asam Manis atau Teriyaki https://www.kompas.com/food/read/2021/01/31/100400375/resep-ayam-popcorn-ala-kfc-yang-krispi-tambah-saus-asam-manis-atau-teriyaki https://asset.kompas.com/crops/ZqDBbkTO8Jf3lXw71aBFspfFqTQ=/82x29:1226x793/195x98/data/photo/2021/01/26/600fc57530acf.jpg
Mungkin Anda melewatkan ini
SUBSCRIBE TO OUR NEWSLETTER