Van
2019-02-11 01:06:43 +08:00
parent dd015bb41e
commit d7e9db917c
289 changed files with 4122 additions and 2277 deletions

View File

@@ -1,3 +1,20 @@
/*
* Solo - A small and beautiful blogging system written in Java.
* Copyright (c) 2010-2019, b3log.org & hacpai.com
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
/*
Copyright (C) 2011 iSayme Some rights reserved.
Author: iSayme

File diff suppressed because one or more lines are too long

View File

@@ -1,3 +1,20 @@
/*
* Solo - A small and beautiful blogging system written in Java.
* Copyright (c) 2010-2019, b3log.org & hacpai.com
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
function showPageLink(sUrl, iPage, iCount, sAnchor)
{
var i = 0;

View File

@@ -1 +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'>&laquo;</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)'>&laquo;</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'>&raquo;</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)'>&raquo;</a>");document.write('<a href="'+b+e+c+"\" title='Last page(The "+e+" page)'>Last</a> ")}};
function showPageLink(e,a,t,s){var o=0;for(o=Math.max(1,a-1),1==a?(document.write("<span class='pages' style='color:#7D7D7D'>1st</span> "),document.write("<span class='pages' style='color:#7D7D7D'>&laquo;</span> ")):(document.write('<a href="'+e+s+"1\" title='The 1 page'>1st</a> "),document.write('<a href="'+e+o+s+"\" title='Prev page(The "+o+" page)'>&laquo;</a> ")),6<a&&document.write("<span>...</span> "),o=Math.max(1,a-5);o<a;o++)document.write('<a href="'+e+o+s+"\" title='The "+o+" page'>"+o+"</a> ");for(document.write("<font color='red'>"+a+"</font> "),o=a+1;o<=Math.min(t,a+5);o++)document.write('<a href="'+e+o+s+"\" title='The "+o+" page'>"+o+"</a> ");o=Math.min(t,a+1),a+5<t&&document.write("<span>...</span> "),a==t?(document.write("<span class='pages' style='color:#7D7D7D'>&raquo;</span> "),document.write("<span class='pages' style='color:#7D7D7D'>Last</span> ")):(document.write(' <a href="'+e+o+s+"\" title='Next page(The "+o+" page)'>&raquo;</a>"),document.write('<a href="'+e+t+s+"\" title='Last page(The "+t+" page)'>Last</a> "))}