|_| |_|_| |_|\___|_| |_|\__\__,_|_|\r
\r
あなたも変態。 いいね? \r
-[![Build Status](https://travis-ci.org/RicterZ/nhentai.svg?branch=master)](https://travis-ci.org/RicterZ/nhentai) ![nhentai PyPI Downloads](https://img.shields.io/pypi/dm/nhentai.svg) \r
+[![Build Status](https://travis-ci.org/RicterZ/nhentai.svg?branch=master)](https://travis-ci.org/RicterZ/nhentai) ![nhentai PyPI Downloads](https://img.shields.io/pypi/dm/nhentai.svg) ![![license](https://opensource.org/licenses/MIT)](https://img.shields.io/cocoapods/l/AFNetworking.svg)\r
\r
\r
nHentai is a CLI tool for downloading doujinshi from [nhentai.net](http://nhentai.net).\r
### Usage\r
**IMPORTANT**: To bypass the nhentai frequency limit, you should use `--login` option to log into nhentai.net.\r
\r
+*The default download folder will be the path where you run the command (CLI path).*\r
+\r
Download specified doujinshi:\r
```bash\r
nhentai --id=123855,123866\r
![](./images/download.png) \r
![](./images/viewer.png) \r
\r
-### License \r
-MIT\r
-\r
### あなたも変態\r
![](./images/image.jpg)\r
document.onkeypress = event => {\r
switch (event.key.toLowerCase()) {\r
// Previous Image\r
- case 'arrowleft':\r
case 'a':\r
changePage(currentPage - 1);\r
break;\r
\r
// Next Image\r
case ' ':\r
+ case 'esc': // future close page function\r
case 'enter':\r
- case 'arrowright':\r
case 'd':\r
changePage(currentPage + 1);\r
break;\r
+ }// remove arrow cause it won't work\r
+};\r
+\r
+document.onkeydown = event =>{\r
+ switch (event.keyCode) {\r
+ case 37: //left\r
+ changePage(currentPage - 1);\r
+ break;\r
+ case 38: //up\r
+ changePage(currentPage - 1);\r
+ break;\r
+ case 39: //right\r
+ changePage(currentPage + 1);\r
+ break;\r
+ case 40: //down\r
+ changePage(currentPage + 1);\r
+ break;\r
}\r
};
\ No newline at end of file