diff options
author | Morten Engvoldsen <morten.engvoldsen@nokia.com> | 2010-05-12 15:00:46 (GMT) |
---|---|---|
committer | Morten Engvoldsen <morten.engvoldsen@nokia.com> | 2010-05-12 15:00:46 (GMT) |
commit | 5987412720498aa22202a1bcca3cb988a9cf5606 (patch) | |
tree | bf52decadf72229cf1112f7513787aa751f58bb1 /doc/src | |
parent | 37475bcc4aef3f08c5917f22c7f0f427e4214b91 (diff) | |
download | Qt-5987412720498aa22202a1bcca3cb988a9cf5606.zip Qt-5987412720498aa22202a1bcca3cb988a9cf5606.tar.gz Qt-5987412720498aa22202a1bcca3cb988a9cf5606.tar.bz2 |
Doc: Adding loading image to search textbox
Diffstat (limited to 'doc/src')
-rw-r--r-- | doc/src/template/images/spinner.gif | bin | 0 -> 2037 bytes | |||
-rwxr-xr-x | doc/src/template/scripts/functions.js | 14 | ||||
-rwxr-xr-x | doc/src/template/style/style.css | 4 |
3 files changed, 15 insertions, 3 deletions
diff --git a/doc/src/template/images/spinner.gif b/doc/src/template/images/spinner.gif Binary files differnew file mode 100644 index 0000000..1ed786f --- /dev/null +++ b/doc/src/template/images/spinner.gif diff --git a/doc/src/template/scripts/functions.js b/doc/src/template/scripts/functions.js index 09b7de3..7d93486 100755 --- a/doc/src/template/scripts/functions.js +++ b/doc/src/template/scripts/functions.js @@ -40,6 +40,7 @@ var exampleCount = 0; var qturl = ""; // change from "http://doc.qt.nokia.com/4.6/" to 0 so we can have relative links function processNokiaData(response){ +$('.sidebar .search form input').addClass('loading'); // debug $('.content').prepend('<li>handling search results</li>'); // debuging var propertyTags = response.getElementsByTagName('page'); @@ -92,7 +93,8 @@ function processNokiaData(response){ } } - if(lookupCount == 0){$('#ul001').prepend('<li class=\"liveResult noMatch\">Found no result</li>');$('#ul001 li').css('display','block');} + if(lookupCount == 0){$('#ul001').prepend('<li class=\"liveResult noMatch\">Found no result</li>');$('#ul001 li').css('display','block');$('.sidebar .search form input').removeClass('loading'); +} if(articleCount == 0){$('#ul002').prepend('<li class=\"liveResult noMatch\">Found no result</li>');$('#ul002 li').css('display','block');} if(exampleCount == 0){$('#ul003').prepend('<li class=\"liveResult noMatch\">Found no result</li>');$('#ul003 li').css('display','block');} // reset count variables; @@ -119,8 +121,14 @@ function CheckEmptyAndLoadList() $('.defaultLink').css('display','none'); } } - - +/* +$(window).resize(function(){ +if($(window).width()<400) + $('body').addClass('offline'); +else + $('body').removeClass('offline'); + }); + */ // Loads on doc ready $(document).ready(function () { var pageTitle = $('title').html(); diff --git a/doc/src/template/style/style.css b/doc/src/template/style/style.css index d87b11f..5ad90e3 100755 --- a/doc/src/template/style/style.css +++ b/doc/src/template/style/style.css @@ -1131,6 +1131,10 @@ visibility: hidden; } +.sidebar .search form input.loading +{ + background:url("../images/spinner.gif") no-repeat scroll right center transparent; +} /* end of screen media */ |