| @@ -473,7 +473,7 @@ function displayRepoResult(page,jsonResult,onlyReturnNum,keyword){ | |||||
| } | } | ||||
| html +=" </div>"; | html +=" </div>"; | ||||
| html +=" <p class=\"time\">"; | html +=" <p class=\"time\">"; | ||||
| html +=" <i class=\"ri-star-line\"></i>" + recordMap["num_stars"] + "<i class=\"ri-git-branch-line am-ml-10\"></i>" + recordMap["num_forks"]; | |||||
| html +=" <i class==\"icon fa-eye\">" +recordMap["num_watches"] + "</id><i class=\"ri-star-line\"></i>" + recordMap["num_stars"] + "<i class=\"ri-git-branch-line am-ml-10\"></i>" + recordMap["num_forks"]; | |||||
| html +=" 最后更新于 <span class=\"time-since poping up\" title=\"\" data-content=\"\" data-variation=\"inverted tiny\">" + getTime(recordMap["updated_unix"],currentTime) +"</span>"; | html +=" 最后更新于 <span class=\"time-since poping up\" title=\"\" data-content=\"\" data-variation=\"inverted tiny\">" + getTime(recordMap["updated_unix"],currentTime) +"</span>"; | ||||
| if(!isEmpty(recordMap["lang"])){ | if(!isEmpty(recordMap["lang"])){ | ||||
| html +=" <span class=\"text grey am-ml-10\"><i class=\"color-icon\" style=\"background-color: #3572A5\"></i>" + recordMap["lang"] + "</span>"; | html +=" <span class=\"text grey am-ml-10\"><i class=\"color-icon\" style=\"background-color: #3572A5\"></i>" + recordMap["lang"] + "</span>"; | ||||
| @@ -641,6 +641,14 @@ function page(current){ | |||||
| }); | }); | ||||
| } | } | ||||
| $('#keyword_input').on('keypress',function(event){ | |||||
| if(event.keyCode == 13){ | |||||
| var keyword = $('#keyword_input').val(); | |||||
| if(!isEmpty(keyword)){ | |||||
| search(); | |||||
| } | |||||
| } | |||||
| }); | |||||
| document.onreadystatechange = function() { | document.onreadystatechange = function() { | ||||
| if (document.readyState === "complete") { | if (document.readyState === "complete") { | ||||