Skip to content
Ukagaka SHIORI Wrapper
HTML Makefile CoffeeScript JavaScript
Find file
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
lib
src/lib
test [broken] add Makefile
vendor use blob worker
.gitignore
Makefile
bower.json [broken] add Makefile
index.html
index.js [broken] add Makefile
index26.html
package.json
readme.md apply req-res style worker

readme.md

Ghost.js

usage

wiki

<script src="./node_modules/ikagaka.nar.js/node_modules/encoding-japanese/encoding.js"></script>
<script src="./node_modules/ikagaka.nar.js/vendor/jszip.min.js"></script>
<script src="./node_modules/ikagaka.nar.js/vendor/XHRProxy.min.js"></script>
<script src="./node_modules/ikagaka.nar.js/vendor/WMDescript.js"></script>
<script src="./node_modules/ikagaka.nar.js/Nar.js"></script>
<script src="./node_modules/ikagaka.shell.js/vendor/zepto.min.js"></script>
<script src="./node_modules/ikagaka.shell.js/SurfaceUtil.js"></script>
<script src="./node_modules/underscore/underscore-min.js"></script>
<script src="./Ghost.js"></script>
<script>
var nar = new Nar();
nar.loadFromURL("./vender/TempleteKarin.nar", function (err){
  if(!!err) return console.error(err.stack);

  if(nar.install.type === "ghost"){
    var ghostDir = nar.getDirectory(/ghost\/master\//);
    var ghost = new Ghost(ghostDir);
  }else{
    throw new Error("wrong nar file")
  }

  Error.stackTraceLimit = Infinity;

  ghost.load(function(err){
    if(!!err) return console.error(err.stack);

    console.log(ghost);

    ghost.request([
      "GET SHIORI/3.0",
      "ID: OnBoot",
      "Sender: embryo",
      "Charset: Shift_JIS",
      "Reference0: 0",
      "\r\n"].join("\r\n"), function(err, response){
      if(!!err) return console.error(err.stack);

      console.log(response);
    });

  });
});
</script>
Something went wrong with that request. Please try again.