1 2 3/**************************ç¼å§ä¼****************************/ 4$(function(){ 5 var addr = window.location.href; 6 if(addr.indexOf("id")> -1 && addr.indexOf("dutyId")> -1 && addr.indexOf("ebId") == -1){ 7 $('.perIndex ').hide() 8 $('.perPositonCon').show() 9 10 $('.editorChief .perPosition li').each(function(){ 11 //console.log($(this)) 12 if(addr.indexOf($(this).attr('id')) > -1){ 13 $(this).addClass('ac').siblings().removeClass('ac') 14 } 15 }) 16 17 } 18 19 if(addr.indexOf("expert/peerReview")> -1){ 20 var q = getParamValue('q') 21 $('.perIndex,.editorChief .perPosition,.bwhMore').hide() 22 $('.perPositonCon,.perPositonCon form,.sgzjMore').show() 23 $('.editorChief .perPositonCon').css({'width':'100%','paddingLeft':0}) 24 if(q != '' && q != null && q != undefined){ 25 $('.pageviewform').attr('action',local_host + 'expert/peerReview?q='+q) 26 }else{ 27 $('.pageviewform').attr('action',local_host + 'expert/peerReview') 28 } 29 $('.top .nav ul>li[type=sgzj]').addClass('active').siblings().removeClass('active') 30 } 31 if(addr.indexOf("expert?id=")> -1 && addr.indexOf("&ebId=") == -1){ 32 $('.editorChief .perPosition').hide() 33 $('.editorChief .perPositonCon').css({'width':'100%','paddingLeft':0}) 34 } 35 if($('.perInfoDesc').length > 0){ 36 $('.perInfoDesc').subTextMax({ 37 keep_len:120, 38 add_title:false 39 }); 40 } 41 42 function kb2Mb(value) { 43 var n = 1; 44 if (typeof value === 'number' && !isNaN(value) && value != 0) { 45 return Math.round(value / 1024 * Math.pow(10, n)) / Math.pow(10, n); 46 } else { 47 return 0; 48 } 49 } 50 51 if($('.mind-pdf #pdfSize').length > 0){ 52 var temp = Number($('.mind-pdf #pdfSize').html()); 53 var curHtml = "(" + kb2Mb(temp) + "MB)"; 54 $('.mind-pdf #pdfSize').html(curHtml); 55 56 } 57 58 59}) 60 // è·åå°åæ çåæ°æ°ç» 61 function getUrlParams() 62 { 63 var search = window.location.search ; 64 // åå ¥æ°æ®åå ¸ 65 var tmparray = search.substr(1,search.length).split("&"); 66 var paramsArray = new Array; 67 if( tmparray != null) 68 { 69 for(var i = 0;i<tmparray.length;i++) 70 { 71 var reg = /[=|^==]/; // ç¨=è¿è¡æåï¼ä½ä¸å æ¬== 72 var set1 = tmparray[i].replace(reg,'&'); 73 var tmpStr2 = set1.split('&'); 74 var array = new Array ; 75 array[tmpStr2[0]] = tmpStr2[1] ; 76 paramsArray.push(array); 77 } 78 } 79 // å°åæ°æ°ç»è¿è¡è¿å 80 return paramsArray ; 81 } 82 function getParamValue(name) 83 { 84 var paramsArray = getUrlParams(); 85 if(paramsArray != null) 86 { 87 for(var i = 0 ; i < paramsArray.length ; i ++ ) 88 { 89 for(var j in paramsArray[i] ) 90 { 91 if( j == name ) 92 { 93 return paramsArray[i][j] ; 94 } 95 } 96 } 97 } 98 return null ; 99 } 100 101 102 103 //ç¼å§ä¼éªè¯ç æäº¤å夿 104 var _emThis; 105 function subMessageBWH(authString){ 106 var yzm = $.trim( $('#inp_cod').val()) 107 if(yzm==''){ 108 alert('请è¾å ¥éªè¯ç '); 109 return false; 110 } 111 112 if(!/^\d{2}$/.test(yzm) && !/^\d{1}$/.test(yzm)) { 113 alert("请è¾å ¥ææçéªè¯ç "); 114 return false; 115 } 116 117 $.ajax({ 118 type:'post', 119 url: local_host +'check_code', 120 data: {'authString':yzm}, 121 dataType:'json', 122 success:function(data){ 123 if(data.resutl == 0){ 124 $('#inp_cod').val('') 125 $('.emailModal').hide() 126 $('.emailShowCon').show() 127 var eName = $(_emThis).data('name') 128 if($(_emThis).data('e').indexOf(';')){ 129 var str = '' 130 var eArray = $(_emThis).data('e').split(';') 131 $.each(eArray,function(index,value){ 132 str += '<a href="mailto:'+ value + '" >' + value + '</a>' 133 }) 134 135 $('.emailShowCon').find('.emailShowBox').html('<strong>Email: </strong>' + str ) 136 sessionStorage.setItem(($(_emThis).data('e') + eName).trim().replace(/\s/g,""), ($(_emThis).data('e') + eName).trim().replace(/\s/g,"")); 137 //console.log(sessionStorage.getItem($(_emThis).data('e') + eName)) 138 }else{ 139 $('.emailShowCon').find('.emailShowBox').html('<strong>Email: </strong><a href="mailto:'+ $(_emThis).data('e') + '" >' + $(_emThis).data('e') + '</a>') 140 sessionStorage.setItem(($(_emThis).data('e') + eName).trim().replace(/\s/g,""), ($(_emThis).data('e') + eName).trim().replace(/\s/g,"")); 141 //console.log(sessionStorage.getItem($(_emThis).data('e') + eName)) 142 } 143 $('.emailShowCon .eName').html(eName) 144 145 146 147 }else{ 148 alert('éªè¯ç 䏿£ç¡®'); 149 } 150 } 151 }) 152 153 } 154 //éªè¯ç å·æ°æ¹æ³ 155 function refresh(obj) { 156 obj.src = "/util/AuthExpImageServlet?"+Math.random(); 157 } 158 159 //ç¹å»æ¾ç¤ºéªè¯ç æ¡ 160 function getEditorId(n){ 161 refreshexpMB($('#authCheckImg')[0]) 162 //console.log($(n).data('e'),$(n).data('name')) 163 var strs = $(n).data('e') + $(n).data('name').trim().replace(/\s/g,""); 164 165 //console.log(sessionStorage.getItem(strs)==strs) 166 if(sessionStorage.getItem(strs)==strs){ 167 $('#inp_cod').val('') 168 $('.emailModal').hide() 169 $('.emailShowCon').show() 170 var eName = $(n).data('name') 171 if($(n).data('e').indexOf(';')){ 172 var str = '' 173 var eArray = $(n).data('e').split(';') 174 $.each(eArray,function(index,value){ 175 str += '<a href="mailto:'+ value + '" >' + value + '</a>' 176 }) 177 178 $('.emailShowCon').find('.emailShowBox').html('<strong>Email: </strong>' + str ) 179 180 }else{ 181 $('.emailShowCon').find('.emailShowBox').html('<strong>Email: </strong><a href="mailto:'+ $(n).data('e') + '" >' + $(n).data('e') + '</a>') 182 } 183 $('.emailShowCon .eName').html(eName) 184 return false; 185 } 186 187 188 $('.emailModal').show() 189 _emThis = n 190 } 191 //èä½çé 192 function editorialPost(id,resId){ 193 $('#bid').val(id) 194 $('#resId').val(resId) 195 $('#editorialPost').submit() 196 } 197 198 $(function(){ 199 /* 200 document.onkeydown = function(e){
201 var ev = document.all ? window.event : e; 202 if(ev.keyCode==13) { 203 emailSelect();//å¤çäºä»¶ 204 } 205 } 206 $("#inp_cod").keydown(function(e){ 207 if(e.keyCode==13){ 208 emailSelect();//å¤çäºä»¶ 209 } 210 }); 211 */ 212 $('.emailBox p .glyphicon').click(function(){ 213 $('#inp_cod').val('') 214 $('.emailModal').hide() 215 }) 216 $('.emailShowCon p .glyphicon').click(function(){ 217 $('.emailShowCon').hide() 218 }) 219 $('.specialBtn').click(function(){ 220 $(this).siblings('ul').toggle() 221 }) 222 223 }) 224
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.