this.panels.search=$( '<div class="panel search"><label for="panel_search">Search the IF Archive for games you can play with Parchment. You might also like to search the <a href="http://ifdb.tads.org">IFDB</a> or the <a href="http://ifwiki.org">IF Wiki</a>.</label><input id="panel_search"><div></div></div>' );
search_input =this.panels.search.find( 'input' );
search_results =search_input.next();
// Load the archive json file
search_input.keydown(function(){
search_input.unbind( 'keydown' );
$.getJSON( 'stories/if-archive.json' )
.done(function( data ){
search_data = data;
// Attach the real handler once the archive's been downloaded, and then run it once
search_input.keyup( dosearch );
dosearch();
});
});
this.panels.ifdb=$( '<p class="panel">Find stories to play at the <a href="http://ifdb.tads.org/">Interactive Fiction Database</a>.' );
this.panels.search=$( '<div class="panel search"><label for="panel_search">Search the IF Archive for games you can play with Parchment. You might also like to search the <a href="http://ifdb.tads.org">IFDB</a> or the <a href="http://ifwiki.org">IF Wiki</a>.</label><input id="panel_search"><div></div></div>' );
search_input =this.panels.search.find( 'input' );
search_results =search_input.next();
// Load the archive json file
search_input.keydown(function(){
search_input.unbind( 'keydown' );
$.getJSON( 'stories/if-archive.json' )
.done(function( data ){
search_data = data;
// Attach the real handler once the archive's been downloaded, and then run it once
search_input.keyup( dosearch );
dosearch();
});
});
this.panels.ifdb=$( '<p class="panel">Find stories to play at the <a href="http://ifdb.tads.org/">Interactive Fiction Database</a>.' );
0 comments on commit
78dcc9b