added more preview pages and more templates
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
$(function(){
|
||||
var s=location.search.replace(/^\?.*s=([^&]+)/,'$1')
|
||||
,form=$('#search')
|
||||
,input=$('input[type=text]',form)
|
||||
,results=$('#search-results').height(0)
|
||||
,src='search/results.php'
|
||||
,ifr=$('<iframe width="100%" height="100%" frameborder="0" marginheight="0" marginwidth="0" allowTransparency="true"></iframe>')
|
||||
|
||||
if(results.length)
|
||||
ifr
|
||||
.attr({
|
||||
src:src+'?s='+s
|
||||
})
|
||||
.appendTo(results)
|
||||
,input
|
||||
.val(decodeURI(s))
|
||||
|
||||
window._resize=function(h){
|
||||
results
|
||||
.height(h)
|
||||
}
|
||||
})
|
||||
Reference in New Issue
Block a user