! This the manifest file for the Parchment in-browser interpreter, and gives
! the necessary details to Inform's release component (called cBlorb) so that
! the interpreter can be bundled into a released website, all set up ready
! to play the IF story file being released.

! Manifest files have a simple format. They are allowed to set the value of
! any cBlorb placeholders that they would like to, but the ones below are the
! only ones they will likely want to set. These two are needed for the footer
! of the play page:

[INTERPRETERVERSION]
Vorple
[]

[INTERPRETERURL]
http://vorple-if.com
[]

! Note that we don't set [INTERPRETER]: cBlorb has already set that to the
! name of the interpreter, in this case, to "Vorple".

! This declares whether the interpreter can handle blorbed Z-machine files
! ("z"), blorbed Glulx files ("g") or both ("zg" or "gz"). No other values
! are legal; note lower case.

[INTERPRETERVM]
z
[]

! [INTERPRETERHEAD] provides code to go into the <head> ... </head> of the
! web page playing the work. (Placeholder text starts on the line after the
! name, and continues until a line reads just []. Line breaks are included
! between lines, though not at the end of the final line; white space is
! stripped out at the left and right hand edges of each line.)

! In writing the head and body, note that the structure of the site being
! constructed is:
!     play.html  <-- page on which the interpreter runs
!     interpreter
!         ...the base64-encoded story file...
!         ...any files copied over according to the manifest below...
! The placeholder [ENCODEDSTORYFILE] expands to the leafname of the base64
! version of the story file, which might be (but should not be assumed
! to be) "story.zblorb.js".

[INTERPRETERHEAD]
	<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>
    <script type="text/javascript">
        if( typeof jQuery == 'undefined' ) {
            document.write( unescape( "%3Cscript src='jquery-1.7.1.min.js' type='text/javascript'%3E%3C/script%3E" ) );
        }
    </script>
    
    <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.18/jquery-ui.min.js"></script>
    <script type="text/javascript">
        if( typeof jQuery.ui == 'undefined' ) {
            document.write( unescape( "%3Cscript src='jquery-ui-1.8.18.custom.min.js' type='text/javascript'%3E%3C/script%3E" ) );
        }
    </script>
	
    <script type="text/javascript" src="interpreter/jquery.jplayer.min.js"></script>
    <script type="text/javascript" src="interpreter/jquery.qtip.min.js"></script>
    <script type="text/javascript" src="interpreter/jquery.noty.js"></script>
    
	<script type="text/javascript" src="interpreter/parchment.min.js"></script>
    <script type="text/javascript" src="interpreter/vorple.min.js"></script>
    <script type="text/javascript" src="interpreter/vorple.custom.js"></script>
    
	<link rel="stylesheet" href="interpreter/parchment.min.css">
	<link rel="stylesheet" href="interpreter/jquery.qtip.min.css">
	<link rel="stylesheet" href="interpreter/jquery-ui.css">
	<link rel="stylesheet" href="interpreter/jquery.noty.css">
	<link rel="stylesheet" href="interpreter/noty_theme_default.css">
	<link rel="stylesheet" href="interpreter/vorple.css">
	<link rel="stylesheet" href="css/vorple.custom.css">
	<link rel="stylesheet" href="js/vorple.custom.js">
	
	<link href='http://fonts.googleapis.com/css?family=Orbitron:700' rel='stylesheet' type='text/css'>
	
	<script type="text/javascript">
		parchment.options.lib_path = 'interpreter/';
		parchment.options.default_story = [ "[STORYFILE]", "interpreter/[ENCODEDSTORYFILE]" ];
		parchment.options.lock_story = 1;
		
		$( function() {
			$( '.coverimage, .links, .interpretercredit' ).detach();
			$( '#vorpleContainer' ).unwrap(); 
		});

		vorple.core.init( parchment );
	</script>
[]

! [INTERPRETERBODY] provides the part of the page where the window
! or gadget actually appears.

[INTERPRETERBODY]
<div id="about">
	<h1>Parchment</h1>
	<p>is an interpreter for Interactive Fiction. <a href="http://parchment.googlecode.com">Find out more.</a></p>
	<noscript><p>Parchment requires Javascript. Please enable it in your browser.</p></noscript>
</div>

<div id="vorpleContainer">
    <div id="vorple"></div>
    <div id="parchment"></div>
    <div class="clearAll"></div>
    <div id="vorple-media"></div>
</div>
[]

! The following footnote is added to the small print about how to play IF
! on the game's main page:

[INBROWSERPLAY]
Or you can play without downloading anything by following the 'Play In-Browser'
link, using the [INTERPRETER] interpreter. You'll need to have Javascript enabled
on your web browser.
[]

! cBlorb encodes the story file into base64 so that it can be loaded in
! Javascript despite being binary data. The encoding is topped and tailed
! with the following, in order to make the result a valid Javascript function
! call with a string argument:

[BASESIXTYFOURTOP]
processBase64Zcode('
[]

[BASESIXTYFOURTAIL]
')
[]

! Outside of the placeholder parts of the manifest, lines beginning '!', or
! lines which contain only white space, are thrown away; so this is a comment.

! Non-comment lines are the names of files which are copied across when the
! release is made. Anything not listed here won't be copied.

! (files will be added by the Vorple build script.)

gnusto.min.js
Jplayer.swf
jquery-1.7.1.min.js
jquery-ui-1.8.18.custom.min.js
jquery-ui.css
jquery.jplayer.min.js
jquery.noty.css
jquery.noty.js
jquery.qtip.css
jquery.qtip.min.css
jquery.qtip.min.js
noty_theme_default.css
noty_theme_mitgux.css
noty_theme_twitter.css
parchment.min.css
parchment.min.js
ui-bg_flat_0_aaaaaa_40x100.png
ui-bg_flat_75_ffffff_40x100.png
ui-bg_glass_55_fbf9ee_1x400.png
ui-bg_glass_65_ffffff_1x400.png
ui-bg_glass_75_dadada_1x400.png
ui-bg_glass_75_e6e6e6_1x400.png
ui-bg_glass_95_fef1ec_1x400.png
ui-bg_highlight-soft_75_cccccc_1x100.png
ui-icons_222222_256x240.png
ui-icons_2e83ff_256x240.png
ui-icons_454545_256x240.png
ui-icons_888888_256x240.png
ui-icons_cd0a0a_256x240.png
undum.js
vorple.css
vorple.min.js
zvm.min.js
