Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Prevent search box "flicker" on page load (Closes #149)
  • Loading branch information
zoffixznet committed Oct 8, 2015
1 parent 8249119 commit 894232a
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 3 deletions.
1 change: 0 additions & 1 deletion html/css/style.css
Expand Up @@ -144,7 +144,6 @@ td p {
width: 32%;
min-width: 9em;
max-width: 35em;
visibility: hidden; /*visibility is set to visible in search.js if javascript is supported*/
}

#search label {
Expand Down
2 changes: 1 addition & 1 deletion template/head.html
Expand Up @@ -3,4 +3,4 @@
<link rel="stylesheet" type="text/css" href="/css/style.css" media="screen" title="default" />
<link type="text/css" href="/css/custom-theme/jquery-ui.css" rel="stylesheet" />
<link type="text/css" href="/css/pygments.css" rel="stylesheet" />

<noscript> <style> #search { visibility: hidden; } </style> </noscript>
1 change: 0 additions & 1 deletion template/search_template.js
@@ -1,5 +1,4 @@
$(function(){
$('#search').css('visibility', 'visible');
$("#query").autocomplete({
response: function( e, ui ) {
if ( ! ui.content.length ) { $('#search').addClass( 'not-found') }
Expand Down

0 comments on commit 894232a

Please sign in to comment.