模板:夏目部员数据库:修订间差异
跳到导航
跳到搜索
小无编辑摘要 |
小无编辑摘要 |
||
第11行: | 第11行: | ||
<script src="http://wiki-app.loveliv.es/js/MouseOverEvent.js"></script> | <script src="http://wiki-app.loveliv.es/js/MouseOverEvent.js"></script> | ||
<script src=http://wiki-app.loveliv.es/js/cardList.js></script> | <script src=http://wiki-app.loveliv.es/js/cardList.js></script> | ||
<script> | |||
function init(){ | |||
var rawFile = new XMLHttpRequest(); | |||
var allText = ""; | |||
rawFile.open("GET", 'http://wiki-app.loveliv.es/js/CardDataBase.json', true); | |||
rawFile.onreadystatechange = function (){ | |||
if(rawFile.readyState === 4){ | |||
if(rawFile.status === 200 || rawFile.status == 200){ | |||
allText = rawFile.responseText; | |||
} | |||
} | |||
} | |||
rawFile.send(); | |||
card = JSON.parse(allText); | |||
Reset() | |||
SelectFromOption() | |||
GenerateTab(currentPage) | |||
} | |||
</script> | |||
<script type="text/javascript"> | <script type="text/javascript"> | ||
$(document).ready(function(){ | $(document).ready(function(){ |