-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathmobile.html
150 lines (124 loc) · 6.97 KB
/
mobile.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
<!--
AntiCrux - Suicide chess engine acting as desktop engine, web page, mobile application, Internet chess server and library
Copyright (C) 2016-2018, ecrucru
https://github.com/ecrucru/anticrux/
http://ecrucru.free.fr/?page=anticrux
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as
published by the Free Software Foundation, either version 3 of the
License, or (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
@license
-->
<!DOCTYPE html>
<html lang="en">
<head>
<!-- Header -->
<meta name="format-detection" content="telephone=no" />
<meta name="msapplication-tap-highlight" content="no" />
<meta name="viewport" content="user-scalable=no, initial-scale=1, maximum-scale=1, minimum-scale=1, width=device-width" />
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>AntiCrux - AI for AntiChess</title>
<!-- Styles -->
<link rel="stylesheet" type="text/css" href="jquery-1.5.0.mobile.min.css" />
<link rel="stylesheet" type="text/css" href="anticrux.css" />
<link rel="stylesheet" type="text/css" href="anticrux-ui.css" />
<link rel="icon" type="image/png" href="images/favicon.png" />
<meta name="theme-color" content="#A6ABD6" />
<!-- Scripts -->
<script type="text/javascript" src="jquery-1.11.1.min.js"></script>
<script type="text/javascript" src="jquery-1.5.0.mobile.min.js"></script>
<script type="text/javascript" src="cordova.js"></script>
<script type="text/javascript" src="anticrux.js"></script>
</head>
<body>
<!-- Content -->
<div id="acui_page" data-role="page" data-theme="a">
<div data-role="header">
<a id="acui_switch_ui" href="#" data-role="button" data-theme="b" data-icon="grid">Desktop</a>
<h1>AntiCrux <span id="acui_version"></span></h1>
</div>
<div data-role="content" id="acui_ismobile">
<div id="acui_js" class="AntiCrux-notice">⚠ JavaScript must be enabled to allow the website to be loaded correctly.</div>
<div data-role="controlgroup" data-type="horizontal">
<select id="acui_player"><!-- Filled by jQuery --></select>
<a href="#acui_game_popup" data-role="button" data-rel="popup" data-transition="slideup">Game</a>
<a href="#acui_hint_popup" data-role="button" data-rel="popup" data-transition="slideup">Hint</a>
<a href="#acui_action_popup" data-role="button" data-rel="popup" data-transition="slideup">Action</a>
</div>
<!-- Collapsible at the bottom -->
<div data-role="collapsible" data-mini="true">
<h3>Options</h3>
<p><label for="acui_option_autoplay">Autoplay for AI</label> <input id="acui_option_autoplay" type="checkbox" checked /></p>
<p><label for="acui_option_pro">Professional mode</label> <input class="AntiCrux-ui-option-refresh" id="acui_option_pro" type="checkbox" /></p>
<p><label for="acui_option_darktheme">Dark theme</label> <input class="AntiCrux-ui-option" id="acui_option_darktheme" type="checkbox" /></p>
<p><label for="acui_option_rotated">Rotated board</label> <input class="AntiCrux-ui-option AntiCrux-ui-option-refresh" id="acui_option_rotated" type="checkbox" /></p>
<p><label id="acui_sect_level_header" for="acui_option_level">Level</label> <input class="AntiCrux-ui-option" id="acui_option_level" type="range" min="1" max="20" data-highlight="true" /></p>
<p id="acui_sect_level_notice" class="AntiCrux-notice">⚠ Beware of the memory footprint : the application may crash.</p>
</div>
<!-- Board -->
<p id="acui_sect_eval">Score : <span id="acui_score">0</span>% <span id="acui_lastmove">Last move : -</span></p>
<div id="acui_board"></div>
<!-- Menu item for Game -->
<div data-role="popup" id="acui_game_popup">
<ul data-role="listview">
<li id="acui_rematch"><a href="#" data-rel="back">Rematch</a></li>
<li id="acui_default"><a href="#" data-rel="back">Classic game</a></li>
<li id="acui_fischer_current"><a href="#" data-rel="back">Current Fischer's game</a></li>
<li id="acui_fischer_new"><a href="#" data-rel="back">New Fischer's game</a></li>
</ul>
</div>
<!-- Menu item for Hint -->
<div data-role="popup" id="acui_hint_popup">
<ul data-role="listview">
<li id="acui_hint_soft"><a href="#" data-rel="back">Possible target positions</a></li>
<li id="acui_hint_hard"><a href="#" data-rel="back">Evaluation of the moves</a></li>
<li id="acui_hint_irma"><a href="#" data-rel="back">Prediction</a></li>
<li id="acui_hint_ob"><a href="#" data-rel="back">Opening book</a></li>
</ul>
</div>
<!-- Menu item for Action -->
<div data-role="popup" id="acui_action_popup">
<ul data-role="listview">
<li id="acui_play_human"><a href="#" data-rel="back">Play for player</a></li>
<li id="acui_play_ai"><a href="#" data-rel="back">Play for AI</a></li>
<li id="acui_undo"><a href="#" data-rel="back">Undo</a></li>
<li id="acui_pgn" class="ui-disabled"><a href="#" data-rel="back">Export to PGN</a></li>
<li id="acui_about"><a href="#" data-rel="back">About</a></li>
</ul>
</div>
<!-- Promotions -->
<div id="acui_promotion" data-role="popup" data-dismissible="false" class="ui-corner-all">
<div data-role="header" class="ui-corner-top">
<h1>Promotion of the pawn</h1>
</div>
<div role="main" class="ui-corner-bottom ui-content">
<a class="AntiCrux-board-promotion" href="#" data-role="button" data-inline="true" data-rel="back" data-promotion="R" title="Rook" >♖</a>
<a class="AntiCrux-board-promotion" href="#" data-role="button" data-inline="true" data-rel="back" data-promotion="N" title="Knight">♘</a>
<a class="AntiCrux-board-promotion" href="#" data-role="button" data-inline="true" data-rel="back" data-promotion="B" title="Bishop">♗</a>
<a class="AntiCrux-board-promotion" href="#" data-role="button" data-inline="true" data-rel="back" data-promotion="Q" title="Queen" >♕</a>
<a class="AntiCrux-board-promotion" href="#" data-role="button" data-inline="true" data-rel="back" data-promotion="K" title="King" >♔</a>
</div>
</div>
<!-- Popup -->
<div id="acui_popup" data-role="popup" data-transition="slide" class="ui-corner-all">
<div data-role="header" class="ui-corner-top">
<h1>Information</h1>
</div>
<div role="main" class="ui-corner-bottom ui-content">
<p id="acui_popup_text"><!-- Filled by jQuery --></p>
<a href="#" id="acui_popup_ok" data-role="button" data-inline="true" data-rel="back">OK</a>
</div>
</div>
<!-- Scripts -->
<script type="text/javascript" src="anticrux-ui.js"></script>
</div>
</div>
</body>
</html>