UNPKG

nhentai-api-tiffceet-patch

Version:
1,809 lines (617 loc) 33.9 kB
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <title>Global | nhentai-api</title> <script src="scripts/prettify/prettify.js"> </script> <script src="scripts/prettify/lang-css.js"> </script> <!--[if lt IE 9]> <script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script> <![endif]--> <link type="text/css" rel="stylesheet" href="styles/bootstrap.min.css"> <link type="text/css" rel="stylesheet" href="styles/prettify-jsdoc.css"> <link type="text/css" rel="stylesheet" href="styles/prettify-tomorrow.css"> <link type="text/css" rel="stylesheet" href="styles/tui-doc.css"> </head> <body> <nav class="lnb" id="lnb"> <div class="logo" style="width: 65px; height: 13px"> <a href="index.html" rel="noopener noreferrer" target="_blank"> <img src="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAzMCA1Ij48dGV4dCB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHg9IjAiIHk9IjEwMCUiIGZpbGw9IndoaXRlIiB0ZXh0TGVuZ3RoPSIzMCIgZm9udC1zaXplPSI1IiBmb250LWZhbWlseT0ic2Fucy1zZXJpZiIgc3R5bGU9InRleHQtdHJhbnNmb3JtOnVwcGVyY2FzZSI+bmhlbnRhaS1hcGk8L3RleHQ+PC9zdmc+" width="100%" height="100%"> </a> </div> <div class="title"> <h1><a href="index.html" class="link">nhentai-api</a></h1> <span class="version">v3.0.2</span> </div> <div class="search-container" id="search-container"> <input type="text" placeholder="Search"> <ul></ul> </div> <div class="lnb-api hidden"><h3>Modules</h3><ul><li><a href="module-API.html">API</a><button type="button" class="hidden toggle-subnav btn btn-link"> <span class="glyphicon glyphicon-plus"></span></button><div class="hidden" id="module:API_sub"><div class="member-type">Typedef</div><ul class="inner"><li><a href="module-API.html#~APIArgs">APIArgs</a></li></ul></div></li><li><a href="module-Book.html">Book</a><button type="button" class="hidden toggle-subnav btn btn-link"> <span class="glyphicon glyphicon-plus"></span></button><div class="hidden" id="module:Book_sub"><div class="member-type">Typedef</div><ul class="inner"><li><a href="module-Book.html#~BookTitle">BookTitle</a></li></ul></div></li><li><a href="module-Image.html">Image</a><button type="button" class="hidden toggle-subnav btn btn-link"> <span class="glyphicon glyphicon-plus"></span></button><div class="hidden" id="module:Image_sub"><div class="member-type">Members</div><ul class="inner"><li><a href="module-Image.html#~known">known</a></li></ul><div class="member-type">Methods</div><ul class="inner"><li><a href="module-Image.html#~get">get</a></li></ul><div class="member-type">Typedef</div><ul class="inner"><li><a href="module-Image.html#~ImageTypes">ImageTypes</a></li></ul></div></li><li><a href="module-Search.html">Search</a><button type="button" class="hidden toggle-subnav btn btn-link"> <span class="glyphicon glyphicon-plus"></span></button><div class="hidden" id="module:Search_sub"></div></li><li><a href="module-Tag.html">Tag</a><button type="button" class="hidden toggle-subnav btn btn-link"> <span class="glyphicon glyphicon-plus"></span></button><div class="hidden" id="module:Tag_sub"><div class="member-type">Members</div><ul class="inner"><li><a href="module-Tag.html#~known">known</a></li></ul><div class="member-type">Methods</div><ul class="inner"><li><a href="module-Tag.html#~get">get</a></li></ul><div class="member-type">Typedef</div><ul class="inner"><li><a href="module-Tag.html#~TagTypes">TagTypes</a></li></ul></div></li></ul></div><div class="lnb-api hidden"><h3>Classes</h3><ul><li><a href="module-API-API.html">API</a><button type="button" class="hidden toggle-subnav btn btn-link"> <span class="glyphicon glyphicon-plus"></span></button><div class="hidden" id="module:API~API_sub"><div class="member-type">Members</div><ul class="inner"><li><a href="module-API-API.html#APIPath">APIPath</a></li><li><a href="module-API-API.html#net">net</a></li></ul><div class="member-type">Methods</div><ul class="inner"><li><a href="module-API-API.html#getAPIArgs">getAPIArgs</a></li><li><a href="module-API-API.html#getBook">getBook</a></li><li><a href="module-API-API.html#getImageURL">getImageURL</a></li><li><a href="module-API-API.html#getThumbURL">getThumbURL</a></li><li><a href="module-API-API.html#request">request</a></li><li><a href="module-API-API.html#search">search</a></li><li><a href="module-API-API.html#searchAlike">searchAlike</a></li><li><a href="module-API-API.html#searchTagged">searchTagged</a></li></ul></div></li><li><a href="module-API-APIPath.html">APIPath</a><button type="button" class="hidden toggle-subnav btn btn-link"> <span class="glyphicon glyphicon-plus"></span></button><div class="hidden" id="module:API~APIPath_sub"><div class="member-type">Methods</div><ul class="inner"><li><a href="module-API-APIPath.html#.book">book</a></li><li><a href="module-API-APIPath.html#.bookCover">bookCover</a></li><li><a href="module-API-APIPath.html#.bookPage">bookPage</a></li><li><a href="module-API-APIPath.html#.bookThumb">bookThumb</a></li><li><a href="module-API-APIPath.html#.search">search</a></li><li><a href="module-API-APIPath.html#.searchAlike">searchAlike</a></li><li><a href="module-API-APIPath.html#.searchTagged">searchTagged</a></li></ul></div></li><li><a href="module-Book-Book.html">Book</a><button type="button" class="hidden toggle-subnav btn btn-link"> <span class="glyphicon glyphicon-plus"></span></button><div class="hidden" id="module:Book~Book_sub"><div class="member-type">Members</div><ul class="inner"><li><a href="module-Book-Book.html#cover">cover</a></li><li><a href="module-Book-Book.html#favorites">favorites</a></li><li><a href="module-Book-Book.html#id">id</a></li><li><a href="module-Book-Book.html#isKnown">isKnown</a></li><li><a href="module-Book-Book.html#media">media</a></li><li><a href="module-Book-Book.html#pages">pages</a></li><li><a href="module-Book-Book.html#scanlator">scanlator</a></li><li><a href="module-Book-Book.html#tags">tags</a></li><li><a href="module-Book-Book.html#title">title</a></li><li><a href="module-Book-Book.html#Unknown">Unknown</a></li><li><a href="module-Book-Book.html#UnknownBook">UnknownBook</a></li><li><a href="module-Book-Book.html#uploaded">uploaded</a></li></ul><div class="member-type">Methods</div><ul class="inner"><li><a href="module-Book-Book.html#.parse">parse</a></li><li><a href="module-Book-Book.html#hasTag">hasTag</a></li><li><a href="module-Book-Book.html#hasTagWith">hasTagWith</a></li><li><a href="module-Book-Book.html#pushPage">pushPage</a></li><li><a href="module-Book-Book.html#pushTag">pushTag</a></li><li><a href="module-Book-Book.html#setCover">setCover</a></li></ul></div></li><li><a href="module-Book-UnknownBook.html">UnknownBook</a><button type="button" class="hidden toggle-subnav btn btn-link"> <span class="glyphicon glyphicon-plus"></span></button><div class="hidden" id="module:Book~UnknownBook_sub"></div></li><li><a href="module-Image-Image.html">Image</a><button type="button" class="hidden toggle-subnav btn btn-link"> <span class="glyphicon glyphicon-plus"></span></button><div class="hidden" id="module:Image~Image_sub"><div class="member-type">Members</div><ul class="inner"><li><a href="module-Image-Image.html#book">book</a></li><li><a href="module-Image-Image.html#filename">filename</a></li><li><a href="module-Image-Image.html#height">height</a></li><li><a href="module-Image-Image.html#id">id</a></li><li><a href="module-Image-Image.html#isCover">isCover</a></li><li><a href="module-Image-Image.html#type">type</a></li><li><a href="module-Image-Image.html#types">types</a></li><li><a href="module-Image-Image.html#width">width</a></li></ul><div class="member-type">Methods</div><ul class="inner"><li><a href="module-Image-Image.html#.parse">parse</a></li></ul></div></li><li><a href="module-Image-ImageType.html">ImageType</a><button type="button" class="hidden toggle-subnav btn btn-link"> <span class="glyphicon glyphicon-plus"></span></button><div class="hidden" id="module:Image~ImageType_sub"><div class="member-type">Members</div><ul class="inner"><li><a href="module-Image-ImageType.html#extension">extension</a></li><li><a href="module-Image-ImageType.html#isKnown">isKnown</a></li><li><a href="module-Image-ImageType.html#knownTypes">knownTypes</a></li><li><a href="module-Image-ImageType.html#type">type</a></li></ul></div></li><li><a href="module-Image-UnknownImageType.html">UnknownImageType</a><button type="button" class="hidden toggle-subnav btn btn-link"> <span class="glyphicon glyphicon-plus"></span></button><div class="hidden" id="module:Image~UnknownImageType_sub"></div></li><li><a href="module-Search-Search.html">Search</a><button type="button" class="hidden toggle-subnav btn btn-link"> <span class="glyphicon glyphicon-plus"></span></button><div class="hidden" id="module:Search~Search_sub"><div class="member-type">Members</div><ul class="inner"><li><a href="module-Search-Search.html#books">books</a></li><li><a href="module-Search-Search.html#page">page</a></li><li><a href="module-Search-Search.html#pages">pages</a></li><li><a href="module-Search-Search.html#perPage">perPage</a></li></ul><div class="member-type">Methods</div><ul class="inner"><li><a href="module-Search-Search.html#.parse">parse</a></li><li><a href="module-Search-Search.html#pushBook">pushBook</a></li></ul></div></li><li><a href="module-Tag-Tag.html">Tag</a><button type="button" class="hidden toggle-subnav btn btn-link"> <span class="glyphicon glyphicon-plus"></span></button><div class="hidden" id="module:Tag~Tag_sub"><div class="member-type">Members</div><ul class="inner"><li><a href="module-Tag-Tag.html#types">types</a></li></ul><div class="member-type">Methods</div><ul class="inner"><li><a href="module-Tag-Tag.html#.get">get</a></li><li><a href="module-Tag-Tag.html#compare">compare</a></li></ul></div></li><li><a href="module-Tag-TagType.html">TagType</a><button type="button" class="hidden toggle-subnav btn btn-link"> <span class="glyphicon glyphicon-plus"></span></button><div class="hidden" id="module:Tag~TagType_sub"><div class="member-type">Members</div><ul class="inner"><li><a href="module-Tag-TagType.html#isKnown">isKnown</a></li><li><a href="module-Tag-TagType.html#knownTypes">knownTypes</a></li><li><a href="module-Tag-TagType.html#type">type</a></li></ul></div></li><li><a href="module-Tag-UnknownTagType.html">UnknownTagType</a><button type="button" class="hidden toggle-subnav btn btn-link"> <span class="glyphicon glyphicon-plus"></span></button><div class="hidden" id="module:Tag~UnknownTagType_sub"></div></li></ul></div><div class="lnb-api hidden"><h3>Global</h3><ul><li class="hidden"><a href="global.html#APIBook">APIBook</a></li><li class="hidden"><a href="global.html#APIImage">APIImage</a></li><li class="hidden"><a href="global.html#APISearch">APISearch</a></li><li class="hidden"><a href="global.html#APITag">APITag</a></li><li class="hidden"><a href="global.html#httpAgent">httpAgent</a></li><li class="hidden"><a href="global.html#nHentaiHosts">nHentaiHosts</a></li><li class="hidden"><a href="global.html#nHentaiOptions">nHentaiOptions</a></li><li><a href="global.html#processOptions">processOptions</a></li></ul></div> </nav> <div id="resizer"></div> <div class="main" id="main"> <section> <header> <h2>Global</h2> </header> <article> <h3 class="subsection-title">Methods</h3> <dl> <dt> <h4 class="name" id="processOptions"> <span class="type-signature"></span>processOptions<span class="signature">(options)</span><span class="type-signature"> &rarr; {<a href="global.html#nHentaiOptions">nHentaiOptions</a>}</span> <div class="container-source members"> <code><a href="options.js.html">options.js</a></code>, <code><a href="options.js.html#line33">line 33</a></code> </div> </h4> </dt> <dd> <div class="description"> <p>Applies provided options on top of defaults.</p> </div> <div class="container-params"> <h5>Parameters:</h5> <table class="params"> <thead> <tr> <th>Name</th> <th>Type</th> <th class="last">Description</th> </tr> </thead> <tbody> <tr> <td class="name"><code>options</code></td> <td class="type"> <span class="param-type"><a href="global.html#nHentaiOptions">nHentaiOptions</a></span> </td> <td class="description last"><p>Options to apply.</p></td> </tr> </tbody> </table> </div> <div class="container-returns"> <h5>Returns:</h5> <span class="param-type"><a href="global.html#nHentaiOptions">nHentaiOptions</a></span> - <p>Unified options.</p> </div> <dl class="details"> </dl> </dd> </dl> <h3 class="subsection-title">Type Definitions</h3> <dl> <dt> <h4 class="name" id="APIBook"> APIBook <div class="container-source members"> <code><a href="book.js.html">book.js</a></code>, <code><a href="book.js.html#line8">line 8</a></code> </div> </h4> </dt> <dd> <div class="description"> <p>Book object from API.</p> </div> <!-- <h5>Type:</h5> <ul> <li> <span class="param-type">object</span> </li> </ul> --> <h5 class="subsection-title">Properties:</h5> <table class="props"> <thead> <tr> <th>Name</th> <th>Type</th> <th class="last">Description</th> </tr> </thead> <tbody> <tr> <td class="name"><code>title</code></td> <td class="type"> <span class="param-type">object</span> </td> <td class="description last"><p>Book title.</p> <h6>Properties</h6> <table class="props"> <thead> <tr> <th>Name</th> <th>Type</th> <th class="last">Description</th> </tr> </thead> <tbody> <tr> <td class="name"><code>english</code></td> <td class="type"> <span class="param-type">string</span> </td> <td class="description last"><p>Book english title.</p></td> </tr> <tr> <td class="name"><code>japanese</code></td> <td class="type"> <span class="param-type">string</span> </td> <td class="description last"><p>Book japanese title.</p></td> </tr> <tr> <td class="name"><code>pretty</code></td> <td class="type"> <span class="param-type">string</span> </td> <td class="description last"><p>Book short title.</p></td> </tr> </tbody> </table> </td> </tr> <tr> <td class="name"><code>id</code></td> <td class="type"> <span class="param-type">number</span> | <span class="param-type">string</span> </td> <td class="description last"><p>Book ID.</p></td> </tr> <tr> <td class="name"><code>media_id</code></td> <td class="type"> <span class="param-type">number</span> | <span class="param-type">string</span> </td> <td class="description last"><p>Book Media ID.</p></td> </tr> <tr> <td class="name"><code>num_favorites</code></td> <td class="type"> <span class="param-type">number</span> | <span class="param-type">string</span> </td> <td class="description last"><p>Book favours count.</p></td> </tr> <tr> <td class="name"><code>num_pages</code></td> <td class="type"> <span class="param-type">number</span> | <span class="param-type">string</span> </td> <td class="description last"><p>Book pages count.</p></td> </tr> <tr> <td class="name"><code>scanlator</code></td> <td class="type"> <span class="param-type">string</span> </td> <td class="description last"><p>Book scanlator.</p></td> </tr> <tr> <td class="name"><code>uploaded</code></td> <td class="type"> <span class="param-type">number</span> | <span class="param-type">string</span> </td> <td class="description last"><p>Upload UNIX timestamp.</p></td> </tr> <tr> <td class="name"><code>cover</code></td> <td class="type"> <span class="param-type"><a href="global.html#APIImage">APIImage</a></span> </td> <td class="description last"><p>Book cover image.</p></td> </tr> <tr> <td class="name"><code>images</code></td> <td class="type"> <span class="param-type">Array.&lt;<a href="global.html#APIImage">APIImage</a>></span> </td> <td class="description last"><p>Book pages' images.</p></td> </tr> <tr> <td class="name"><code>tags</code></td> <td class="type"> <span class="param-type">Array.&lt;<a href="global.html#APITag">APITag</a>></span> </td> <td class="description last"><p>Book tags.</p></td> </tr> </tbody> </table> <dl class="details"> </dl> </dd> <dt> <h4 class="name" id="APIImage"> APIImage <div class="container-source members"> <code><a href="image.js.html">image.js</a></code>, <code><a href="image.js.html#line7">line 7</a></code> </div> </h4> </dt> <dd> <div class="description"> <p>Image object from API.</p> </div> <!-- <h5>Type:</h5> <ul> <li> <span class="param-type">object</span> </li> </ul> --> <h5 class="subsection-title">Properties:</h5> <table class="props"> <thead> <tr> <th>Name</th> <th>Type</th> <th class="last">Description</th> </tr> </thead> <tbody> <tr> <td class="name"><code>t</code></td> <td class="type"> <span class="param-type">string</span> </td> <td class="description last"><p>Image type.</p></td> </tr> <tr> <td class="name"><code>w</code></td> <td class="type"> <span class="param-type">number</span> | <span class="param-type">string</span> </td> <td class="description last"><p>Image width.</p></td> </tr> <tr> <td class="name"><code>h</code></td> <td class="type"> <span class="param-type">number</span> | <span class="param-type">string</span> </td> <td class="description last"><p>Image height.</p></td> </tr> </tbody> </table> <dl class="details"> </dl> </dd> <dt> <h4 class="name" id="APISearch"> APISearch <div class="container-source members"> <code><a href="search.js.html">search.js</a></code>, <code><a href="search.js.html#line7">line 7</a></code> </div> </h4> </dt> <dd> <div class="description"> <p>Search object from API.</p> </div> <!-- <h5>Type:</h5> <ul> <li> <span class="param-type">object</span> </li> </ul> --> <h5 class="subsection-title">Properties:</h5> <table class="props"> <thead> <tr> <th>Name</th> <th>Type</th> <th class="last">Description</th> </tr> </thead> <tbody> <tr> <td class="name"><code>result</code></td> <td class="type"> <span class="param-type">Array.&lt;<a href="global.html#APIBook">APIBook</a>></span> </td> <td class="description last"><p>Search results.</p></td> </tr> <tr> <td class="name"><code>num_pages</code></td> <td class="type"> <span class="param-type">number</span> | <span class="param-type">string</span> </td> <td class="description last"><p>Number of search pages available.</p></td> </tr> <tr> <td class="name"><code>per_page</code></td> <td class="type"> <span class="param-type">number</span> | <span class="param-type">string</span> </td> <td class="description last"><p>Number of books per page.</p></td> </tr> </tbody> </table> <dl class="details"> </dl> </dd> <dt> <h4 class="name" id="APITag"> APITag <div class="container-source members"> <code><a href="tag.js.html">tag.js</a></code>, <code><a href="tag.js.html#line5">line 5</a></code> </div> </h4> </dt> <dd> <div class="description"> <p>Tag object from API.</p> </div> <!-- <h5>Type:</h5> <ul> <li> <span class="param-type">object</span> </li> </ul> --> <h5 class="subsection-title">Properties:</h5> <table class="props"> <thead> <tr> <th>Name</th> <th>Type</th> <th class="last">Description</th> </tr> </thead> <tbody> <tr> <td class="name"><code>id</code></td> <td class="type"> <span class="param-type">number</span> | <span class="param-type">string</span> </td> <td class="description last"><p>Tag id.</p></td> </tr> <tr> <td class="name"><code>type</code></td> <td class="type"> <span class="param-type">string</span> </td> <td class="description last"><p>Tag type.</p></td> </tr> <tr> <td class="name"><code>name</code></td> <td class="type"> <span class="param-type">string</span> </td> <td class="description last"><p>Tag name.</p></td> </tr> <tr> <td class="name"><code>count</code></td> <td class="type"> <span class="param-type">number</span> | <span class="param-type">string</span> </td> <td class="description last"><p>Tagged books count.</p></td> </tr> <tr> <td class="name"><code>url</code></td> <td class="type"> <span class="param-type">string</span> </td> <td class="description last"><p>Tag URL.</p></td> </tr> </tbody> </table> <dl class="details"> </dl> </dd> <dt> <h4 class="name" id="httpAgent"> httpAgent <div class="container-source members"> <code><a href="options.js.html">options.js</a></code>, <code><a href="options.js.html#line4">line 4</a></code> </div> </h4> </dt> <dd> <div class="description"> <p>Agent-like object or Agent class or it's instance.</p> </div> <!-- <h5>Type:</h5> <ul> <li> <span class="param-type">object</span> | <span class="param-type">Agent</span> | <span class="param-type">SSLAgent</span> </li> </ul> --> <dl class="details"> </dl> </dd> <dt> <h4 class="name" id="nHentaiHosts"> nHentaiHosts <div class="container-source members"> <code><a href="options.js.html">options.js</a></code>, <code><a href="options.js.html#line10">line 10</a></code> </div> </h4> </dt> <dd> <div class="description"> <p>Common nHentai API hosts object.</p> </div> <!-- <h5>Type:</h5> <ul> <li> <span class="param-type">object</span> </li> </ul> --> <h5 class="subsection-title">Properties:</h5> <table class="props"> <thead> <tr> <th>Name</th> <th>Type</th> <th>Attributes</th> <th class="last">Description</th> </tr> </thead> <tbody> <tr> <td class="name"><code>api</code></td> <td class="type"> <span class="param-type">string</span> </td> <td class="attributes"> &lt;nullable><br> </td> <td class="description last"><p>Main API host.</p></td> </tr> <tr> <td class="name"><code>images</code></td> <td class="type"> <span class="param-type">string</span> </td> <td class="attributes"> &lt;nullable><br> </td> <td class="description last"><p>Media API host.</p></td> </tr> <tr> <td class="name"><code>thumbs</code></td> <td class="type"> <span class="param-type">string</span> </td> <td class="attributes"> &lt;nullable><br> </td> <td class="description last"><p>Media thumbnails API host.</p></td> </tr> </tbody> </table> <dl class="details"> </dl> </dd> <dt> <h4 class="name" id="nHentaiOptions"> nHentaiOptions <div class="container-source members"> <code><a href="options.js.html">options.js</a></code>, <code><a href="options.js.html#line19">line 19</a></code> </div> </h4> </dt> <dd> <div class="description"> <p>Common nHentai options object.</p> </div> <!-- <h5>Type:</h5> <ul> <li> <span class="param-type">object</span> </li> </ul> --> <h5 class="subsection-title">Properties:</h5> <table class="props"> <thead> <tr> <th>Name</th> <th>Type</th> <th>Attributes</th> <th class="last">Description</th> </tr> </thead> <tbody> <tr> <td class="name"><code>hosts</code></td> <td class="type"> <span class="param-type"><a href="global.html#nHentaiHosts">nHentaiHosts</a></span> </td> <td class="attributes"> &lt;nullable><br> </td> <td class="description last"><p>Hosts.</p></td> </tr> <tr> <td class="name"><code>ssl</code></td> <td class="type"> <span class="param-type">boolean</span> </td> <td class="attributes"> &lt;nullable><br> </td> <td class="description last"><p>Prefer HTTPS over HTTP.</p></td> </tr> <tr> <td class="name"><code>agent</code></td> <td class="type"> <span class="param-type"><a href="global.html#httpAgent">httpAgent</a></span> </td> <td class="attributes"> &lt;nullable><br> </td> <td class="description last"><p>HTTP(S) agent.</p></td> </tr> </tbody> </table> <dl class="details"> </dl> </dd> </dl> </article> </section> </div> <footer> <img class="logo" src="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAzMCA1Ij48dGV4dCB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHg9IjAiIHk9IjEwMCUiIGZpbGw9IndoaXRlIiB0ZXh0TGVuZ3RoPSIzMCIgZm9udC1zaXplPSI1IiBmb250LWZhbWlseT0ic2Fucy1zZXJpZiIgc3R5bGU9InRleHQtdHJhbnNmb3JtOnVwcGVyY2FzZSI+bmhlbnRhaS1hcGk8L3RleHQ+PC9zdmc+" style="width: 65px; height: 13px"> <div class="footer-text">nhentai-api</div> </footer> <script>prettyPrint();</script> <script src="scripts/jquery.min.js"></script> <script src="scripts/tui-doc.js"></script> <script src="scripts/linenumber.js"></script> <script> var id = '_sub'.replace(/"/g, '_'); var selectedApi = document.getElementById(id); // do not use jquery selector var $selectedApi = $(selectedApi); $selectedApi.removeClass('hidden'); $selectedApi.parent().find('.glyphicon').removeClass('glyphicon-plus').addClass('glyphicon-minus'); showLnbApi(); </script> </body> </html>