Jump to content

Blog Viiish

Members
  • Content count

    1
  • Joined

  • Last visited

Community Reputation

0 Comum

About Blog Viiish

  1. Boa tarde! Estou com um problema no js abaixo: <script type='text/javascript'> function pageNavi(o){var m=location.href,l=m.indexOf(&quot;/search/label/&quot;)!=-1,a=l?m.substr(m.indexOf(&quot;/search/label/&quot;)+14,m.length):&quot;&quot;;a=a.indexOf(&quot;?&quot;)!=-1?a.substr(0,a.indexOf(&quot;?&quot;)):a;var g=l?&quot;/search/label/&quot;+a+&quot;?updated-max=&quot;:&quot;/search?updated-max=&quot;,k=o.feed.entry.length,e=Math.ceil(k/pageNaviConf.perPage);if(e&lt;=1){return} var n=1,h=[&quot;&quot;];l?h.push(&quot;/search/label/&quot;+a+&quot;?max-results=&quot;+pageNaviConf.perPage):h.push(&quot;/?max-results=&quot;+pageNaviConf.perPage);for(var d=2;d&lt;=e;d++){var c=(d-1)*pageNaviConf.perPage-1,b=o.feed.entry[c].published.$t,f=b.substring(0,19)+b.substring(23,29);f=encodeURIComponent(f);if(m.indexOf(f)!=-1){n=d} h.push(g+f+&quot;&amp;max-results=&quot;+pageNaviConf.perPage)} pageNavi.show(h,n,e)} pageNavi.show=function(f,e,a){var d=Math.floor((pageNaviConf.numPages-1)/2), g=pageNaviConf.numPages-1-d,c=e-d;if(c&lt;=0){c=1} endPage=e+g;if((endPage-c)&lt;pageNaviConf.numPages){endPage=c+pageNaviConf.numPages-1} if(endPage&gt;a){endPage=a;c=a-pageNaviConf.numPages+1} if(c&lt;=0){c=1} var b=&#39;&lt;span class=&quot;Page&quot;&gt;Pagina &#39;+e+&#39; de &#39;+a+&quot;&lt;/span&gt; &quot;;if(c&gt;1){b+=&#39;&lt;a href=&quot;&#39;+f[1]+&#39;&quot;&gt;&#39;+pageNaviConf.firstText+&quot;&lt;/a&gt;&quot;} if(e&gt;1){b+=&#39;&lt;a href=&quot;&#39;+f[e-1]+&#39;&quot;&gt;&#39;+pageNaviConf.prevText+&quot;&lt;/a&gt;&quot;} for(i=c;i&lt;=endPage;++i){if(i==e){b+=&#39;&lt;span class=&quot;current&quot;&gt;&#39;+i+&quot;&lt;/span&gt;&quot;}else{b+=&#39;&lt;a href=&quot;&#39;+f+&#39;&quot;&gt;&#39;+i+&quot;&lt;/a&gt;&quot;}} if(e&lt;a){b+=&#39;&lt;a href=&quot;&#39;+f[e+1]+&#39;&quot;&gt;&#39;+pageNaviConf.nextText+&quot;&lt;/a&gt;&quot;} if(endPage&lt;a){b+=&#39;&lt;a href=&quot;&#39;+f[a]+&#39;&quot;&gt;&#39;+pageNaviConf.lastText+&quot;&lt;/a&gt;&quot;} document.write(b)};(function(){var b=location.href;if(b.indexOf(&quot;?q=&quot;)!=-1||b.indexOf(&quot;.html&quot;)!=-1){return}var d=b.indexOf(&quot;/search/label/&quot;)+14;if(d!=13){var c=b.indexOf(&quot;?&quot;),a=(c==-1)?b.substring(d):b.substring(d,c);document.write(&#39;&lt;script type=&quot;text/javascript&quot; src=&quot;/feeds/posts/summary/-/&#39;+a+&#39;?alt=json-in-script&amp;callback=pageNavi&amp;max-results=999999&quot;&gt;&lt;\/script&gt;&#39;)}else{document.write(&#39;&lt;script type=&quot;text/javascript&quot; src=&quot;/feeds/posts/summary?alt=json-in-script&amp;callback=pageNavi&amp;max-results=999999&quot;&gt;&lt;\/script&gt;&#39;)}})(); </script> Ao aplicar no blog, por mais que tenhamos 6000+ postagens e tendo posts novos todos os dias, a paginação fica sempre até a página 38. Saberiam verificar o que pode ser o impeditivo? o blog é http://www.blogviiish.com.br Obrigado!
×

Important Information

Ao usar o fórum, você concorda com nossos Terms of Use.