+ $.getJSON("/scan"+only_reader+"?callback=?", got_visible_tags).fail( function(data) {
+ console.error('scan error pending jsonp', pending_jsonp);
+ pending_jsonp--;
+ });
+ }
+
+ if ( tick > 0 ) {
+ if ( tick < tick_warning * ( 1000 / tag_rescan ) ) {
+ $('#tick').html( Math.round( tick * tag_rescan / 1000 ) );
+ $('#timeout').show();
+ }
+ tick--;
+ if ( tick == 0 ) {
+ $('#timeout').hide();
+ change_page('end');
+ }