GithubHelp home page GithubHelp logo

stmkza / xp3.js Goto Github PK

View Code? Open in Web Editor NEW
5.0 2.0 0.0 151 KB

吉里吉里のXP3アーカイブをWebブラウザのJavaScriptから読めるようにするスクリプト

License: MIT License

JavaScript 67.26% PHP 13.93% HTML 18.81%

xp3.js's Introduction

XP3.js

吉里吉里のXP3アーカイブをWebブラウザのJavaScriptから読めるようにするスクリプト

試してみる

PHPをインストールし、このリポジトリのルートで php -S 0.0.0.0:80 を実行、そしてWebブラウザで以下のURLを開いてください。

デモ1: ファイルリスト表示

XP3アーカイブに含まれるファイルをリスト表示し、テキストファイルと画像ファイルをプレビューします。

http://localhost/test/index.html

デモ2: ServiceWorkerを使用したVFS的なもの

アーカイブに含まれるファイルを普通にサーバ上にあるファイルと同じように扱えるようにします。 /test/.vfs/xp3/{ARCHIVE_NAME}>{PATH} のようにアクセスしてください。

http://localhost/test/serviceworker.html

注意事項

これは実験的に作っているものです。コードは最低限動けばいい程度のもので、(キャッシュ系の実装をまともにやっていないことを含めて)かなり雑です。 実際にこれを使って何かを作ることは推奨しません。

また、これはサーバ側がRange指定リクエストに対応している必要があります。 Range指定リクエストを大量に飛ばすのでS3等のリクエスト数課金があるサーバでは使わない方がいいと思います。

xp3.js's People

Contributors

stmkza avatar

Stargazers

 avatar Yamada Hayao avatar Tomokazu Katayama avatar くもことなおこ avatar nakayama900 avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.