mirror of
https://github.com/wezm/wezm.net.git
synced 2024-11-18 12:52:47 +00:00
Get articles pages working on iPhone
This commit is contained in:
parent
56a9b4b636
commit
2ab3615485
2 changed files with 25 additions and 20 deletions
|
@ -40,6 +40,18 @@ ul.articles li
|
||||||
padding-top: 0
|
padding-top: 0
|
||||||
height: auto
|
height: auto
|
||||||
|
|
||||||
|
|
||||||
|
nav.search
|
||||||
|
li
|
||||||
|
display: list-item
|
||||||
|
margin: 1em 0 0 0
|
||||||
|
font-size: large
|
||||||
|
|
||||||
|
|
||||||
|
#search
|
||||||
|
float: none
|
||||||
|
|
||||||
|
|
||||||
#flickr
|
#flickr
|
||||||
|
|
||||||
header
|
header
|
||||||
|
|
|
@ -28,12 +28,6 @@ jQuery(function() {
|
||||||
|
|
||||||
var input = $('#search input');
|
var input = $('#search input');
|
||||||
if(input.length > 0) {
|
if(input.length > 0) {
|
||||||
// Setup incremental search on Articles pages
|
|
||||||
if('onsearch' in input.get(0)) {
|
|
||||||
$('#search label').hide();
|
|
||||||
input.bind("search", function() { refresh_search(this) });
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
// Poll the field for its value while it has focus
|
// Poll the field for its value while it has focus
|
||||||
var last_value;
|
var last_value;
|
||||||
input.focus(function() {
|
input.focus(function() {
|
||||||
|
@ -47,7 +41,6 @@ jQuery(function() {
|
||||||
}).blur(function() {
|
}).blur(function() {
|
||||||
input.stopTime();
|
input.stopTime();
|
||||||
});
|
});
|
||||||
}
|
|
||||||
input.val('');
|
input.val('');
|
||||||
}
|
}
|
||||||
$('#search').show();
|
$('#search').show();
|
||||||
|
|
Loading…
Reference in a new issue