Ken2812221(留言墙 | 貢獻) 小无编辑摘要 标签:sourceedit |
Ken2812221(留言墙 | 貢獻) 小无编辑摘要 标签:sourceedit |
||
第55行: | 第55行: | ||
); |
); |
||
} |
} |
||
+ | $('#stage_name').val((wgTitle.split('/'))[0]); |
||
− | |||
})(); |
})(); |
2015年7月11日 (六) 05:46的版本
<form>
隊伍名:<input type="text" id="team_name" /> 關卡名:<input type="text" id="stage_name" disabled="disabled" />
編號 | 等級 | 技能回合數 | 昇華等級 | |
---|---|---|---|---|
隊長 | <input type="number" min="1" max="9999" /> | <input type="number" min="1" max="9999" /> | <input type="number" min="1" max="9999" /> | <input type="number" min="1" max="9999" /> |
隊員1 | <input type="number" min="1" max="9999" /> | <input type="number" min="1" max="9999" /> | <input type="number" min="1" max="9999" /> | <input type="number" min="1" max="9999" /> |
隊員2 | <input type="number" min="1" max="9999" /> | <input type="number" min="1" max="9999" /> | <input type="number" min="1" max="9999" /> | <input type="number" min="1" max="9999" /> |
隊員3 | <input type="number" min="1" max="9999" /> | <input type="number" min="1" max="9999" /> | <input type="number" min="1" max="9999" /> | <input type="number" min="1" max="9999" /> |
隊員4 | <input type="number" min="1" max="9999" /> | <input type="number" min="1" max="9999" /> | <input type="number" min="1" max="9999" /> | <input type="number" min="1" max="9999" /> |
隊友 | <input type="number" min="1" max="9999" /> | <input type="number" min="1" max="9999" /> | <input type="number" min="1" max="9999" /> | <input type="number" min="1" max="9999" /> |
完整通關攻略 <textarea id="attack_method" style="resize:none;width:300px;height:200px;"></textarea> <input type="submit" value="提交" /> </form> <script> (function NewTeam(){ if(typeof jQuery == "undefined") { setTimeout(NewTeam, 100); return; }
if(typeof mw == "undefined") { setTimeout(NewTeam, 100); return; }
function submit() { var token = mw.user.tokens.get('editToken'); $.post( "http://zh.tos.wikia.com/api.php", { action: 'edit', appendtext: text, title: title + '/通關技巧及參考隊伍', token: token, format: json }, function() {}, 'json' ); } $('#stage_name').val((wgTitle.split('/'))[0]);
})(); </script>