Kwesties 0 Pull-aanvragen 0 Commits 461 Publicaties 0 Wiki

43 Commits (479500f72c4dbfe77c4d4e856659b646479fd382)

Auteur SHA1 Bericht Datum
  luyanan 479500f72c 添加缺省样式 7 jaren geleden
  luyanan db70021340 更改头部head的z-index 7 jaren geleden
  luyanan 7e5d45c946 文章浏览相关的显示 7 jaren geleden
  luyanan 61e36ae3e7 文章列表和资源列表、新增资源导入 7 jaren geleden
  luyanan 50eba9dce9 资源导入样式和已收藏样式 7 jaren geleden
  luyanan 0cbddd4b66 Merge branch 'dev' of http://121.42.53.174:3000/jiapeng/portal-front.git 7 jaren geleden
  luyanan 8201e6fb83 修改完善文章列表和文章浏览 7 jaren geleden
  luyanan 7f6f12af99 新版搜索以及文章相关样式 7 jaren geleden
  luyanan 4ec079af5c 搜索条和导航头像 7 jaren geleden
  luyanan df64bbd455 更换顶部操作栏的文字颜色 7 jaren geleden
  luyanan 70efc5c3e9 修改判断标识以及专家头像与企业logo的区别 7 jaren geleden
  luyanan b007df703d 添加顶部导航栏定位一直悬浮效果 7 jaren geleden
  luyanan 20e2b81022 科袖普通版的导航条和新版登录 7 jaren geleden
  luyanan 99001a6699 更换网站logo,更换发现广告二维码 7 jaren geleden
  luyanan 85602e8ae9 可视区域的调整,文字溢出的隐藏 7 jaren geleden
  luyanan ff39dc704c 修改之前专家标志,企业版logo换成蓝色 7 jaren geleden
  luyanan e9d72ca397 企业版顶部导航下拉菜单ie兼容问题以及ie表单行高问题 7 jaren geleden
  luyanan bdba58b090 发现模块页面 7 jaren geleden
  luyanan 748acb2b86 添加企业入驻入口 7 jaren geleden
  luyanan 63d1a07dec 企业邀请员工注册科袖 7 jaren geleden
  luyanan 39404d5d76 更改普通版头部导航 7 jaren geleden
  luyanan f80b57855d 底栏文字大小 7 jaren geleden
  xuchunyang 9a830e01aa 修改查询专家点击咨询后提交成功后再滑动鼠标,下面的地址栏就跟着上去了 7 jaren geleden
  luyanan 25e5f0b535 首页添加我是专家和发布需求入口,更换首页底部footer 7 jaren geleden
  luyanan bcbd58b638 提取公共底部导航footer.js,修改index顶部导航样式 7 jaren geleden
  luyanan ad433407a9 实名认证和专家认证 7 jaren geleden
  luyanan f368567e4f 底部二维码被遮盖问题 7 jaren geleden
  luyanan fc12d5b332 底部导航栏留白问题 7 jaren geleden
  luyanan 3ae4d507e8 顶部header 7 jaren geleden
  luyanan 5c40b28195 顶部色条超出client时出现空白现象 7 jaren geleden
  luyanan 216ab6316d 用户身份类型选择显示 7 jaren geleden
  luyanan 68d369221c main内容区域完善 7 jaren geleden
  luyanan 8fd24b162f 研究方向点击查看详情 7 jaren geleden
  luyanan 4fcd64a97e 【我的工作台】上加入我的文章模块 7 jaren geleden
  luyanan 0d2e13d8f6 【我的工作台】添加关注模块 7 jaren geleden
  luyanan 5961a4e80a 新增注册时邮箱验证成功与失败的判断 7 jaren geleden
  luyanan 088a5525ea 修改download样式,上传ico图标 7 jaren geleden
  luyanan b14a023713 资源图片发布修改显示变形问题 7 jaren geleden
  luyanan ac3781b7a6 资源分享和专家分享完善以及身份认证标识完善 7 jaren geleden
  luyanan 4dc87592fa 分享页面不适应问题 8 jaren geleden
  luyanan 0054f738af 资源图片压缩变形问题 8 jaren geleden
  luyanan ce66aec30c 解决资源图片变形问题 8 jaren geleden
  jiapeng c5d9752792 --init 8 jaren geleden
back-conference - Gogs: Go Git Service

后端

searchreplace.js 4.3KB

    /** * Created with JetBrains PhpStorm. * User: xuheng * Date: 12-9-26 * Time: 下午12:29 * To change this template use File | Settings | File Templates. */ //清空上次查选的痕迹 editor.firstForSR = 0; editor.currentRangeForSR = null; //给tab注册切换事件 /** * tab点击处理事件 * @param tabHeads * @param tabBodys * @param obj */ function clickHandler( tabHeads,tabBodys,obj ) { //head样式更改 for ( var k = 0, len = tabHeads.length; k < len; k++ ) { tabHeads[k].className = ""; } obj.className = "focus"; //body显隐 var tabSrc = obj.getAttribute( "tabSrc" ); for ( var j = 0, length = tabBodys.length; j < length; j++ ) { var body = tabBodys[j], id = body.getAttribute( "id" ); if ( id != tabSrc ) { body.style.zIndex = 1; } else { body.style.zIndex = 200; } } } /** * TAB切换 * @param tabParentId tab的父节点ID或者对象本身 */ function switchTab( tabParentId ) { var tabElements = $G( tabParentId ).children, tabHeads = tabElements[0].children, tabBodys = tabElements[1].children; for ( var i = 0, length = tabHeads.length; i < length; i++ ) { var head = tabHeads[i]; if ( head.className === "focus" )clickHandler(tabHeads,tabBodys, head ); head.onclick = function () { clickHandler(tabHeads,tabBodys,this); } } } $G('searchtab').onmousedown = function(){ $G('search-msg').innerHTML = ''; $G('replace-msg').innerHTML = '' } //是否区分大小写 function getMatchCase(id) { return $G(id).checked ? true : false; } //查找 $G("nextFindBtn").onclick = function (txt, dir, mcase) { var findtxt = $G("findtxt").value, obj; if (!findtxt) { return false; } obj = { searchStr:findtxt, dir:1, casesensitive:getMatchCase("matchCase") }; if (!frCommond(obj)) { var bk = editor.selection.getRange().createBookmark(); $G('search-msg').innerHTML = lang.getEnd; editor.selection.getRange().moveToBookmark(bk).select(); } }; $G("nextReplaceBtn").onclick = function (txt, dir, mcase) { var findtxt = $G("findtxt1").value, obj; if (!findtxt) { return false; } obj = { searchStr:findtxt, dir:1, casesensitive:getMatchCase("matchCase1") }; frCommond(obj); }; $G("preFindBtn").onclick = function (txt, dir, mcase) { var findtxt = $G("findtxt").value, obj; if (!findtxt) { return false; } obj = { searchStr:findtxt, dir:-1, casesensitive:getMatchCase("matchCase") }; if (!frCommond(obj)) { $G('search-msg').innerHTML = lang.getStart; } }; $G("preReplaceBtn").onclick = function (txt, dir, mcase) { var findtxt = $G("findtxt1").value, obj; if (!findtxt) { return false; } obj = { searchStr:findtxt, dir:-1, casesensitive:getMatchCase("matchCase1") }; frCommond(obj); }; //替换 $G("repalceBtn").onclick = function () { var findtxt = $G("findtxt1").value.replace(/^\s|\s$/g, ""), obj, replacetxt = $G("replacetxt").value.replace(/^\s|\s$/g, ""); if (!findtxt) { return false; } if (findtxt == replacetxt || (!getMatchCase("matchCase1") && findtxt.toLowerCase() == replacetxt.toLowerCase())) { return false; } obj = { searchStr:findtxt, dir:1, casesensitive:getMatchCase("matchCase1"), replaceStr:replacetxt }; frCommond(obj); }; //全部替换 $G("repalceAllBtn").onclick = function () { var findtxt = $G("findtxt1").value.replace(/^\s|\s$/g, ""), obj, replacetxt = $G("replacetxt").value.replace(/^\s|\s$/g, ""); if (!findtxt) { return false; } if (findtxt == replacetxt || (!getMatchCase("matchCase1") && findtxt.toLowerCase() == replacetxt.toLowerCase())) { return false; } obj = { searchStr:findtxt, casesensitive:getMatchCase("matchCase1"), replaceStr:replacetxt, all:true }; var num = frCommond(obj); if (num) { $G('replace-msg').innerHTML = lang.countMsg.replace("{#count}", num); } }; //执行 var frCommond = function (obj) { return editor.execCommand("searchreplace", obj); }; switchTab("searchtab");