Fix: revise code

This commit is contained in:
2018-07-28 18:00:49 +09:00
parent 7c9439133d
commit 915e73436f
5 changed files with 5 additions and 550 deletions
+2 -401
View File
@@ -1,7 +1,5 @@
<script type="text/javascript">
let accountValidator = new AccountValidator();
$(document).ready(function() {
addPlayerListManager = new PlayerListManager(
$("#add_player_list"),
@@ -239,285 +237,7 @@ function onErrorPlayerPW(message) {
</div>
</form>
<!--
<table id="add_player_list" class="table table-sm table-striped table-hover text-center"">
<thread>
<tr>
<th scope="col" class="d-none">ID</th>
<th scope="col">이름</th>
<th scope="col">입장 번호</th>
<th scope="col"></th>
<th scope="col"></th>
</tr>
</thread>
<tbody>
<tr>
<td class="d-none">
<input type="text" class="col-sm player_id" value="test">
</td>
<td>
<input type="text" class="col-sm player_name" value="test">
</td>
<td class="player_entercode">
<input type="text" class="col-sm player_entercode" value="test">
</td>
<td class="player_edit">
<button type="button" class="btn-sm player_edit">+</button>
</td>
<td class="player_delete">
<button type="button" class="btn-sm player_delete">-</button>
</td>
</tr>
<tr>
<td class="d-none">
<input type="text" class="col-sm player_id" value="test">
</td>
<td>
<input type="text" class="col-sm player_name" value="test">
</td>
<td class="player_entercode">
<input type="text" class="col-sm player_entercode" value="test">
</td>
<td class="player_edit">
<button type="button" class="btn-sm player_edit">+</button>
</td>
<td class="player_delete">
<button type="button" class="btn-sm player_delete">-</button>
</td>
</tr>
<tr>
<td class="d-none">
<input type="text" class="col-sm player_id" value="test">
</td>
<td>
<input type="text" class="col-sm player_name" value="test">
</td>
<td class="player_entercode">
<input type="text" class="col-sm player_entercode" value="test">
</td>
<td class="player_edit">
<button type="button" class="btn-sm player_edit">+</button>
</td>
<td class="player_delete">
<button type="button" class="btn-sm player_delete">-</button>
</td>
</tr>
<tr>
<td class="d-none">
<input type="text" class="col-sm player_id" value="test">
</td>
<td>
<input type="text" class="col-sm player_name" value="test">
</td>
<td class="player_entercode">
<input type="text" class="col-sm player_entercode" value="test">
</td>
<td class="player_edit">
<button type="button" class="btn-sm player_edit">+</button>
</td>
<td class="player_delete">
<button type="button" class="btn-sm player_delete">-</button>
</td>
</tr>
<tr>
<td class="d-none">
<input type="text" class="col-sm player_id" value="test">
</td>
<td>
<input type="text" class="col-sm player_name" value="test">
</td>
<td class="player_entercode">
<input type="text" class="col-sm player_entercode" value="test">
</td>
<td class="player_edit">
<button type="button" class="btn-sm player_edit">+</button>
</td>
<td class="player_delete">
<button type="button" class="btn-sm player_delete">-</button>
</td>
</tr>
<tr>
<td class="d-none">
<input type="text" class="col-sm player_id" value="test">
</td>
<td>
<input type="text" class="col-sm player_name" value="test">
</td>
<td class="player_entercode">
<input type="text" class="col-sm player_entercode" value="test">
</td>
<td class="player_edit">
<button type="button" class="btn-sm player_edit">+</button>
</td>
<td class="player_delete">
<button type="button" class="btn-sm player_delete">-</button>
</td>
</tr>
<tr>
<td class="d-none">
<input type="text" class="col-sm player_id" value="test">
</td>
<td>
<input type="text" class="col-sm player_name" value="test">
</td>
<td class="player_entercode">
<input type="text" class="col-sm player_entercode" value="test">
</td>
<td class="player_edit">
<button type="button" class="btn-sm player_edit">+</button>
</td>
<td class="player_delete">
<button type="button" class="btn-sm player_delete">-</button>
</td>
</tr>
<tr>
<td class="d-none">
<input type="text" class="col-sm player_id" value="test">
</td>
<td>
<input type="text" class="col-sm player_name" value="test">
</td>
<td class="player_entercode">
<input type="text" class="col-sm player_entercode" value="test">
</td>
<td class="player_edit">
<button type="button" class="btn-sm player_edit">+</button>
</td>
<td class="player_delete">
<button type="button" class="btn-sm player_delete">-</button>
</td>
</tr>
<tr>
<td class="d-none">
<input type="text" class="col-sm player_id" value="test">
</td>
<td>
<input type="text" class="col-sm player_name" value="test">
</td>
<td class="player_entercode">
<input type="text" class="col-sm player_entercode" value="test">
</td>
<td class="player_edit">
<button type="button" class="btn-sm player_edit">+</button>
</td>
<td class="player_delete">
<button type="button" class="btn-sm player_delete">-</button>
</td>
</tr>
<tr>
<td class="d-none">
<input type="text" class="col-sm player_id" value="test">
</td>
<td>
<input type="text" class="col-sm player_name" value="test">
</td>
<td class="player_entercode">
<input type="text" class="col-sm player_entercode" value="test">
</td>
<td class="player_edit">
<button type="button" class="btn-sm player_edit">+</button>
</td>
<td class="player_delete">
<button type="button" class="btn-sm player_delete">-</button>
</td>
</tr>
</tbody>
</table>
-->
<!--
<ul id="add_player_list" class="player_list">
<li>
<span class="player_name">이름</span>
<span class="player_entercode">입장 코드</span>
<input type='button' value='전체 삭제' onClick="deletePlayer('all')">
</li>
<li>
<span class="player_id"></span>
<input type='text' class="player_name" value="test">
<input type='text' class="player_entercode">
<input type='button' class="player_edit" value='수정'>
<input type='button' class="player_delete" value='삭제'>
</li>
<li>
<span class="player_id"></span>
<input type='text' class="player_name" value="test">
<input type='text' class="player_entercode">
<input type='button' class="player_edit" value='수정'>
<input type='button' class="player_delete" value='삭제'>
</li>
<li>
<span class="player_id"></span>
<input type='text' class="player_name">
<input type='text' class="player_entercode">
<input type='button' class="player_edit" value='수정'>
<input type='button' class="player_delete" value='삭제'>
</li>
<li>
<span class="player_id"></span>
<input type='text' class="player_name">
<input type='text' class="player_entercode">
<input type='button' class="player_edit" value='수정'>
<input type='button' class="player_delete" value='삭제'>
</li>
<li>
<span class="player_id"></span>
<input type='text' class="player_name">
<input type='text' class="player_entercode">
<input type='button' class="player_edit" value='수정'>
<input type='button' class="player_delete" value='삭제'>
</li>
<li>
<span class="player_id"></span>
<input type='text' class="player_name">
<input type='text' class="player_entercode">
<input type='button' class="player_edit" value='수정'>
<input type='button' class="player_delete" value='삭제'>
</li>
<li>
<span class="player_id"></span>
<input type='text' class="player_name">
<input type='text' class="player_entercode">
<input type='button' class="player_edit" value='수정'>
<input type='button' class="player_delete" value='삭제'>
</li>
<li>
<span class="player_id"></span>
<input type='text' class="player_name">
<input type='text' class="player_entercode">
<input type='button' class="player_edit" value='수정'>
<input type='button' class="player_delete" value='삭제'>
</li>
<li>
<span class="player_id"></span>
<input type='text' class="player_name">
<input type='text' class="player_entercode">
<input type='button' class="player_edit" value='수정'>
<input type='button' class="player_delete" value='삭제'>
</li>
<li>
<span class="player_id"></span>
<input type='text' class="player_name">
<input type='text' class="player_entercode">
<input type='button' class="player_edit" value='수정'>
<input type='button' class="player_delete" value='삭제'>
</li>
</ul>
-->
</div>
</div> <!-- 학생 목록 -->
<nav aria-label="Page navigation example">
@@ -572,123 +292,4 @@ function onErrorPlayerPW(message) {
</div>
</div>
</div> <!-- 학생 목록 -->
<!--
<div>
<span id="error_message">
학생 이름 : (한글) 10글자, (영문) 20글자까지 입력 가능<br/>
입장 코드 : 숫자 1~6자리 수
</span>
</div>
<div>
<span id="add_player">
<h2>추가</h2>
<h3>1명 추가</h3>
<div>
학생 이름 <input type="text" name="name" id="add_player_name"><br/>
입장 번호 <input type="text" name="entercode" id="add_player_enter_code">
<input type='button' value="추가"" onClick="addPlayer()" >
</div>
</span>
<span id="search_result">
학생 목록
<div id="player_list_result_contents">
<ul id="add_player_list" class="player_list">
<li>
<span class="player_name">이름</span>
<span class="player_entercode">입장 코드</span>
<input type='button' value='전체 삭제' onClick="deletePlayer('all')">
</li>
<li>
<span class="player_id"></span>
<input type='text' class="player_name" value="test">
<input type='text' class="player_entercode">
<input type='button' class="player_edit" value='수정'>
<input type='button' class="player_delete" value='삭제'>
</li>
<li>
<span class="player_id"></span>
<input type='text' class="player_name" value="test">
<input type='text' class="player_entercode">
<input type='button' class="player_edit" value='수정'>
<input type='button' class="player_delete" value='삭제'>
</li>
<li>
<span class="player_id"></span>
<input type='text' class="player_name">
<input type='text' class="player_entercode">
<input type='button' class="player_edit" value='수정'>
<input type='button' class="player_delete" value='삭제'>
</li>
<li>
<span class="player_id"></span>
<input type='text' class="player_name">
<input type='text' class="player_entercode">
<input type='button' class="player_edit" value='수정'>
<input type='button' class="player_delete" value='삭제'>
</li>
<li>
<span class="player_id"></span>
<input type='text' class="player_name">
<input type='text' class="player_entercode">
<input type='button' class="player_edit" value='수정'>
<input type='button' class="player_delete" value='삭제'>
</li>
<li>
<span class="player_id"></span>
<input type='text' class="player_name">
<input type='text' class="player_entercode">
<input type='button' class="player_edit" value='수정'>
<input type='button' class="player_delete" value='삭제'>
</li>
<li>
<span class="player_id"></span>
<input type='text' class="player_name">
<input type='text' class="player_entercode">
<input type='button' class="player_edit" value='수정'>
<input type='button' class="player_delete" value='삭제'>
</li>
<li>
<span class="player_id"></span>
<input type='text' class="player_name">
<input type='text' class="player_entercode">
<input type='button' class="player_edit" value='수정'>
<input type='button' class="player_delete" value='삭제'>
</li>
<li>
<span class="player_id"></span>
<input type='text' class="player_name">
<input type='text' class="player_entercode">
<input type='button' class="player_edit" value='수정'>
<input type='button' class="player_delete" value='삭제'>
</li>
<li>
<span class="player_id"></span>
<input type='text' class="player_name">
<input type='text' class="player_entercode">
<input type='button' class="player_edit" value='수정'>
<input type='button' class="player_delete" value='삭제'>
</li>
</ul>
</div>
<div id="add_player_list_navigator" class="player_list_navigator">
<span><a onClick="onClickPlayerListPage(this, 'first')"> ≪ </a></span>
<span><a onClick="onClickPlayerListPage(this, 'prev')"> </a></span>
<span id="page_no_area"></span>
<span><a onClick="onClickPlayerListPage(this, 'next')"> </a></span>
<span><a onClick="onClickPlayerListPage(this, 'last')"> ≫ </a></span>
</div>
</span>
</div>
-->
</div> <!-- 학생 목록 -->