/**/ /* lastPageNo) pageEnd = lastPageNo; html += "Page " + currentPageNo + ' of ' + lastPageNo + ""; var prevNumber = parseInt(currentPageNo) - 1; //Iccsi was here, doing magic if (currentPageNo > 1) { if (currentPage == "page") { html += '' + firstText + '' } else { html += '' + firstText + '' } } if (currentPageNo > 2) { if (currentPageNo == 3) { if (currentPage == "page") { html += '' + prevText + '' } else { html += '' + prevText + '' } } else { if (currentPage == "page") { html += '' + prevText + '' } else { html += '' + prevText + '' } } } if (pageStart > 1) { if (currentPage == "page") { html += '1' } else { html += '1' } } if (pageStart > 2) { html += ' ... ' } for (var jj = pageStart; jj <= pageEnd; jj++) { if (currentPageNo == jj) { html += '' + jj + '' } else if (jj == 1) { if (currentPage == "page") { html += '1' } else { html += '1' } } else { if (currentPage == "page") { html += '' + jj + '' } else { html += '' + jj + '' } } } if (pageEnd < lastPageNo - 1) { html += '...' } if (pageEnd < lastPageNo) { if (currentPage == "page") { html += '' + lastPageNo + '' } else { html += '' + lastPageNo + '' } } var nextnumber = parseInt(currentPageNo) + 1; if (currentPageNo < (lastPageNo - 1)) { if (currentPage == "page") { html += '' + nextText + '' } else { html += '' + nextText + '' } } if (currentPageNo < lastPageNo) { //Iccsi was here, doing magic if (currentPage == "page") { html += '' + lastText + '' } else { html += '' + lastText + '' } } 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 totalcountdata(root) { var feed = root.feed; var totaldata = parseInt(feed.openSearch$totalResults.$t, 10); console.log(totaldata); looppagecurrentg(totaldata) } function pagecurrentg() { var thisUrl = urlactivepage; if (thisUrl.indexOf("/search/label/") != -1) { if (thisUrl.indexOf("?updated-max") != -1) { postLabel = thisUrl.substring(thisUrl.indexOf("/search/label/") + 14, thisUrl.indexOf("?updated-max")) } else { postLabel = thisUrl.substring(thisUrl.indexOf("/search/label/") + 14, thisUrl.indexOf("?&max")) } } if (thisUrl.indexOf(".html") == -1) { if (thisUrl.indexOf("/search/label/") == -1) { currentPage = "page"; if (urlactivepage.indexOf("#PageNo=") != -1) { currentPageNo = urlactivepage.substring(urlactivepage.indexOf("#PageNo=") + 8, urlactivepage.length) } else { currentPageNo = 1 } if(thisUrl.indexOf("q=") == -1){ document.write("