ass="ui tabular menu navbar"> Code Issues 0 Pull Requests 0 Commits 202 Releases 0 Wiki

No Description

XMTT ead33e40b6 产品相关 6 years ago
..
answer.css 43b6979b5a 问答管理 6 years ago
article.css 59e9085266 文章作者点击跳转 7 years ago
articleModify.css a888882ae0 111 7 years ago
consult.css 3d8ce2fc4f 对话列表 7 years ago
content.css 57790766da 后续 7 years ago
customer.css 2fec08755b 需求管理、专家用户名和机构名修改, trim 7 years ago
demand.css 163eefcfea 2.4新增平台 6 years ago
dict.css f38e1292b2 3 7 years ago
disbanner.css 0c95eb9209 发现栏目 7 years ago
expert.css 3cb7835101 专家认证,认证通过后 认证按钮不再可以点击 7 years ago
feedback.css a66705150a 产品1.9版本对应的运营系统 7 years ago
import.css 2676a86705 资源导入 7 years ago
org.css 7ca9dfbd81 企业名称点击跳转 7 years ago
orgapply.css f566d4ee3f 21 7 years ago
paper.css 9ed319156b 功能优化 7 years ago
patent.css 9ed319156b 功能优化 7 years ago
personal.css 9e08fc080a add 个人业绩 7 years ago
pictable.css 7049cc6f46 pictable 7 years ago
platform.css 163eefcfea 2.4新增平台 6 years ago
product.css ead33e40b6 产品相关 6 years ago
productIssue.css ead33e40b6 产品相关 6 years ago
professor.css a6c9a0c45d 专家权重设置 7 years ago
professornew.css 821a85942d 用户信息管理 按浏览量排序 6 years ago
question.css 43b6979b5a 问答管理 6 years ago
realname.css f566d4ee3f 21 7 years ago
resource.css 63271c542c 0 7 years ago
resourceIssue.css c3eb6e0c2e 资源编辑 7 years ago
resourceinfo.css c8b0f69fef 111 6 years ago
resresult.css 97de328702 2.1 研究成果管理 7 years ago
right.css acacb8280b 000 7 years ago
role.css ec579280f8 00 7 years ago
searchword.css 726c3e6e6b 文章分渠道浏览量统计,搜索词统计记录 7 years ago
serviceIssue.css 2d1b047cbc 编辑服务 6 years ago
user.css 86fae59a07 重置用户密码 用户修改密码 7 years ago
usercount.css b56b115d9f lixin+zhao 7 years ago
userinfo.css 3b3adaacd5 check 7 years ago
ware.css c8b0f69fef 111 6 years ago
portal-front - Gogs: Go Git Service

portal html css js resource

jquery.page.js 2.9KB

    (function($){ var ms = { init:function(obj,args){ return (function(){ ms.fillHtml(obj,args); ms.bindEvent(obj,args); })(); }, //填充html fillHtml:function(obj,args){ return (function(){ obj.empty(); //上一页 if(args.current > 1){ obj.append('<a href="javascript:;" class="prevPage">上一页</a>'); }else{ obj.remove('.prevPage'); obj.append('<span class="disabled">上一页</span>'); } //中间页码 if(args.current != 1 && args.current >= 4 && args.pageCount != 4){ obj.append('<a href="javascript:;" class="tcdNumber">'+1+'</a>'); } if(args.current-2 > 2 && args.current <= args.pageCount && args.pageCount > 5){ obj.append('<span>...</span>'); } var start = args.current -2,end = args.current+2; if((start > 1 && args.current < 4)||args.current == 1){ end++; } if(args.current > args.pageCount-4 && args.current >= args.pageCount){ start--; } for (;start <= end; start++) { if(start <= args.pageCount && start >= 1){ if(start != args.current){ obj.append('<a href="javascript:;" class="tcdNumber">'+ start +'</a>'); }else{ obj.append('<span class="current">'+ start +'</span>'); } } } if(args.current + 2 < args.pageCount - 1 && args.current >= 1 && args.pageCount > 5){ obj.append('<span>...</span>'); } /*if(args.current != args.pageCount && args.current < args.pageCount -2 && args.pageCount != 4){ obj.append('<a href="javascript:;" class="tcdNumber">'+args.pageCount+'</a>'); }*/ //下一页 if(args.current < args.pageCount){ obj.append('<a href="javascript:;" class="nextPage">下一页</a>'); }else{ obj.remove('.nextPage'); obj.append('<span class="disabled">下一页</span>'); } })(); }, //绑定事件 bindEvent:function(obj,args){ return (function(){ obj.on("click","a.tcdNumber",function(){ var current = parseInt($(this).text()); ms.fillHtml(obj,{"current":current,"pageCount":args.pageCount}); if(typeof(args.backFn)=="function"){ args.backFn(current); } }); //上一页 obj.on("click","a.prevPage",function(){ var current = parseInt(obj.children("span.current").text()); ms.fillHtml(obj,{"current":current-1,"pageCount":args.pageCount}); if(typeof(args.backFn)=="function"){ args.backFn(current-1); } }); //下一页 obj.on("click","a.nextPage",function(){ var current = parseInt(obj.children("span.current").text()); ms.fillHtml(obj,{"current":current+1,"pageCount":args.pageCount}); if(typeof(args.backFn)=="function"){ args.backFn(current+1); } }); })(); } } $.fn.createPage = function(options){ var args = $.extend({ pageCount : 10, current : 1, backFn : function(){} },options); ms.init(this,args); } })(jQuery);