diff --git a/.gitattributes b/.gitattributes index 5029e53..83a4949 100644 --- a/.gitattributes +++ b/.gitattributes @@ -24,3 +24,4 @@ www/external/widget-pager.js -text www/impressum.inc.de -text www/info.inc.de -text www/logo_RUB_155x30.png -text +www/spinner.gif -text diff --git a/www/events.js b/www/events.js index 0d4a738..55598cc 100644 --- a/www/events.js +++ b/www/events.js @@ -100,7 +100,6 @@ function ajaxLoadEvents(stime, etime, eventid, url, target) { }; }; }; - //console.log(ajax_url+'?'+$.param(request_data)); if ( etime == '' || !etime ) { etime = new Date(); }; $.ajax({ type: "GET", diff --git a/www/index.html.de b/www/index.html.de index d371626..8cfde49 100755 --- a/www/index.html.de +++ b/www/index.html.de @@ -175,5 +175,6 @@
+ diff --git a/www/main.css b/www/main.css index fc8c168..333b86b 100644 --- a/www/main.css +++ b/www/main.css @@ -87,4 +87,16 @@ p.table-caption { font-size: smaller; } + div.spinner { + position: fixed; + top: 50%; + left: 50%; + margin-left: -64px; /* half width of the spinner gif */ + margin-top: -8px; /* half height of the spinner gif */ + text-align:center; + z-index: 19000; + overflow: auto; + width: 128px; /* width of the spinner gif */ + height: 40px; /*hight of the spinner gif +2px to fix IE8 issue */ + } diff --git a/www/misc.js b/www/misc.js index 7e07721..da87ab6 100644 --- a/www/misc.js +++ b/www/misc.js @@ -145,6 +145,9 @@ var networkText = { }; var bochumStation = ['BUG', 'IBBN', 'KERA', 'KARP']; +// FIX: firefox has no console +if (typeof console == "undefined") var console = { log: function() {} }; + /********************************************************************** * document ready * **********************************************************************/ @@ -192,6 +195,12 @@ $(document).ready(function() { heightStyle: 'content', animate: 200, }); - -}); - + // spinner + $(document).bind("ajaxSend", function() { + $("#spinner").show(); + console.log('Starting Spinner at '+Date()); + }).bind("ajaxStop", function() { + $("#spinner").hide(); + console.log('Stopping Spinner at '+Date()); + }); +}); \ No newline at end of file diff --git a/www/spinner.gif b/www/spinner.gif new file mode 100644 index 0000000..95cb084 Binary files /dev/null and b/www/spinner.gif differ