🏗️
This commit is contained in:
17
skins/Coda/js/coda.js
Normal file
17
skins/Coda/js/coda.js
Normal file
File diff suppressed because one or more lines are too long
1
skins/Coda/js/coda.min.js
vendored
Normal file
1
skins/Coda/js/coda.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
48
skins/Coda/js/pagenavi.js
Normal file
48
skins/Coda/js/pagenavi.js
Normal file
@@ -0,0 +1,48 @@
|
||||
function showPageLink(sUrl, iPage, iCount, sAnchor)
|
||||
{
|
||||
var i = 0;
|
||||
i = Math.max(1, iPage - 1);
|
||||
|
||||
if (iPage == 1)
|
||||
{
|
||||
document.write("<span class='pages' style='color:#7D7D7D'>1st</span> ");
|
||||
document.write("<span class='pages' style='color:#7D7D7D'>«</span> ");
|
||||
}
|
||||
else
|
||||
{
|
||||
document.write("<a href=\"" + sUrl + sAnchor + "1\" title='The 1 page'>1st</a> ");
|
||||
document.write("<a href=\"" + sUrl + i + sAnchor + "\" title='Prev page(The " + i + " page)'>«</a> ");
|
||||
}
|
||||
|
||||
if (iPage > 6)
|
||||
{
|
||||
document.write("<span>...</span> ");
|
||||
}
|
||||
|
||||
for (i = Math.max(1, iPage - 5); i < iPage; i++)
|
||||
{
|
||||
document.write("<a href=\"" + sUrl + i + sAnchor + "\" title='The " + i + " page'>" + i + "</a> ");
|
||||
}
|
||||
document.write("<font color='red'>" + iPage + "</font> ");
|
||||
|
||||
for (i = iPage + 1; i <= Math.min(iCount, iPage + 5); i++)
|
||||
{
|
||||
document.write("<a href=\""+sUrl + i + sAnchor + "\" title='The " + i + " page'>" + i + "</a> ");
|
||||
}
|
||||
i = Math.min(iCount, iPage + 1);
|
||||
|
||||
if (iCount > iPage + 5)
|
||||
{
|
||||
document.write("<span>...</span> ");
|
||||
}
|
||||
if (iPage == iCount)
|
||||
{
|
||||
document.write("<span class='pages' style='color:#7D7D7D'>»</span> ");
|
||||
document.write("<span class='pages' style='color:#7D7D7D'>Last</span> ");
|
||||
}
|
||||
else
|
||||
{
|
||||
document.write(" <a href=\"" + sUrl + i + sAnchor + "\" title='Next page(The " + i + " page)'>»</a>");
|
||||
document.write("<a href=\"" + sUrl + iCount + sAnchor + "\" title='Last page(The " + iCount + " page)'>Last</a> ");
|
||||
}
|
||||
}
|
1
skins/Coda/js/pagenavi.min.js
vendored
Normal file
1
skins/Coda/js/pagenavi.min.js
vendored
Normal file
@@ -0,0 +1 @@
|
||||
function showPageLink(b,d,e,c){var a=0;a=Math.max(1,d-1);if(d==1){document.write("<span class='pages' style='color:#7D7D7D'>1st</span> ");document.write("<span class='pages' style='color:#7D7D7D'>«</span> ")}else{document.write('<a href="'+b+c+"1\" title='The 1 page'>1st</a> ");document.write('<a href="'+b+a+c+"\" title='Prev page(The "+a+" page)'>«</a> ")}if(d>6){document.write("<span>...</span> ")}for(a=Math.max(1,d-5);a<d;a++){document.write('<a href="'+b+a+c+"\" title='The "+a+" page'>"+a+"</a> ")}document.write("<font color='red'>"+d+"</font> ");for(a=d+1;a<=Math.min(e,d+5);a++){document.write('<a href="'+b+a+c+"\" title='The "+a+" page'>"+a+"</a> ")}a=Math.min(e,d+1);if(e>d+5){document.write("<span>...</span> ")}if(d==e){document.write("<span class='pages' style='color:#7D7D7D'>»</span> ");document.write("<span class='pages' style='color:#7D7D7D'>Last</span> ")}else{document.write(' <a href="'+b+a+c+"\" title='Next page(The "+a+" page)'>»</a>");document.write('<a href="'+b+e+c+"\" title='Last page(The "+e+" page)'>Last</a> ")}};
|
Reference in New Issue
Block a user