Permalink
Browse files

Don't offer to search the IF Archive any more, just point people to t…

…he IFDB
  • Loading branch information...
curiousdannii committed Sep 7, 2015
1 parent 3389407 commit 78dcc9b1c78a4642ae88e7ca651743df85e7d871
View
@@ -11,7 +11,7 @@
<body>
<div id="about">
<h1>Parchment</h1>
<p>is an interpreter for Interactive Fiction. <a href="http://parchment.googlecode.com">Find out more.</a></p>
<p>is an interpreter for Interactive Fiction. <a href="https://github.com/curiousdannii/parchment">Find out more.</a></p>
<noscript><p>Parchment requires Javascript. Please enable it in your browser.</p></noscript>
</div>
<div id="parchment"></div>
Binary file not shown.
View
@@ -3,9 +3,9 @@
Parchment
=========
Built: 2013-07-29
Built: 2015-09-07
Copyright (c) 2008-2013 The Parchment Contributors
Copyright (c) 2008-2015 The Parchment Contributors
BSD licenced
https://github.com/curiousdannii/parchment
@@ -16,9 +16,9 @@ https://github.com/curiousdannii/parchment
General Parchment styles
========================
Copyright (c) 2008-2011 The Parchment Contributors
Copyright (c) 2008-2015 The Parchment Contributors
BSD licenced
http://code.google.com/p/parchment
https://github.com/curiousdannii/parchment
*/
@@ -74,6 +74,10 @@ body
}
/* Front page panels */
.panel
{
text-align: center;
}
/* Load any web story file */
.panel input
@@ -94,9 +98,9 @@ body
StructIO styles
===============
Copyright (c) 2008-2012 The Parchment Contributors
Copyright (c) 2015 The Parchment Contributors
BSD licenced
http://code.google.com/p/parchment
https://github.com/curiousdannii/parchment
*/
@@ -127,19 +131,21 @@ http://code.google.com/p/parchment
/* Text grid window */
.TextGrid
{
line-height: 19px;
position: fixed;
z-index: 2;
}
/* Floating boxes */
.box
{
line-height: 19px;
position: absolute;
z-index: 1;
}
/* Main window */
.main, .TextGrid
.main, .TextGrid, .box
{
/* Extra padding in case some serifs stick outside the status window */
padding: 0 1px;
View
@@ -3,9 +3,9 @@
Parchment
=========
Built: 2014-04-21
Built: 2015-09-07
Copyright (c) 2008-2014 The Parchment Contributors
Copyright (c) 2008-2015 The Parchment Contributors
BSD licenced
https://github.com/curiousdannii/parchment
@@ -610,9 +610,9 @@ TextInput = Object.subClass({
Text grid (ie, status) windows
==============================
Copyright (c) 2012 The Parchment Contributors
Copyright (c) 2015 The Parchment Contributors
BSD licenced
http://code.google.com/p/parchment
https://github.com/curiousdannii/parchment
*/
@@ -693,8 +693,8 @@ var TextGrid = Object.subClass({
window.scrollTo( 0, 9e9 );
temp.css({
top: $window.scrollTop() + this.lineheight * order.lines,
// Account for .main's added 1px padding
left: temp.offset().left - 1
// Account for the 1px serif padding
left: temp.position().left - 1
});
// Fill it with the lines we'll be removing
this.write( temp, lines.slice( order.lines ), styles.slice( order.lines ) );
@@ -1264,7 +1264,7 @@ window.parchment = {
page_title: 1,
// Front page panels to display if no default story
panels: [ 'search', 'url', 'about' ],
panels: [ 'ifdb', 'url', 'about' ],
// URL of proxy server to use for files we can't directly load
proxy_url: 'http://zcode.appspot.com/proxy/'
@@ -1742,9 +1742,9 @@ window.file = {
Parchment UI
============
Copyright (c) 2008-2011 The Parchment Contributors
Copyright (c) 2008-2015 The Parchment Contributors
BSD licenced
http://code.google.com/p/parchment
https://github.com/curiousdannii/parchment
*/
@@ -1815,42 +1815,12 @@ parchment.lib.UI = Object.subClass({
// Load panels for the front page
load_panels: function()
{
var panels = parchment.options.panels,
search_data, search_input, search_results,
var panels = parchment.options.panels;
// Perform a search of the archive
dosearch = function()
// Look for stories at the IFDB
if ( $.inArray( 'ifdb', panels ) != -1 )
{
// Filter the archive
var key = RegExp( search_input.val().replace( ' ', '( )?' ), 'i' ),
results = $.grep( search_data, function( story ){
return key.test( story.path + story.desc );
});
// Limit to 30 results
results = results.slice( 0, 30 );
// Fill the results div
search_results.html( $.map( results, map_results_callback ).join('') );
};
// A search box
if ( $.inArray( 'search', panels ) != -1 )
{
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>.' );
}
// A form to load any story file
View

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.
View

Large diffs are not rendered by default.

Oops, something went wrong.
View
@@ -11,7 +11,7 @@
<body>
<div id="about">
<h1>Parchment</h1>
<p>is an interpreter for Interactive Fiction. <a href="http://parchment.googlecode.com">Find out more.</a></p>
<p>is an interpreter for Interactive Fiction. <a href="https://github.com/curiousdannii/parchment">Find out more.</a></p>
<noscript><p>Parchment requires Javascript. Please enable it in your browser.</p></noscript>
</div>
<div id="parchment"></div>
View
@@ -61,7 +61,7 @@ window.parchment = {
page_title: 1,
// Front page panels to display if no default story
panels: [ 'search', 'url', 'about' ],
panels: [ 'ifdb', 'url', 'about' ],
// URL of proxy server to use for files we can't directly load
proxy_url: 'http://zcode.appspot.com/proxy/'
@@ -3,9 +3,9 @@
General Parchment styles
========================
Copyright (c) 2008-2011 The Parchment Contributors
Copyright (c) 2008-2015 The Parchment Contributors
BSD licenced
http://code.google.com/p/parchment
https://github.com/curiousdannii/parchment
*/
@@ -61,6 +61,10 @@ body
}
/* Front page panels */
.panel
{
text-align: center;
}
/* Load any web story file */
.panel input
View
@@ -3,9 +3,9 @@
Parchment UI
============
Copyright (c) 2008-2011 The Parchment Contributors
Copyright (c) 2008-2015 The Parchment Contributors
BSD licenced
http://code.google.com/p/parchment
https://github.com/curiousdannii/parchment
*/
@@ -76,42 +76,12 @@ parchment.lib.UI = Object.subClass({
// Load panels for the front page
load_panels: function()
{
var panels = parchment.options.panels,
search_data, search_input, search_results,
var panels = parchment.options.panels;
// Perform a search of the archive
dosearch = function()
// Look for stories at the IFDB
if ( $.inArray( 'ifdb', panels ) != -1 )
{
// Filter the archive
var key = RegExp( search_input.val().replace( ' ', '( )?' ), 'i' ),
results = $.grep( search_data, function( story ){
return key.test( story.path + story.desc );
});
// Limit to 30 results
results = results.slice( 0, 30 );
// Fill the results div
search_results.html( $.map( results, map_results_callback ).join('') );
};
// A search box
if ( $.inArray( 'search', panels ) != -1 )
{
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>.' );
}
// A form to load any story file
View

This file was deleted.

Oops, something went wrong.

0 comments on commit 78dcc9b

Please sign in to comment.