re-arrange button layout and add colors
[Biblio-RFID.git] / examples / selfcheck.html
index 5aa1012..f5e0e8c 100644 (file)
@@ -8,11 +8,16 @@
 
 body, input {
        font-family: 'Roboto', sans-serif;
-       background: #eee;
-       font-size: 150%;
+       font-size: 100%;
+       /* disable selection which brings havoc on touchscreens */
+       -webkit-user-select: none;
+       -moz-user-select: -moz-none;
+       -ms-user-select: none;
+       user-select: none;
 }
 
 body {
+       background: #f0f0ff;
        margin: 2em;
 }
 
@@ -43,10 +48,43 @@ body {
 }
 
 input[type=button] {
+       display: block;
+       float: left;
+       width: 50%;
+       height: 6em;
+}
+
+.button {
        margin-top: 1em;
        display: block;
        width: 100%;
-       height: 5em;
+       position: absolute;
+       left: 0;
+       bottom: 0;
+}
+
+#timeout {
+       display: none;
+       position: absolute;
+       top: 50%;
+       left: 50%;
+       margin-left: -8em; /* width + 2 * padding / 2 */
+       margin-top: -2.5em;
+       width: 12em;
+       height: 8em;
+       background: #ff8;
+       padding: 2em;
+       border: 0.5em solid #f00;
+       text-align: center;
+}
+
+#working {
+       display: none;
+       position: absolute;
+       top: 50%;
+       left: 50%;
+       margin-left: -250px; /* 500 / 2 */
+       margin-top: -187px;  /* 375 / 2 */
 }
 
 </style>
@@ -61,6 +99,19 @@ RFID reader not found or driver program not started.
 
 <h1>Knjižnica Filozofskog fakulteta</h1>
 
+<div id="timeout">
+Timeout in <span id="tick">99</span> seconds.
+<div class="button">
+<input type=button value="continue" onClick="start_timeout();" style="width:100%">
+</div>
+</div>
+
+
+<div id="working">
+<img src="/examples/giphy.gif">
+</div>
+
+
 <div class="page" id="start">
 
 <!--
@@ -75,9 +126,11 @@ Ako želite posuditi knjigu, najprije stavite iskaznicu na za to previđeno mjes
 Select checkin button to return books.
 -->
 
-Ako želite vratiti knjigu, pristisnite ovaj gumb.
+Ako želite vratiti knjigu, pristisnite gumb za povrat.
 
-<input name=checkin type=button value="Povrat" onClick="change_page('checkin')">
+<div class="button">
+<input name=checkin type=button value="Povrat" onClick="change_page('checkin')" style="background: #8f8;">
+</div>
 </div>
 
 <div class="page" id="borrower_info">
@@ -94,12 +147,10 @@ Borrower:
 <h2>Dokumenti</h2>
 
 <ul>
-<li>Posuđeno: <span class="hold_items">0</span>
-<li>Kašnjenje: <span class="overdue_items">0</span>
-<!-- Koha doesn't support charged items or fine items
-<li>Trenutno rezervacija: 0
-<li>Spremno za podizanje: 0
--->
+<li>Hold items: <span class="hold_items">0</span>
+<li>Overdue items: <span class="overdue_items">0</span>
+<li>Charged items: <span class="charged_items">0</span>
+<li>Fine items: <span class="fine_items">0</span>
 </ul>
 
 <h2>Dugovanje</h2>
@@ -110,8 +161,9 @@ Ostatak: 0,00 kn
 
 Greeting from Koha.
 
+<div class="button">
 <input type="button" value="OK" onClick="change_page(circulation_type)">
-
+</div>
 
 </div>
 
@@ -131,9 +183,9 @@ Postavite knjige na predviđeno mjesto ispred monitora.
 
 Dokumenata: <span id="books_count">0</span>
 
-<div style="display: block">
-<input type="button" value="Završi" onClick="change_page('end')">
+<div class="button">
 <input class="checkout" type="button" value="Informacije o članu" onClick="change_page('borrower_info')">
+<input type="button" value="Završi" onClick="change_page('end')" style="float:right; background: #f88;">
 </div>
 
 </div>