mirror of
https://github.com/wezm/wezm.net.git
synced 2024-12-18 18:29:54 +00:00
Some search improvements and fixes for Firefox
This commit is contained in:
parent
6804ca2ae9
commit
e6907f7d7a
4 changed files with 12 additions and 4 deletions
|
@ -8,6 +8,11 @@ body
|
|||
min-width: 960px
|
||||
|
||||
|
||||
// HTML5 expectations - should go in reset perhaps
|
||||
header, footer, nav, article
|
||||
display: block
|
||||
|
||||
|
||||
p, li, blockquote
|
||||
line-height: 1.2
|
||||
|
||||
|
|
|
@ -11,4 +11,5 @@
|
|||
<link rel="alternate" href="http://feeds.feedburner.com/wezm-technical" type="application/atom+xml" title="WezM.net - Technical Articles" />
|
||||
<link rel="alternate" href="http://feeds.feedburner.com/wezm-personal" type="application/atom+xml" title="WezM.net - Personal Articles" />
|
||||
<script src="/js/jquery-1.4.2.min.js" type="text/javascript" charset="utf-8"></script>
|
||||
<script src="/js/jquery.timers-1.1.2.js" type="text/javascript" charset="utf-8"></script>
|
||||
<script src="/js/application.js" type="text/javascript" charset="utf-8"></script>
|
||||
|
|
|
@ -26,13 +26,13 @@ jQuery(function() {
|
|||
if(article.css('opacity') != style.opacity) article.animate(style, {queue: false, duration: 500});
|
||||
});
|
||||
}
|
||||
$('#search').show();
|
||||
|
||||
var input = $('#search input');
|
||||
if(input.length > 0) {
|
||||
// Setup incremental search on Articles pages
|
||||
if(!(input.attr("onsearch") === undefined)) {
|
||||
if(input.get(0).hasOwnProperty('onsearch')) {
|
||||
console.log("Using search event for search");
|
||||
$('#search label').hide();
|
||||
input.bind("search", refresh_search);
|
||||
}
|
||||
else {
|
||||
|
@ -52,6 +52,8 @@ jQuery(function() {
|
|||
input.stopTime();
|
||||
});
|
||||
}
|
||||
input.val('');
|
||||
}
|
||||
$('#search').show();
|
||||
});
|
||||
|
||||
|
|
|
@ -16,8 +16,8 @@ jQuery(function () {
|
|||
alt: photo.attr('title'),
|
||||
};
|
||||
var li = $(render_image(image));
|
||||
$('img', li).css({left: (i * -75) + 'px'});
|
||||
li.css({"background-position-x": (i * -75) + 'px'});
|
||||
$('img', li).css('left', (i * -75) + 'px');
|
||||
li.css("background-position", (i * -75) + 'px -75px');
|
||||
ul.append(li);
|
||||
});
|
||||
$("a[rel^='prettyPhoto']").prettyPhoto({theme: "facebook"});
|
||||
|
|
Loading…
Reference in a new issue