disable selection which brings havoc on touchscreens
[Biblio-RFID.git] / examples / selfcheck.html
1 <html>
2 <head>
3 <meta charset="utf-8"></meta>
4 <title>RFID SIP2 Selfcheck</title>
5 <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
6 <link href='http://fonts.googleapis.com/css?family=Roboto&subset=latin,latin-ext' rel='stylesheet' type='text/css'>
7 <style type="text/css">
8
9 body, input {
10         font-family: 'Roboto', sans-serif;
11         font-size: 110%;
12         /* disable selection which brings havoc on touchscreens */
13         -webkit-user-select: none;
14         -moz-user-select: -moz-none;
15         -ms-user-select: none;
16         user-select: none;
17 }
18
19 body {
20         background: #f0f0ff;
21         margin: 2em;
22 }
23
24
25 .status {
26         background: #ff8;
27 }
28
29 .da {
30         background: #fcc;
31 }
32
33 .d7 {
34         background: #cfc;
35 }
36
37 .page {
38         border: 2em solid #fff;
39         border-radius: 1em;
40         background: #fff;
41 }
42
43 #tags {
44         position: fixed;
45         width: 20em;
46         top: 0;
47         right: 0;
48 }
49
50 input[type=button] {
51         display: block;
52         float: left;
53         width: 100%;
54         height: 3em;
55 }
56
57 .button {
58         margin-top: 1em;
59         display: block;
60         width: 100%;
61         position: absolute;
62         left: 0;
63         bottom: 0;
64 }
65
66 #timeout {
67         display: none;
68         position: absolute;
69         top: 50%;
70         left: 50%;
71         margin-left: -8em; /* width + 2 * padding / 2 */
72         margin-top: -2.5em;
73         width: 12em;
74         height: 5em;
75         background: #ff8;
76         padding: 2em;
77         border: 0.5em solid #f00;
78         text-align: center;
79 }
80
81 </style>
82 <script type="text/javascript" src="/examples/selfcheck.js"></script>
83 </head>
84 <body>
85
86 <div id="tags">
87 RFID reader not found or driver program not started.
88 </div>
89
90
91 <h1>Knjižnica Filozofskog fakulteta</h1>
92
93 <div id="timeout">
94 Timeout in <span id="tick">99</span> seconds.
95 <div class="button">
96 <input type=button value="continue" onClick="start_timeout();">
97 </div>
98 </div>
99
100
101 <div class="page" id="start">
102
103 <!--
104 Put borrower card on a reader to borrow books
105 -->
106
107 Ako želite posuditi knjigu, najprije stavite iskaznicu na za to previđeno mjesto.
108
109 <hr>
110
111 <!--
112 Select checkin button to return books.
113 -->
114
115 Ako želite vratiti knjigu, pristisnite ovaj gumb.
116
117 <div class="button">
118 <input name=checkin type=button value="Povrat" onClick="change_page('checkin')">
119 </div>
120 </div>
121
122 <div class="page" id="borrower_info">
123 <!--
124 Borrower:
125 -->
126 <h2>Informacije o članu</h2>
127 <div class="borrower_name"></div>
128 <!--
129 <div class="borrower_email"></div>
130 -->
131 <div class="borrower_number"></div>
132
133 <h2>Dokumenti</h2>
134
135 <ul>
136 <li>Hold items: <span class="hold_items">0</span>
137 <li>Overdue items: <span class="overdue_items">0</span>
138 <li>Charged items: <span class="charged_items">0</span>
139 <li>Fine items: <span class="fine_items">0</span>
140 </ul>
141
142 <h2>Dugovanje</h2>
143
144 Ostatak: 0,00 kn
145
146 <h2>Poruke</h2>
147
148 Greeting from Koha.
149
150 <div class="button">
151 <input type="button" value="OK" onClick="change_page(circulation_type)">
152 </div>
153
154 </div>
155
156 <div class="page" id="circulation">
157 <!--
158 Put books to borrow on reader pad.
159 -->
160 Postavite knjige na predviđeno mjesto ispred monitora.
161
162 <hr>
163
164 <div class="checkout">Posuđeno:</div>
165 <div class="checkin">Vraćeno:</div>
166
167 <ul id="books">
168 </ul>
169
170 Dokumenata: <span id="books_count">0</span>
171
172 <div class="button">
173 <input class="checkout" type="button" value="Informacije o članu" onClick="change_page('borrower_info')">
174 <input type="button" value="Završi" onClick="change_page('end')">
175 </div>
176
177 </div>
178
179 <div class="page" id="end">
180
181 Hvala što ste koristili selfcheck sustav.
182
183 </div>
184
185 <div class="page" id="error">
186
187 Greška. Odnesite knjige na pult.
188
189 </div>
190
191 </body>
192 </html>