Idiot-Cultivation-System / datas /all_js /treasureSkillTable.js
silk-road's picture
Upload 53 files
3b8d454 verified
$(function(){
tabFlagMap["treasureSkill"] = false;
tabFuncMap.treasureSkill = function(){
var index = Object.keys(equipskilldata).length ;
$.each(equipskilldata,function(key,map){
var tr = $("<tr align='center'></tr>");
$("#treasureSkillTable tbody").append(tr);
var treasureSkillName = $("<td><span style='color:brown;font-size:2rem;'>"+map.NAME+"</span></td>");
//var descript = $("<td align='left'><p style='padding-left:100px'>"+findTreasureDescript(key)+"</p></td>");
var effect = $("<td></td>");//技能主动效果
effect.append("五行:"+wuxing[map["五行"]]+"<br>"+findSkillRewardInfo(map));
tr.append($("<td>"+map.INDEX+"</td>"));
tr.append("<td>"+index+"</td>");
tr.append(treasureSkillName);
tr.append(effect);
//tr.append($("<td></td").append(foreverReward(map,false)));
tr.append($("<td></td>").append(findBuffTips(map)));
treasureSkillName.append("<span style='display:none;'>"+map["PY"]+"</span>");
index--;
});
/*treasureSkillTable*/
$('#treasureSkillTable').dataTable( {
"pagingType": "full_numbers",
"language": {
"lengthMenu": "每页 _MENU_ 条记录",
"zeroRecords": "没有找到法宝技能,难道我遗漏了?!",
"info": "第 _PAGE_ 页 ( 总共 _PAGES_ 页 )",
"infoEmpty": "没有法宝技能",
"infoFiltered": "(从 _MAX_ 条法宝技能过滤)",
"search": "搜索(可用<font color='red'>技能名称</font>首字母):",
"paginate": {
"first": "首页<font color=red>(W)</font>",
"last": "末页<font color=red>(S)</font>",
"next": "下一页<font color=red>(D)</font>",
"previous": "上一页<font color=red>(A)</font>"
},
},
// 默认按照索引排序,且隐藏索引列
"order": [[ 0, "asc" ]],
"columnDefs": [
{
"targets": [ 0 ],
"visible": false,
"searchable": false
},
]
});
$('#treasureSkillTable th').css("text-align","center");
}
});