• Summary概略
    About rapt
    • rapt is an html-embeded program which implements to display a file as if plain text.
    • rapt collects hyperlinks from the embeded html file and converts the urls to request the server script to response as plain text.
    • Note this page embeds rapt to display the source code file as plain text, as follows.
    rapt について
    • raptは、ファイルをテキストとして表示可能なHTML組み込みプログラムである
    • raptは組み込まれたHTMLファイルからハイパーリンクを収集し、サーバスクリプトがテキストとして応答するよう収集したURLを変換する
    • 注:このページでは、以下の通りソースコードをテキストファイルとして表示させる為にraptを組み込んである
  • Sourceソース
    • _rapt.js
    • _rapt.php
  • Prerequisite前提
    • fss installed
    • jlog recommended
    • fss 設置済み
    • jlog 推奨
  • Install設置
    How to install設置方法 / Your choice個別設定, Recommendation推奨
    • Extract the distribution archive in your working directory配布物を作業ディレクトリで展開
    • Insert a few lines into your web pageウェブページへの組み込み (foobar.html)
      
      	<html>
      	<head>
      	    :
      |	<script src="_fss.js" type="text/javascript"></script>
      |	<script src="_jlog.js" type="text/javascript"></script>
      |	<script src="_rapt.js" type="text/javascript"></script>
      |	<script src="foobar.js" type="text/javascript"></script>
      	    :
      	</head>
      	<body>
      	    :
      	<a href="README">README</a>
      	    :
      |	<a href="requestAsPlainText.js" class="fb-plain-text"
      |		type="text/plain">requestAsPlainText.js</a>
      	    :
      |	<a href="responseAsPlainText.php" class="fb-plain-text"
      |		type="text/plain">responseAsPlainText.php</a>
      	    :
      	<a href="next.html">next</a>
      	    :
      	</body></html>
      
      
    • Insert several lines into your JavaScript fileJavaScript ファイルへの組み込み (foobar.js)
      
      	function foobarInit() {
      		:
      |		_rapt.prototype._raptClassName  = 'fb-plain-text';
      |		oRapt = new _rapt();
      		:
      	}
      
      	window.onload = function () {
      |	//	_fss.prototype._jlOffStartup = true; // to inactivate
      |	//	_fss.prototype._jlHideJlogButtonOnStartup = true; // to hide
      |		_rapt.prototype._jlogSetUp(foobarInit);  // log for all
      		foobarInit();
      	}
      
      
    • Make a config file for the security as followsセキュリティ保持の為、下記configファイルを作成 (.foobar.rapt)
      
      	<?php
      	# $_rapt['secure-re'] = '/(YourFile1|YourFile2|YourFile3)$/';
      	$_rapt['secure-re'] =
      		'/(requestAsPlainText\.js|responseAsPlainText\.php)$/';
      	?>
      
      
    • put the following files to the appropriate directory of your web site以下ファイルをサイトの該当ディレクトリに転送
      • _fss.js, _fss.html
      • _jlog.js
      • _rapt.js, rapt.php
      • .foobar.rapt
      • gpl.txt, dlgpl.php
      • foobar.js
      • foobar.html
  • Sampleサンプル

    n/a

  • Downloadダウンロード

    rapt is one of Use? components.

    rapt は Use? のコンポーネントである