نوێترین

recent

24/08/2016

گەنجێک گۆرانی بۆ حکومەت و مەسئولەکان ئەڵێت

') } }); // This is function to activate ads $(function() { var b = -1 !== $(".post-body").html().indexOf('
\n
') ? $(".post-body article > [dir]").html().split('
\n
') : 1; $("#postAD-top").append($("#HTML201")); $("#postAD-bottom").append($("#HTML203")); var a = $(".post-body [dir] *:not('.s-code *,blockquote *,.sh-msg *,.slider *,.accordion *,.contact *')"); var c = Math.floor(a.length / 2); 1 == b.length ? $("#HTML202").remove() : a.eq(c).after($("#HTML202")); if (1 < b.length) for (b.splice(0, 0, ""), $(".post-body article > [dir]").empty(), $(".post-body article > [dir]").after('
'), a = 0; a < b.length; a += 1) 1 === a ? ($(".post-body article > [dir]").append('
'), $(".post-pagin").append('' + a + "")) : 1 < a && ($(".post-body article > [dir]").append('
'), $(".post-pagin").append("" + a + "")), c = $.parseHTML(b[a]), $(c).appendTo($("#block-" + a)); $("body").on("click", ".post-pagin span", function() { $("#block-" + $(this).text()).addClass("b-active").siblings().removeClass("b-active"); $("html,body").animate({ scrollTop: $(".article-title").offset().top }) }); }); // This is function to activate Scroll bar $(function() { $('.post-body').readingTime(); }); var bar_bg = document.getElementById("scrollbar-bg"), body = document.body, html = document.documentElement; bar_bg.style.minWidth = document.width + "px"; document.getElementsByTagName("body")[0].onresize = function() { bar_bg.style.minWidth = document.width + "px" } window.onscroll = function() { var bar = document.getElementById("scrollbar"), dw = document.documentElement.clientWidth, dh = Math.max(body.scrollHeight, body.offsetHeight, html.clientHeight, html.scrollHeight, html.offsetHeight), wh = window.innerHeight, pos = pageYOffset || (document.documentElement.clientHeight ? document.documentElement.scrollTop : document.body.scrollTop), bw = ((pos / (dh - wh)) * 100); bar.style.width = bw + "%" } // This is function to activate Pagination Pages var postperpage=9; var numshowpage=3; var upPageWord ='Previous'; var downPageWord ='Next'; var urlactivepage=location.href; var home_page="/"; var nopage; var jenis; var nomerhal; var lblname1; halamanblogger(); function loophalaman(banyakdata) { var html = ''; nomerkiri = parseInt(numshowpage / 2); if (nomerkiri == numshowpage - nomerkiri) { numshowpage = nomerkiri * 2 + 1 } mulai = nomerhal - nomerkiri; if (mulai < 1) mulai = 1; maksimal = parseInt(banyakdata / postperpage) + 1; if (maksimal - 1 == banyakdata / postperpage) maksimal = maksimal - 1; akhir = mulai + numshowpage - 1; if (akhir > maksimal) akhir = maksimal; html += "Page " + nomerhal + ' of ' + maksimal + ""; var prevnomer = parseInt(nomerhal) - 1; if (nomerhal > 1) { if (nomerhal == 2) { if (jenis == "page") { html += '' + upPageWord + '' } else { html += '' + upPageWord + '' } } else { if (jenis == "page") { html += '' + upPageWord + '' } else { html += '' + upPageWord + '' } } } if (mulai > 1) { if (jenis == "page") { html += '1' } else { html += '1' } } if (mulai > 2) { html += ' ... ' } for (var jj = mulai; jj <= akhir; jj++) { if (nomerhal == jj) { html += '' + jj + '' } else if (jj == 1) { if (jenis == "page") { html += '1' } else { html += '1' } } else { if (jenis == "page") { html += '' + jj + '' } else { html += '' + jj + '' } } } if (akhir < maksimal - 1) { html += '...' } if (akhir < maksimal) { if (jenis == "page") { html += '' + maksimal + '' } else { html += '' + maksimal + '' } } var nextnomer = parseInt(nomerhal) + 1; if (nomerhal < maksimal) { if (jenis == "page") { html += '' + downPageWord + '' } else { html += '' + downPageWord + '' } } var pageArea = document.getElementsByName("pageArea"); var blogPager = document.getElementById("blog-pager"); for (var p = 0; p < pageArea.length; p++) { pageArea[p].innerHTML = html } if (pageArea && pageArea.length > 0) { html = '' } if (blogPager) { blogPager.innerHTML = html } } function hitungtotaldata(root) { var feed = root.feed; var totaldata = parseInt(feed.openSearch$totalResults.$t, 10); loophalaman(totaldata) } function halamanblogger() { var thisUrl = urlactivepage; if (thisUrl.indexOf("/search/label/") != -1) { if (thisUrl.indexOf("?updated-max") != -1) { lblname1 = thisUrl.substring(thisUrl.indexOf("/search/label/") + 14, thisUrl.indexOf("?updated-max")) } else { lblname1 = thisUrl.substring(thisUrl.indexOf("/search/label/") + 14, thisUrl.indexOf("?&max")) } } if (thisUrl.indexOf("?q=") == -1 && thisUrl.indexOf(".html") == -1) { if (thisUrl.indexOf("/search/label/") == -1) { jenis = "page"; if (urlactivepage.indexOf("#PageNo=") != -1) { nomerhal = urlactivepage.substring(urlactivepage.indexOf("#PageNo=") + 8, urlactivepage.length) } else { nomerhal = 1 } document.write("