yaway / jquery.nehan

jquery.nehan is jquery plugin for nehan.js to create paged-media reader easily.

Home Page:http://tategakibunko.github.io/jquery.nehan

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

jquery.nehan

Instroduction

jquery.nehan is jquery plugin for nehan.js, to create reader of paged-media easily.

Build

jquery.nehan uses Grunt to build complete script.

to make jquery.nehan.js

grunt concat:normal

to make jquery.nehan.min.js

grunt uglify:normal
grunt concat:min

Quick Start

  1. Include css, and js in the <head>:

    <link href="/path/to/nehan.css" type="text/css" rel="stylesheet">
    <link href="/path/to/jquery.nehan.css" type="text/css" rel="stylesheet">
    <script src="/path/to/nehan.js" type="text/javascript"></script>
    <script src="/path/to/jquery.nehan.js" type="text/javascript"></script>
  2. Call nehan function for each jquery object.

    <script type="text/javascript">
      $(function(){
        $(".some-target").nehan({
              usePager:true, // if false, pager disabled(append mode)
    	  direction:"hori", // or "vert"
    	  hori:"lr-tb",
    	  vert:"tb-rl", // or "tb-lr"
    	  width:800,
    	  height:600,
    	  fontSize:16,
    	  rowCount:1, // 1 or 2 available
    	  colCount:1, // 1 or 2 available
    	  spacingSize:16,
    	  pagerElements:["left-prev", "indicator", "right-next"]
    	});
      });
    </script>

License

MIT license

About

jquery.nehan is jquery plugin for nehan.js to create paged-media reader easily.

http://tategakibunko.github.io/jquery.nehan

License:Other