/gi;function b(j){d.getScript("http://"+j+"http://.disqus.com/blogger_index.js")}function e(){if(i.loading){return}i.loading=true;if(!i.olderPostsLink){i.loadMoreDiv.hide();return}i.loadMoreDiv.find("a").addClass("process");d("#main-wrapper .textlast").hide();d("#main-wrapper .xitem1").append('Loading...');d.get(i.olderPostsLink,"html").done(function(l){var j=d("").append(l.replace(c,""));var k=j.find("a.blog-pager-older-link");if(k){i.olderPostsLink=k.attr("href")}else{i.olderPostsLink="";i.loadMoreDiv.hide()}var m=j.find(i.postContainerSelector).children(".date-outer");m.find(".post-summary").each(function(){var n,w,t,v,o,s,r,u,q,p="";w=d(this).parent(".post-body");o=w.children("textarea").val();q=o.replace(/<(.*?)>/g,"").replace(/[\n\r]+/g," ");s=d("").append(o.replace(c,""));r=s.find("img");iframex=s.find("iframe");parens=d(this).parents(".post");u=parens.find(".post-title.entry-title a").attr("href");titlex=parens.find(".post-title.entry-title a").text();if(r.length===0&&iframex.length===0){n=' '}else{if(r.length===0&&iframex.length>0){t=iframex[0].src;if(t.indexOf("youtube.com")!=-1||t.indexOf("youtu.be")!=-1){v=t.match(/(\?v=|\&v=|\/\d\/|\/embed\/|\/v\/|\.be\/)([a-zA-Z0-9\-\_]+)/);n=' '}else{n=' '}}else{n=' '}}p=n+'
"+q.substring(0,i.summaryLength)+"…
";d(this).html(p)});d(i.postContainerSelector).append(m);datenya(d);viewMode({viewmodedefault:i.viewmodedefault,cookielist:i.cookielist,cookiegrid:i.cookiegrid});if(window._gaq){window._gaq.push(["_trackPageview",i.olderPostsLink])}if(window.gapi&&window.gapi.plusone&&window.gapi.plusone.go){window.gapi.plusone.go()}if(window.disqus_shortname){b(window.disqus_shortname)}if(window.FB&&window.FB.XFBML&&window.FB.XFBML.parse){window.FB.XFBML.parse()}i.loadMoreDiv.find("a").removeClass("process");d("#main-wrapper .xitem1 .load").remove();d("#main-wrapper .textlast").show();i.loading=false})}function h(){if(_WidgetManager._GetAllData().blog.pageType=="item"){return}i.olderPostsLink=d("a.blog-pager-older-link").attr("href");if(!i.olderPostsLink){return}var j=d('
');i.loadMoreDiv.append(j);i.loadMoreDiv.insertBefore(d("#blog-pager"));d("#blog-pager").hide()}f.ready(h)})(jQuery)}; //Page Navigation by MKR function pageNavi(a){(function(e){var i={postperpage:6,numshowpage:3,previous:"«",next:"»",LatestText:"Latest Post"};i=e.extend({},i,a);var g="/";var d=location.href;var k;var l;var j;var f;var m=function(r){var t="";nomerkiri=parseInt(i.numshowpage/2);if(nomerkiri==i.numshowpage-nomerkiri){i.numshowpage=nomerkiri*2+1}mulai=j-nomerkiri;if(mulai<1){mulai=1}maksimal=parseInt(r/i.postperpage)+1;if(maksimal-1==r/i.postperpage){maksimal=maksimal-1}akhir=mulai+i.numshowpage-1;if(akhir>maksimal){akhir=maksimal}var n=parseInt(j)-1;if(j>1){if(j==2){if(l=="page"){t+=' '+i.previous+""}else{t+=''+i.previous+" "}}}if(mulai>1){if(l=="page"){t+='1 '}else{t+='1 '}}if(mulai>2){t+=' ... '}for(var u=mulai;u<=akhir;u++){if(j==u){t+=''+u+"";if(j>1){var q=e(".menu-xitem .textlast").html();if(q.length===1){e(".menu-xitem .textlast").append(i.LatestText)}e(".menu-xitem .xitem1").append(" : Page "+u+"")}}else{if(u==1){if(l=="page"){t+='1 '}else{t+=''+u+" "}else{t+=''+u+" "}}}}if(akhir'+maksimal+" "}else{t+=''+maksimal+" "}}var s=parseInt(j)+1;if(j'+i.next+" "}else{t+=''+i.next+" "}}var v=document.getElementsByName("pageArea");var w=document.getElementById("blog-pager");for(var o=0;o0){t=""}if(w){w.innerHTML=t}jQuery("#blog-pager").css("display","block");jQuery("#blog-pager a.xpagex, #blog-pager a.xlabelx").click(function(){var p=jQuery(this).attr("alt");jsonstart=(p-1)*i.postperpage;k=p;if(l=="page"){e.get(g+"feeds/posts/summary?start-index="+jsonstart+"&max-results=1&alt=json-in-script",h,"jsonp")}else{e.get(g+"feeds/posts/summary/-/"+f+"?start-index="+jsonstart+"&max-results=1&alt=json-in-script",h,"jsonp")}return false})};var b=function(n){var p=n.feed;var o=parseInt(p.openSearch$totalResults.$t,10);m(o)};var c=function(){var n=d;if(n.indexOf("/search/label/")!=-1){if(n.indexOf("?updated-max")!=-1){f=n.substring(n.indexOf("/search/label/")+14,n.indexOf("?updated-max"))}else{if(n.indexOf("?&max")!=-1){f=n.substring(n.indexOf("/search/label/")+14,n.indexOf("?&max"))}else{f=n.substr(n.lastIndexOf("/"))}}}if(n.indexOf("?q=")==-1&&n.indexOf(".html")==-1){if(n.indexOf("/search/label/")==-1){l="page";if(d.indexOf("#PageNo=")!=-1){j=d.substring(d.indexOf("#PageNo=")+8,d.length)}else{j=1}e.get(g+"feeds/posts/summary?max-results=1&alt=json-in-script",b,"jsonp")}else{l="label";if(n.indexOf("&max-results=")==-1){i.postperpage=20}if(d.indexOf("#PageNo=")!=-1){j=d.substring(d.indexOf("#PageNo=")+8,d.length)}else{j=1}e.get(g+"feeds/posts/summary/-/"+f+"?max-results=1&alt=json-in-script",b,"jsonp")}}};c();var h=function(o){post=o.feed.entry[0];var n=post.published.$t.substring(0,19)+post.published.$t.substring(23,29);var q=encodeURIComponent(n);if(l=="page"){var p="/search?updated-max="+q+"&max-results="+i.postperpage+"#PageNo="+k}else{var p="/search/label/"+f+"?updated-max="+q+"&max-results="+i.postperpage+"#PageNo="+k}location.href=p}})(jQuery)}; //Ajax Recent Comment by MKR (function(a){a.RecentComments=function(c,b){var d=this;d.$el=a(c);d.init=function(){d.options=a.extend({},a.RecentComments.defaultOptions,b);d.$el.addClass(d.options.loadingClass);a.get((d.options.blogURL===""?window.location.protocol+"//"+window.location.host:d.options.blogURL)+"/feeds/comments/default?alt=json-in-script&orderby=published",function(z){var f,e=z.feed.entry;if(e!==undefined){f="
- ";ntotal=0;for(var y=0;y=d.options.numComments){break}var h=e[y];for(var u=0;u ':"");var r=o.lastIndexOf("/")+1,t=o.lastIndexOf("."),F=o.split("-").join(" ").substring(r,t)+"...";E=h.published.$t.substring(0,10);var q=E.substring(0,4),v=E.substring(5,7),B=E.substring(8,10),w=d.options.MonthNames[parseInt(v,10)-1],p=h.published.$t.substring(11,16),j=p.substring(0,2),x=p.substring(2,5);if(j<12){s="AM"}else{s="PM"}if(j===0){j=12}if(j>12){j=j-12}f+='
";n=("content" in h)?h.content.$t:("summary" in h)?h.summary.$t:"";var g=n.replace(/(<([^>]+)>)/gi,"");if(g!==""&&g.length>d.options.characters){g=g.substring(0,d.options.characters);g+="..."}else{g=g}f+=(d.options.characters>0?""+g+"
":"");f+=" - "}}f+="
";d.$el.html(f).removeClass(d.options.loadingClass)}else{d.$el.html("No result!").removeClass(d.options.loadingClass)}},"jsonp")};d.init()};a.RecentComments.defaultOptions={blogURL:"",numComments:4,characters:100,avatarSize:50,loadingClass:"loadingxx",Showimage:true,defaultAvatar:"http://ift.tt/1afqgwl",MonthNames:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],maxfeeds:50,adminBlog:"Wawan Setyawan "};a.fn.RecentComments=function(b){return this.each(function(){(new a.RecentComments(this,b))})}})(jQuery); //Menu setting function menunav(b){b("#mobilenav").click(function(){b("#menunav").slideToggle();b(this).toggleClass("active");return false});b(".sf-menu ul").each(function(){var d=b(this).parent("li");d.append("")});function a(){var d=b(window).width();if(d>979){b("#menunav").css("display","block");b("#menunav").superfish({animation:{height:"show"},animationOut:{height:"hide"}});b(".sf-menu i").css("display","none")}else{if(d<=979&&b("#mobilenav").attr("class")==="active"){b("#menunav").css("display","block");b("#menunav").superfish("destroy");b(".sf-menu i").css("display","block")}else{if(d<=979&&b("#mobilenav").attr("class")!=="active"){b("#menunav").css("display","none");b("#menunav").superfish("destroy");b(".sf-menu i").css("display","block")}}}}a();b(window).resize(a);b(".sf-menu i").click(function(){var d=b(this).parent("li");var e=d.children("ul");e.slideToggle();b(this).toggleClass("active");return false});var c=window.location.href;b("#menunav a").each(function(){if(this.href===c){var d=b(this).parents("li").children("a").addClass("current")}})}; //Ajax JSON Search Result by MKR function searchxx(a){(function(d){var f={blogURL:"",srcBlank:"http://ift.tt/1hfN1Co",findText:"Search results for keyword",NotfindText:"No result!",Showthumb:true,LoadingText:"Searching...",scrthumbSize:50,summaryLength:100};f=d.extend({},f,a);var b=d("#ajax-search-form"),e=b.find(":text");b.append('
');var c=d("#search-result");b.on("submit",function(){var g=e.val();c.show().html('
'+f.LoadingText+"
");d.get((f.blogURL===""?window.location.protocol+"//"+window.location.host:f.blogURL)+"/feeds/posts/default?alt=json-in-script&q="+g+"&max-results=9999",function(w){var v=w.feed.entry,r,q,u,s,h,k,m="";if(v!==undefined){m="
"+f.findText+" ""+g+""
";m+='×
- ';for(var o=0;o"+g+"");for(var n=0,t=v[o].link.length;n)<[^<]*)*<\/script>/gi;h=d("").append(r.replace(p,""));k=h.find("img");if("media$thumbnail" in v[o]){q=v[o].media$thumbnail.url.replace(/\/s[0-9]+\-c/g,"/s"+f.scrthumbSize+"-c")}else{if(k.length!=0){q=k[0].src}else{q=f.srcBlank}}}r=r.replace(/<\S[^>]*>/g,"");if(r.length>f.summaryLength){r=r.substring(0,f.summaryLength)+"..."}r=r.replace(l,""+g+"");m+='
- '+(f.Showthumb===true?'':"")+""+u+" "+(f.summaryLength>0?"
"+r+"
":"")+""}m+="
');f.containerSelector="#related_posts"}var c=function(x,r){k++;if(x.feed.entry){for(var w=0;w)<[^<]*)*<\/script>/gi;q=e("").append(o.replace(l,""));B=q.find("img");if("media$thumbnail" in m){p=m.media$thumbnail.url.replace(/\/s[0-9]+\-c/g,"/s"+f.rlt_thumb+"-c")}else{if(B.length!=0){p=B[0].src}else{p=f.rlpBlank}}o=o.replace(/<\S[^>]*>/g,"");if(o.length>f.rlt_summary){o=o.substring(0,f.rlt_summary)}C=m.title.$t;y=m.published.$t.substring(0,10);n=y.substring(0,4);t=y.substring(5,7);A=y.substring(8,10);v=f.MonthNames[parseInt(t,10)-1];if(location.href.toLowerCase()!=z.toLowerCase()){i(z,C,p,o,n,A,v)}}}if(k>=f.tags.length){g.attr("class","");e("#related-posts-loadingtext",b).remove();if(f.maxPosts>0){e("li:gt("+(f.maxPosts-1)+")",g).remove()}}};var i=function(q,u,w,m,y,v,x){var r=e("li",g);for(var p=0,l=r.length;p=0;o--){var n=e("a",r.eq(o));if(j(n)>s){if(p-o>1){r.eq(o).after(r.eq(p))}return}}if(p>0){r.eq(0).before(r.eq(p))}return}}g.append('
")};var j=function(l){var m=parseInt(l.attr("score"));return m>0?m:1};var h=function(l,m){l.attr("score",m);if(f.relevantTip){l.attr("title",f.relevantTip.replace("\d",m))}if(f.postScoreClass){l.attr("class",f.postScoreClass+m)}};var d=function(){if(f.containerSelector!="#related_posts"){var l=e(f.containerSelector);if(l.length!=1){return}b=e('
').appendTo(l)}else{b=e(f.containerSelector)}if(!f.tags){f.tags=[];e('a[rel="tag"]:lt('+f.maxTags+")").each(function(){var o=e.trim(e(this).text().replace(/\n/g,""));if(e.inArray(o,f.tags)==-1){f.tags[f.tags.length]=o}})}if(f.tags.length==0&&!f.recentTitle){return}if(f.tags.length==0){e("
"+f.recentTitle+"
").appendTo(b)}else{if(f.relatedTitle){e("
"+f.relatedTitle+"
").appendTo(b)}}if(f.loadingText){e('
'+f.loadingText+"
").appendTo(b)}g=e("").appendTo(b);if(f.tags.length==0){e.get((f.blogURL===""?window.location.protocol+"//"+window.location.host:f.blogURL)+"/feeds/posts/default?max-results="+f.maxPostsPerTag+"&orderby=published&alt=json-in-script",c,"jsonp")}else{for(var n=0,m=f.tags.length;n<479){l=1;m=n.width()/l}else{if(e(window).width()<980){l=2;m=n.width()/l}else{if(e(window).width()<1030){l=3;m=n.width()/l}else{l=4;m=n.width()/l}}}e("ul",n).jcarousel({easing:"easeInOutQuint",animation:800,auto:4,wrap:"last",scroll:l,setupCallback:function(o){o.reload()},reloadCallback:function(p){var o=Math.floor(p.clipping()/m);p.options.scroll=o;p.options.visible=o}})},3000)})})(jQuery)}; //Ajax AutoFeatured Post by MKR (function(a){a.AutofeaturedPost=function(c,b){var d=this;d.$el=a(c);d.init=function(){d.options=a.extend({},a.AutofeaturedPost.defaultOptions,b);d.$el.html('
').addClass(d.options.loadingClass);var f=function(h){var m=h.length,l,k;if(m===0){return false}while(--m){l=Math.floor(Math.random()*(m+1));k=h[m];h[m]=h[l];h[l]=k}return h};var g=function(w){var r,l,s,n,v,m="",h="",t=(d.options.RandompostActive===true?f(w.feed.entry):w.feed.entry);for(var p=0,k=t.length;p)<[^<]*)*<\/script>/gi;newdowm=a("").append(s.replace(q,""));imgb=newdowm.find("img");if("media$thumbnail" in t[p]){v=t[p].media$thumbnail.url.replace(/\/s[0-9]+\-c/g,"/s"+d.options.ImageSize);if(t[p].media$thumbnail.url.indexOf("img.youtube.com")!=-1){v=t[p].media$thumbnail.url.replace("default","0")}}else{if(imgb.length!=0){v=imgb[0].src}else{v=d.options.pBlank}}s=s.replace(/<\S[^>]*>/g,"");if(s.length>d.options.Summarylength){s=s.substring(0,d.options.Summarylength)+"..."}l=t[p].title.$t;m+='
";h+=""}d.$el.find("ul.featpost").append(m);d.$el.find("div.nav-dots").append(h);var x=(function(){var C=d.$el.find(".nav-arrows").hide(),j=d.$el.find(".shadow").hide(),A=d.$el.find(".nav-dots").hide(),i=A.children("span"),z=d.$el.find("ul.featpost").slicebox({onReady:function(){C.show();A.show();j.show()},onBeforeChange:function(D){i.removeClass("nav-dot-current");i.eq(D).addClass("nav-dot-current")},orientation:"r",cuboidsRandom:true,disperseFactor:20,autoplay:true}),B=function(){y()},y=function(){C.children(":first").on("click",function(){z.next();return false});C.children(":last").on("click",function(){z.previous();return false});i.each(function(D){a(this).on("click",function(F){var E=a(this);if(!z.isActive()){i.removeClass("nav-dot-current");E.addClass("nav-dot-current")}z.jump(D+1);return false})})};return{init:B}})();x.init();d.$el.removeClass(d.options.loadingClass)};var e=function(i,h){return Math.floor(Math.random()*(h-i+1))+i};if(d.options.RandompostActive===true){a.get((d.options.blogURL===""?window.location.protocol+"//"+window.location.host:d.options.blogURL)+"/feeds/posts/default"+(d.options.tagName===false?"":"/-/"+d.options.tagName)+"?max-results=0&orderby=published&alt=json-in-script",function(h){var i=(d.options.MaxPost>h.feed.openSearch$totalResults.$t)?1:e(1,(h.feed.openSearch$totalResults.$t-d.options.MaxPost));a.get((d.options.blogURL===""?window.location.protocol+"//"+window.location.host:d.options.blogURL)+"/feeds/posts/default"+(d.options.tagName===false?"":"/-/"+d.options.tagName)+"?max-results="+d.options.MaxPost+"&orderby=published&start-index="+i+"&alt=json-in-script",g,"jsonp")},"jsonp")}else{a.get((d.options.blogURL===""?window.location.protocol+"//"+window.location.host:d.options.blogURL)+"/feeds/posts/default"+(d.options.tagName===false?"":"/-/"+d.options.tagName)+"?max-results="+d.options.MaxPost+"&orderby=published&alt=json-in-script",g,"jsonp")}};d.init()};a.AutofeaturedPost.defaultOptions={blogURL:"",MaxPost:4,ImageSize:650,Summarylength:150,RandompostActive:true,loadingClass:"loadingxx",pBlank:"http://ift.tt/1hfN01j",tagName:false};a.fn.AutofeaturedPost=function(b){return this.each(function(){(new a.AutofeaturedPost(this,b))})}})(jQuery); //Manual Featured Post (work with Blogger Image Widget) by MKR function manualfeaturedPost(c){var a=c("#topfeaturedmanual");var d=a.children(".Image");if(d.length>0){a.append('
')}d.each(function(){var f=c(this);var i=f.find("h2").text();var h=f.find(".widget-content img").attr("src");var g=f.find(".widget-content a").attr("href");var e=f.find(".caption").text();c("
").appendTo("#topfeaturedmanual ul.featpost");c("").appendTo("#topfeaturedmanual .nav-dots");c(this).remove()});if(d.length){var b=(function(){var k=a.find(".nav-arrows").hide(),f=a.find(".shadow").hide(),i=a.find(".nav-dots").hide(),e=i.children("span"),h=a.find("ul.featpost").slicebox({onReady:function(){k.show();i.show();f.show()},onBeforeChange:function(l){e.removeClass("nav-dot-current");e.eq(l).addClass("nav-dot-current")},orientation:"r",cuboidsRandom:true,disperseFactor:20,autoplay:true}),j=function(){g()},g=function(){k.children(":first").on("click",function(){h.next();return false});k.children(":last").on("click",function(){h.previous();return false});e.each(function(l){c(this).on("click",function(n){var m=c(this);if(!h.isActive()){e.removeClass("nav-dot-current");m.addClass("nav-dot-current")}h.jump(l+1);return false})})};return{init:j}})();b.init()}}; //Ajax RecentPostbyTag by MKR (function(a){a.RecentPostbyTag=function(c,b){var d=this;d.$el=a(c);d.init=function(){d.options=a.extend({},a.RecentPostbyTag.defaultOptions,b);d.$el.html('
').addClass(d.options.loadingClass);var f=function(h){var m=h.length,l,k;if(m===0){return false}while(--m){l=Math.floor(Math.random()*(m+1));k=h[m];h[m]=h[l];h[l]=k}return h};var g=function(D){var G,n,F,t,J,v,I,u,s,y,H,A,E,o="",k=(d.options.Random===true?f(D.feed.entry):D.feed.entry);if(k!==undefined){for(var B=0,r=k.length;B)<[^<]*)*<\/script>/gi;v=a("").append(F.replace(h,""));I=v.find("img");if("media$thumbnail" in k[B]){u=k[B].media$thumbnail.url.replace(/\/s[0-9]+\-c/g,"/"+d.options.ImageSize);if(k[B]===k[0]&&d.options.postType!=="s"){u=k[B].media$thumbnail.url.replace(/\/s[0-9]+\-c/g,"/"+d.options.FirstImageSize)}else{if(k[B].media$thumbnail.url.indexOf("img.youtube.com")!=-1){u=k[B].media$thumbnail.url.replace("default","0")}}}else{if(I.length!=0){u=I[0].src}else{u=d.options.pBlank}}F=F.replace(/<\S[^>]*>/g,"");if(F.length>d.options.Summarylength){F=F.substring(0,d.options.Summarylength)+"..."}n=k[B].title.$t;E=k[B].published.$t.substring(0,10);s=E.substring(0,4);y=E.substring(5,7);H=E.substring(8,10);A=d.options.MonthNames[parseInt(y,10)-1];o+='
/gi;function b(j){d.getScript("http://"+j+"http://.disqus.com/blogger_index.js")}function e(){if(i.loading){return}i.loading=true;if(!i.olderPostsLink){i.loadMoreDiv.hide();return}i.loadMoreDiv.find("a").addClass("process");d("#main-wrapper .textlast").hide();d("#main-wrapper .xitem1").append('Loading...');d.get(i.olderPostsLink,"html").done(function(l){var j=d("").append(l.replace(c,""));var k=j.find("a.blog-pager-older-link");if(k){i.olderPostsLink=k.attr("href")}else{i.olderPostsLink="";i.loadMoreDiv.hide()}var m=j.find(i.postContainerSelector).children(".date-outer");m.find(".post-summary").each(function(){var n,w,t,v,o,s,r,u,q,p="";w=d(this).parent(".post-body");o=w.children("textarea").val();q=o.replace(/<(.*?)>/g,"").replace(/[\n\r]+/g," ");s=d("").append(o.replace(c,""));r=s.find("img");iframex=s.find("iframe");parens=d(this).parents(".post");u=parens.find(".post-title.entry-title a").attr("href");titlex=parens.find(".post-title.entry-title a").text();if(r.length===0&&iframex.length===0){n=' '}else{if(r.length===0&&iframex.length>0){t=iframex[0].src;if(t.indexOf("youtube.com")!=-1||t.indexOf("youtu.be")!=-1){v=t.match(/(\?v=|\&v=|\/\d\/|\/embed\/|\/v\/|\.be\/)([a-zA-Z0-9\-\_]+)/);n=' '}else{n=' '}}else{n=' '}}p=n+'
"+q.substring(0,i.summaryLength)+"…
";d(this).html(p)});d(i.postContainerSelector).append(m);datenya(d);viewMode({viewmodedefault:i.viewmodedefault,cookielist:i.cookielist,cookiegrid:i.cookiegrid});if(window._gaq){window._gaq.push(["_trackPageview",i.olderPostsLink])}if(window.gapi&&window.gapi.plusone&&window.gapi.plusone.go){window.gapi.plusone.go()}if(window.disqus_shortname){b(window.disqus_shortname)}if(window.FB&&window.FB.XFBML&&window.FB.XFBML.parse){window.FB.XFBML.parse()}i.loadMoreDiv.find("a").removeClass("process");d("#main-wrapper .xitem1 .load").remove();d("#main-wrapper .textlast").show();i.loading=false})}function h(){if(_WidgetManager._GetAllData().blog.pageType=="item"){return}i.olderPostsLink=d("a.blog-pager-older-link").attr("href");if(!i.olderPostsLink){return}var j=d('
');i.loadMoreDiv.append(j);i.loadMoreDiv.insertBefore(d("#blog-pager"));d("#blog-pager").hide()}f.ready(h)})(jQuery)}; //Page Navigation by MKR function pageNavi(a){(function(e){var i={postperpage:6,numshowpage:3,previous:"«",next:"»",LatestText:"Latest Post"};i=e.extend({},i,a);var g="/";var d=location.href;var k;var l;var j;var f;var m=function(r){var t="";nomerkiri=parseInt(i.numshowpage/2);if(nomerkiri==i.numshowpage-nomerkiri){i.numshowpage=nomerkiri*2+1}mulai=j-nomerkiri;if(mulai<1){mulai=1}maksimal=parseInt(r/i.postperpage)+1;if(maksimal-1==r/i.postperpage){maksimal=maksimal-1}akhir=mulai+i.numshowpage-1;if(akhir>maksimal){akhir=maksimal}var n=parseInt(j)-1;if(j>1){if(j==2){if(l=="page"){t+=' '+i.previous+""}else{t+=''+i.previous+" "}}}if(mulai>1){if(l=="page"){t+='1 '}else{t+='1 '}}if(mulai>2){t+=' ... '}for(var u=mulai;u<=akhir;u++){if(j==u){t+=''+u+"";if(j>1){var q=e(".menu-xitem .textlast").html();if(q.length===1){e(".menu-xitem .textlast").append(i.LatestText)}e(".menu-xitem .xitem1").append(" : Page "+u+"")}}else{if(u==1){if(l=="page"){t+='1 '}else{t+=''+u+" "}else{t+=''+u+" "}}}}if(akhir'+maksimal+" "}else{t+=''+maksimal+" "}}var s=parseInt(j)+1;if(j'+i.next+" "}else{t+=''+i.next+" "}}var v=document.getElementsByName("pageArea");var w=document.getElementById("blog-pager");for(var o=0;o0){t=""}if(w){w.innerHTML=t}jQuery("#blog-pager").css("display","block");jQuery("#blog-pager a.xpagex, #blog-pager a.xlabelx").click(function(){var p=jQuery(this).attr("alt");jsonstart=(p-1)*i.postperpage;k=p;if(l=="page"){e.get(g+"feeds/posts/summary?start-index="+jsonstart+"&max-results=1&alt=json-in-script",h,"jsonp")}else{e.get(g+"feeds/posts/summary/-/"+f+"?start-index="+jsonstart+"&max-results=1&alt=json-in-script",h,"jsonp")}return false})};var b=function(n){var p=n.feed;var o=parseInt(p.openSearch$totalResults.$t,10);m(o)};var c=function(){var n=d;if(n.indexOf("/search/label/")!=-1){if(n.indexOf("?updated-max")!=-1){f=n.substring(n.indexOf("/search/label/")+14,n.indexOf("?updated-max"))}else{if(n.indexOf("?&max")!=-1){f=n.substring(n.indexOf("/search/label/")+14,n.indexOf("?&max"))}else{f=n.substr(n.lastIndexOf("/"))}}}if(n.indexOf("?q=")==-1&&n.indexOf(".html")==-1){if(n.indexOf("/search/label/")==-1){l="page";if(d.indexOf("#PageNo=")!=-1){j=d.substring(d.indexOf("#PageNo=")+8,d.length)}else{j=1}e.get(g+"feeds/posts/summary?max-results=1&alt=json-in-script",b,"jsonp")}else{l="label";if(n.indexOf("&max-results=")==-1){i.postperpage=20}if(d.indexOf("#PageNo=")!=-1){j=d.substring(d.indexOf("#PageNo=")+8,d.length)}else{j=1}e.get(g+"feeds/posts/summary/-/"+f+"?max-results=1&alt=json-in-script",b,"jsonp")}}};c();var h=function(o){post=o.feed.entry[0];var n=post.published.$t.substring(0,19)+post.published.$t.substring(23,29);var q=encodeURIComponent(n);if(l=="page"){var p="/search?updated-max="+q+"&max-results="+i.postperpage+"#PageNo="+k}else{var p="/search/label/"+f+"?updated-max="+q+"&max-results="+i.postperpage+"#PageNo="+k}location.href=p}})(jQuery)}; //Ajax Recent Comment by MKR (function(a){a.RecentComments=function(c,b){var d=this;d.$el=a(c);d.init=function(){d.options=a.extend({},a.RecentComments.defaultOptions,b);d.$el.addClass(d.options.loadingClass);a.get((d.options.blogURL===""?window.location.protocol+"//"+window.location.host:d.options.blogURL)+"/feeds/comments/default?alt=json-in-script&orderby=published",function(z){var f,e=z.feed.entry;if(e!==undefined){f="
- ";ntotal=0;for(var y=0;y=d.options.numComments){break}var h=e[y];for(var u=0;u ':"");var r=o.lastIndexOf("/")+1,t=o.lastIndexOf("."),F=o.split("-").join(" ").substring(r,t)+"...";E=h.published.$t.substring(0,10);var q=E.substring(0,4),v=E.substring(5,7),B=E.substring(8,10),w=d.options.MonthNames[parseInt(v,10)-1],p=h.published.$t.substring(11,16),j=p.substring(0,2),x=p.substring(2,5);if(j<12){s="AM"}else{s="PM"}if(j===0){j=12}if(j>12){j=j-12}f+='
";n=("content" in h)?h.content.$t:("summary" in h)?h.summary.$t:"";var g=n.replace(/(<([^>]+)>)/gi,"");if(g!==""&&g.length>d.options.characters){g=g.substring(0,d.options.characters);g+="..."}else{g=g}f+=(d.options.characters>0?""+g+"
":"");f+=" - "}}f+="
";d.$el.html(f).removeClass(d.options.loadingClass)}else{d.$el.html("No result!").removeClass(d.options.loadingClass)}},"jsonp")};d.init()};a.RecentComments.defaultOptions={blogURL:"",numComments:4,characters:100,avatarSize:50,loadingClass:"loadingxx",Showimage:true,defaultAvatar:"http://ift.tt/1afqgwl",MonthNames:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],maxfeeds:50,adminBlog:"Wawan Setyawan "};a.fn.RecentComments=function(b){return this.each(function(){(new a.RecentComments(this,b))})}})(jQuery); //Menu setting function menunav(b){b("#mobilenav").click(function(){b("#menunav").slideToggle();b(this).toggleClass("active");return false});b(".sf-menu ul").each(function(){var d=b(this).parent("li");d.append("")});function a(){var d=b(window).width();if(d>979){b("#menunav").css("display","block");b("#menunav").superfish({animation:{height:"show"},animationOut:{height:"hide"}});b(".sf-menu i").css("display","none")}else{if(d<=979&&b("#mobilenav").attr("class")==="active"){b("#menunav").css("display","block");b("#menunav").superfish("destroy");b(".sf-menu i").css("display","block")}else{if(d<=979&&b("#mobilenav").attr("class")!=="active"){b("#menunav").css("display","none");b("#menunav").superfish("destroy");b(".sf-menu i").css("display","block")}}}}a();b(window).resize(a);b(".sf-menu i").click(function(){var d=b(this).parent("li");var e=d.children("ul");e.slideToggle();b(this).toggleClass("active");return false});var c=window.location.href;b("#menunav a").each(function(){if(this.href===c){var d=b(this).parents("li").children("a").addClass("current")}})}; //Ajax JSON Search Result by MKR function searchxx(a){(function(d){var f={blogURL:"",srcBlank:"http://ift.tt/1hfN1Co",findText:"Search results for keyword",NotfindText:"No result!",Showthumb:true,LoadingText:"Searching...",scrthumbSize:50,summaryLength:100};f=d.extend({},f,a);var b=d("#ajax-search-form"),e=b.find(":text");b.append('
');var c=d("#search-result");b.on("submit",function(){var g=e.val();c.show().html('
'+f.LoadingText+"
");d.get((f.blogURL===""?window.location.protocol+"//"+window.location.host:f.blogURL)+"/feeds/posts/default?alt=json-in-script&q="+g+"&max-results=9999",function(w){var v=w.feed.entry,r,q,u,s,h,k,m="";if(v!==undefined){m="
"+f.findText+" ""+g+""
";m+='×
- ';for(var o=0;o"+g+"");for(var n=0,t=v[o].link.length;n)<[^<]*)*<\/script>/gi;h=d("").append(r.replace(p,""));k=h.find("img");if("media$thumbnail" in v[o]){q=v[o].media$thumbnail.url.replace(/\/s[0-9]+\-c/g,"/s"+f.scrthumbSize+"-c")}else{if(k.length!=0){q=k[0].src}else{q=f.srcBlank}}}r=r.replace(/<\S[^>]*>/g,"");if(r.length>f.summaryLength){r=r.substring(0,f.summaryLength)+"..."}r=r.replace(l,""+g+"");m+='
- '+(f.Showthumb===true?'':"")+""+u+" "+(f.summaryLength>0?"
"+r+"
":"")+""}m+="
');f.containerSelector="#related_posts"}var c=function(x,r){k++;if(x.feed.entry){for(var w=0;w)<[^<]*)*<\/script>/gi;q=e("").append(o.replace(l,""));B=q.find("img");if("media$thumbnail" in m){p=m.media$thumbnail.url.replace(/\/s[0-9]+\-c/g,"/s"+f.rlt_thumb+"-c")}else{if(B.length!=0){p=B[0].src}else{p=f.rlpBlank}}o=o.replace(/<\S[^>]*>/g,"");if(o.length>f.rlt_summary){o=o.substring(0,f.rlt_summary)}C=m.title.$t;y=m.published.$t.substring(0,10);n=y.substring(0,4);t=y.substring(5,7);A=y.substring(8,10);v=f.MonthNames[parseInt(t,10)-1];if(location.href.toLowerCase()!=z.toLowerCase()){i(z,C,p,o,n,A,v)}}}if(k>=f.tags.length){g.attr("class","");e("#related-posts-loadingtext",b).remove();if(f.maxPosts>0){e("li:gt("+(f.maxPosts-1)+")",g).remove()}}};var i=function(q,u,w,m,y,v,x){var r=e("li",g);for(var p=0,l=r.length;p=0;o--){var n=e("a",r.eq(o));if(j(n)>s){if(p-o>1){r.eq(o).after(r.eq(p))}return}}if(p>0){r.eq(0).before(r.eq(p))}return}}g.append('
")};var j=function(l){var m=parseInt(l.attr("score"));return m>0?m:1};var h=function(l,m){l.attr("score",m);if(f.relevantTip){l.attr("title",f.relevantTip.replace("\d",m))}if(f.postScoreClass){l.attr("class",f.postScoreClass+m)}};var d=function(){if(f.containerSelector!="#related_posts"){var l=e(f.containerSelector);if(l.length!=1){return}b=e('
').appendTo(l)}else{b=e(f.containerSelector)}if(!f.tags){f.tags=[];e('a[rel="tag"]:lt('+f.maxTags+")").each(function(){var o=e.trim(e(this).text().replace(/\n/g,""));if(e.inArray(o,f.tags)==-1){f.tags[f.tags.length]=o}})}if(f.tags.length==0&&!f.recentTitle){return}if(f.tags.length==0){e("
"+f.recentTitle+"
").appendTo(b)}else{if(f.relatedTitle){e("
"+f.relatedTitle+"
").appendTo(b)}}if(f.loadingText){e('
'+f.loadingText+"
").appendTo(b)}g=e("").appendTo(b);if(f.tags.length==0){e.get((f.blogURL===""?window.location.protocol+"//"+window.location.host:f.blogURL)+"/feeds/posts/default?max-results="+f.maxPostsPerTag+"&orderby=published&alt=json-in-script",c,"jsonp")}else{for(var n=0,m=f.tags.length;n<479){l=1;m=n.width()/l}else{if(e(window).width()<980){l=2;m=n.width()/l}else{if(e(window).width()<1030){l=3;m=n.width()/l}else{l=4;m=n.width()/l}}}e("ul",n).jcarousel({easing:"easeInOutQuint",animation:800,auto:4,wrap:"last",scroll:l,setupCallback:function(o){o.reload()},reloadCallback:function(p){var o=Math.floor(p.clipping()/m);p.options.scroll=o;p.options.visible=o}})},3000)})})(jQuery)}; //Ajax AutoFeatured Post by MKR (function(a){a.AutofeaturedPost=function(c,b){var d=this;d.$el=a(c);d.init=function(){d.options=a.extend({},a.AutofeaturedPost.defaultOptions,b);d.$el.html('
').addClass(d.options.loadingClass);var f=function(h){var m=h.length,l,k;if(m===0){return false}while(--m){l=Math.floor(Math.random()*(m+1));k=h[m];h[m]=h[l];h[l]=k}return h};var g=function(w){var r,l,s,n,v,m="",h="",t=(d.options.RandompostActive===true?f(w.feed.entry):w.feed.entry);for(var p=0,k=t.length;p)<[^<]*)*<\/script>/gi;newdowm=a("").append(s.replace(q,""));imgb=newdowm.find("img");if("media$thumbnail" in t[p]){v=t[p].media$thumbnail.url.replace(/\/s[0-9]+\-c/g,"/s"+d.options.ImageSize);if(t[p].media$thumbnail.url.indexOf("img.youtube.com")!=-1){v=t[p].media$thumbnail.url.replace("default","0")}}else{if(imgb.length!=0){v=imgb[0].src}else{v=d.options.pBlank}}s=s.replace(/<\S[^>]*>/g,"");if(s.length>d.options.Summarylength){s=s.substring(0,d.options.Summarylength)+"..."}l=t[p].title.$t;m+='
";h+=""}d.$el.find("ul.featpost").append(m);d.$el.find("div.nav-dots").append(h);var x=(function(){var C=d.$el.find(".nav-arrows").hide(),j=d.$el.find(".shadow").hide(),A=d.$el.find(".nav-dots").hide(),i=A.children("span"),z=d.$el.find("ul.featpost").slicebox({onReady:function(){C.show();A.show();j.show()},onBeforeChange:function(D){i.removeClass("nav-dot-current");i.eq(D).addClass("nav-dot-current")},orientation:"r",cuboidsRandom:true,disperseFactor:20,autoplay:true}),B=function(){y()},y=function(){C.children(":first").on("click",function(){z.next();return false});C.children(":last").on("click",function(){z.previous();return false});i.each(function(D){a(this).on("click",function(F){var E=a(this);if(!z.isActive()){i.removeClass("nav-dot-current");E.addClass("nav-dot-current")}z.jump(D+1);return false})})};return{init:B}})();x.init();d.$el.removeClass(d.options.loadingClass)};var e=function(i,h){return Math.floor(Math.random()*(h-i+1))+i};if(d.options.RandompostActive===true){a.get((d.options.blogURL===""?window.location.protocol+"//"+window.location.host:d.options.blogURL)+"/feeds/posts/default"+(d.options.tagName===false?"":"/-/"+d.options.tagName)+"?max-results=0&orderby=published&alt=json-in-script",function(h){var i=(d.options.MaxPost>h.feed.openSearch$totalResults.$t)?1:e(1,(h.feed.openSearch$totalResults.$t-d.options.MaxPost));a.get((d.options.blogURL===""?window.location.protocol+"//"+window.location.host:d.options.blogURL)+"/feeds/posts/default"+(d.options.tagName===false?"":"/-/"+d.options.tagName)+"?max-results="+d.options.MaxPost+"&orderby=published&start-index="+i+"&alt=json-in-script",g,"jsonp")},"jsonp")}else{a.get((d.options.blogURL===""?window.location.protocol+"//"+window.location.host:d.options.blogURL)+"/feeds/posts/default"+(d.options.tagName===false?"":"/-/"+d.options.tagName)+"?max-results="+d.options.MaxPost+"&orderby=published&alt=json-in-script",g,"jsonp")}};d.init()};a.AutofeaturedPost.defaultOptions={blogURL:"",MaxPost:4,ImageSize:650,Summarylength:150,RandompostActive:true,loadingClass:"loadingxx",pBlank:"http://ift.tt/1hfN01j",tagName:false};a.fn.AutofeaturedPost=function(b){return this.each(function(){(new a.AutofeaturedPost(this,b))})}})(jQuery); //Manual Featured Post (work with Blogger Image Widget) by MKR function manualfeaturedPost(c){var a=c("#topfeaturedmanual");var d=a.children(".Image");if(d.length>0){a.append('
')}d.each(function(){var f=c(this);var i=f.find("h2").text();var h=f.find(".widget-content img").attr("src");var g=f.find(".widget-content a").attr("href");var e=f.find(".caption").text();c("
").appendTo("#topfeaturedmanual ul.featpost");c("").appendTo("#topfeaturedmanual .nav-dots");c(this).remove()});if(d.length){var b=(function(){var k=a.find(".nav-arrows").hide(),f=a.find(".shadow").hide(),i=a.find(".nav-dots").hide(),e=i.children("span"),h=a.find("ul.featpost").slicebox({onReady:function(){k.show();i.show();f.show()},onBeforeChange:function(l){e.removeClass("nav-dot-current");e.eq(l).addClass("nav-dot-current")},orientation:"r",cuboidsRandom:true,disperseFactor:20,autoplay:true}),j=function(){g()},g=function(){k.children(":first").on("click",function(){h.next();return false});k.children(":last").on("click",function(){h.previous();return false});e.each(function(l){c(this).on("click",function(n){var m=c(this);if(!h.isActive()){e.removeClass("nav-dot-current");m.addClass("nav-dot-current")}h.jump(l+1);return false})})};return{init:j}})();b.init()}}; //Ajax RecentPostbyTag by MKR (function(a){a.RecentPostbyTag=function(c,b){var d=this;d.$el=a(c);d.init=function(){d.options=a.extend({},a.RecentPostbyTag.defaultOptions,b);d.$el.html('
').addClass(d.options.loadingClass);var f=function(h){var m=h.length,l,k;if(m===0){return false}while(--m){l=Math.floor(Math.random()*(m+1));k=h[m];h[m]=h[l];h[l]=k}return h};var g=function(D){var G,n,F,t,J,v,I,u,s,y,H,A,E,o="",k=(d.options.Random===true?f(D.feed.entry):D.feed.entry);if(k!==undefined){for(var B=0,r=k.length;B)<[^<]*)*<\/script>/gi;v=a("").append(F.replace(h,""));I=v.find("img");if("media$thumbnail" in k[B]){u=k[B].media$thumbnail.url.replace(/\/s[0-9]+\-c/g,"/"+d.options.ImageSize);if(k[B]===k[0]&&d.options.postType!=="s"){u=k[B].media$thumbnail.url.replace(/\/s[0-9]+\-c/g,"/"+d.options.FirstImageSize)}else{if(k[B].media$thumbnail.url.indexOf("img.youtube.com")!=-1){u=k[B].media$thumbnail.url.replace("default","0")}}}else{if(I.length!=0){u=I[0].src}else{u=d.options.pBlank}}F=F.replace(/<\S[^>]*>/g,"");if(F.length>d.options.Summarylength){F=F.substring(0,d.options.Summarylength)+"..."}n=k[B].title.$t;E=k[B].published.$t.substring(0,10);s=E.substring(0,4);y=E.substring(5,7);H=E.substring(8,10);A=d.options.MonthNames[parseInt(y,10)-1];o+='
"}a("ul",d.$el).append(o);if(d.options.postType==="s"){var q=a(c).parents(".widget");var K=q.children("h2");if(d.options.tagName!=false){K.wrapInner('
')}var m;var p;if(a(window).width()
').removeClass(d.options.loadingClass)}}d.$el.removeClass(d.options.loadingClass)}else{d.$el.html("No result! Or Error Loading Feed")}};var e=function(i,h){return Math.floor(Math.random()*(h-i+1))+i};if(d.options.Random===true){a.get((d.options.blogURL===""?window.location.protocol+"//"+window.location.host:d.options.blogURL)+"/feeds/posts/default"+(d.options.tagName===false?"":"/-/"+d.options.tagName)+"?max-results=0&orderby=published&alt=json-in-script",function(h){var i=(d.options.MaxPost>h.feed.openSearch$totalResults.$t)?1:e(1,(h.feed.openSearch$totalResults.$t-d.options.MaxPost));a.get((d.options.blogURL===""?window.location.protocol+"//"+window.location.host:d.options.blogURL)+"/feeds/posts/default"+(d.options.tagName===false?"":"/-/"+d.options.tagName)+"?max-results="+d.options.MaxPost+"&orderby=published&start-index="+i+"&alt=json-in-script",g,"jsonp")},"jsonp")}else{a.get((d.options.blogURL===""?window.location.protocol+"//"+window.location.host:d.options.blogURL)+"/feeds/posts/default"+(d.options.tagName===false?"":"/-/"+d.options.tagName)+"?max-results="+d.options.MaxPost+"&orderby=published&alt=json-in-script",g,"jsonp")}};d.init()};a.RecentPostbyTag.defaultOptions={blogURL:"",MaxPost:4,FirstImageSize:"s220-p",ImageSize:"s80-p",ShowDesc:false,ShowDate:true,ShowComment:true,Random:false,Summarylength:100,postType:"v",loadingClass:"loadingxx",pBlank:"http://ift.tt/1hfN01j",MonthNames:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],tagName:false};a.fn.RecentPostbyTag=function(b){return this.each(function(){(new a.RecentPostbyTag(this,b))})}})(jQuery); //]]>
Komentar
Posting Komentar