194 lines
8.0 KiB
HTML
194 lines
8.0 KiB
HTML
<!DOCTYPE html>
|
|
<html xmlns="http://www.w3.org/1999/xhtml">
|
|
<head>
|
|
<title>Extension Options</title>
|
|
<meta charset="UTF-8" />
|
|
<link href="dist/bootstrap/bootstrap.min.css" rel="stylesheet" />
|
|
<script src="dist/bootstrap/bootstrap.min.js"></script>
|
|
<link rel="stylesheet" type="text/css" href="css/options.css" />
|
|
</head>
|
|
<body>
|
|
<div id="message"></div>
|
|
<h2>MaxBot Settings</h2>
|
|
<div class="row g-3">
|
|
<ul class="nav nav-tabs" id="myTab" role="tablist">
|
|
<li class="nav-item" role="presentation">
|
|
<button class="nav-link active" id="home-tab" data-bs-toggle="tab" data-bs-target="#home-tab-pane" type="button" role="tab" aria-controls="home-tab-pane" aria-selected="true">偏好設定</button>
|
|
</li>
|
|
<li class="nav-item" role="presentation">
|
|
<button class="nav-link" id="advanced-tab" data-bs-toggle="tab" data-bs-target="#advanced-tab-pane" type="button" role="tab" aria-controls="advanced-tab-pane" aria-selected="false">進階設定</button>
|
|
</li>
|
|
<li class="nav-item" role="presentation">
|
|
<button class="nav-link" id="verification-tab" data-bs-toggle="tab" data-bs-target="#verification-tab-pane" type="button" role="tab" aria-controls="verification-tab-pane" aria-selected="false">驗證問題</button>
|
|
</li>
|
|
</ul>
|
|
<div class="tab-content" id="myTabContent">
|
|
<!-- tab 1 -->
|
|
<div class="tab-pane fade show active" id="home-tab-pane" role="tabpanel" aria-labelledby="home-tab" tabindex="0">
|
|
<div class="row mb-3">
|
|
<label for="ticket_number" class="col-sm-2 col-form-label">張數</label>
|
|
<div class="col-sm-10">
|
|
<select id="ticket_number" class="form-select" aria-label="Default select">
|
|
<option selected="selected">
|
|
張數
|
|
</option>
|
|
<option value="1">
|
|
1
|
|
</option>
|
|
<option value="2">
|
|
2
|
|
</option>
|
|
<option value="3">
|
|
3
|
|
</option>
|
|
<option value="4">
|
|
4
|
|
</option>
|
|
<option value="5">
|
|
5
|
|
</option>
|
|
<option value="6">
|
|
6
|
|
</option>
|
|
<option value="7">
|
|
7
|
|
</option>
|
|
<option value="8">
|
|
8
|
|
</option>
|
|
<option value="9">
|
|
9
|
|
</option>
|
|
<option value="10">
|
|
10
|
|
</option>
|
|
</select>
|
|
</div>
|
|
</div>
|
|
<div class="row mb-3">
|
|
<label for="date_select_mode" class="col-sm-2 col-form-label">日期排序方式</label>
|
|
<div class="col-sm-10">
|
|
<select id="date_select_mode" class="form-select" aria-label="Default select">
|
|
<option value="from top to bottom">
|
|
from top to bottom
|
|
</option>
|
|
<option value="from bottom to top">
|
|
from bottom to top
|
|
</option>
|
|
<option value="center">
|
|
center
|
|
</option>
|
|
<option value="random">
|
|
random
|
|
</option>
|
|
</select>
|
|
</div>
|
|
</div>
|
|
<div class="row mb-3">
|
|
<label for="date_keyword" class="col-sm-2 col-form-label">日期關鍵字</label>
|
|
<div class="col-sm-10">
|
|
<textarea class="form-control" id="date_keyword" rows="3"></textarea>
|
|
</div>
|
|
</div>
|
|
<div class="row mb-3">
|
|
<label for="area_select_mode" class="col-sm-2 col-form-label">區域排序方式</label>
|
|
<div class="col-sm-10">
|
|
<select id="area_select_mode" class="form-select" aria-label="Default select">
|
|
<option value="from top to bottom">
|
|
from top to bottom
|
|
</option>
|
|
<option value="from bottom to top">
|
|
from bottom to top
|
|
</option>
|
|
<option value="center">
|
|
center
|
|
</option>
|
|
<option value="random">
|
|
random
|
|
</option>
|
|
</select>
|
|
</div>
|
|
</div>
|
|
<div class="row mb-3">
|
|
<label for="area_keyword" class="col-sm-2 col-form-label">區域關鍵字</label>
|
|
<div class="col-sm-10">
|
|
<textarea class="form-control" id="area_keyword" rows="3"></textarea>
|
|
</div>
|
|
</div>
|
|
<div class="row mb-3">
|
|
<label for="keyword_exclude" class="col-sm-2 col-form-label">排除關鍵字</label>
|
|
<div class="col-sm-10">
|
|
<textarea class="form-control" id="keyword_exclude" rows="3"></textarea>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<!-- tab 2 -->
|
|
<div class="tab-pane fade" id="advanced-tab-pane" role="tabpanel" aria-labelledby="advanced-tab" tabindex="1">
|
|
<div class="row mb-3">
|
|
<label for="auto_reload_page_interval" class="col-sm-2 col-form-label">自動刷新頁面間隔(秒)</label>
|
|
<div class="col-sm-10">
|
|
<input class="form-control" id="auto_reload_page_interval" value="" />
|
|
</div>
|
|
</div>
|
|
|
|
<div class="row mb-3">
|
|
<label class="col-sm-2 col-form-label form-check-label" for="auto_press_next_step_button">KKTIX點選下一步按鈕</label>
|
|
<div class="col-sm-10">
|
|
<input class="form-check-input" type="checkbox" id="auto_press_next_step_button" />
|
|
</div>
|
|
</div>
|
|
<div class="row mb-3">
|
|
<label class="col-sm-2 col-form-label form-check-label" for="kktix_status_api">KKTIX購票狀態API</label>
|
|
<div class="col-sm-10">
|
|
<input class="form-check-input" type="checkbox" id="kktix_status_api" />
|
|
</div>
|
|
</div>
|
|
<div class="row mb-3">
|
|
<label for="max_dwell_time" class="col-sm-2 col-form-label">KKTIX購票最長停留(秒)</label>
|
|
<div class="col-sm-10">
|
|
<input class="form-control" id="max_dwell_time" value="" />
|
|
</div>
|
|
</div>
|
|
<div class="row mb-3">
|
|
<label class="col-sm-2 col-form-label form-check-label" for="disable_adjacent_seat">允許不連續座位</label>
|
|
<div class="col-sm-10">
|
|
<input class="form-check-input" type="checkbox" id="disable_adjacent_seat" />
|
|
</div>
|
|
</div>
|
|
<div class="row mb-3">
|
|
<label class="col-sm-2 col-form-label form-check-label" for="ocr_captcha_enable">OCR</label>
|
|
<div class="col-sm-10">
|
|
<input class="form-check-input" type="checkbox" id="ocr_captcha_enable" />
|
|
</div>
|
|
</div>
|
|
<div class="row mb-3">
|
|
<label for="remote_url" class="col-sm-2 col-form-label">OCR Server URL</label>
|
|
<div class="col-sm-10">
|
|
<input class="form-control" id="remote_url" value="" />
|
|
</div>
|
|
</div>
|
|
<div class="row mb-3">
|
|
<label class="col-sm-2 col-form-label form-check-label" for="ocr_captcha_use_public_server">MaxBot Public OCR Server</label>
|
|
<div class="col-sm-10">
|
|
<input class="form-check-input" type="checkbox" id="ocr_captcha_use_public_server" />
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<!-- tab 3 -->
|
|
<div class="tab-pane fade" id="verification-tab-pane" role="tabpanel" aria-labelledby="verification-tab" tabindex="2">
|
|
<div class="row mb-3">
|
|
<label for="user_guess_string" class="col-sm-2 col-form-label">使用者自定字典</label>
|
|
<div class="col-sm-10">
|
|
<textarea class="form-control" id="user_guess_string" rows="3"></textarea>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="col-12">
|
|
<button class="btn btn-primary" id="save_btn">存檔</button>
|
|
</div>
|
|
</div>
|
|
<script src="options.js"></script>
|
|
</body>
|
|
</html>
|