|
1 | 1 | <!DOCTYPE html>
|
2 | 2 | <html>
|
3 |
| -<head> |
4 |
| - <meta charset="utf-8"> |
5 |
| - <base data-ice="baseUrl" href="../../"> |
6 |
| - <title data-ice="title">src/html-parser.js | typed.js</title> |
7 |
| - <link type="text/css" rel="stylesheet" href="css/style.css"> |
8 |
| - <link type="text/css" rel="stylesheet" href="css/prettify-tomorrow.css"> |
9 |
| - <script src="script/prettify/prettify.js"></script> |
10 |
| - <script src="script/manual.js"></script> |
11 |
| -<meta name="description" content="A JavaScript Typing Animation Library"><meta property="twitter:card" content="summary"><meta property="twitter:title" content="typed.js"><meta property="twitter:description" content="A JavaScript Typing Animation Library"></head> |
12 |
| -<body class="layout-container" data-ice="rootContainer"> |
| 3 | + <head> |
| 4 | + <meta charset="utf-8" /> |
| 5 | + <base data-ice="baseUrl" href="../../" /> |
| 6 | + <title data-ice="title">src/html-parser.js | typed.js</title> |
| 7 | + <link type="text/css" rel="stylesheet" href="css/style.css" /> |
| 8 | + <link type="text/css" rel="stylesheet" href="css/prettify-tomorrow.css" /> |
| 9 | + <script src="script/prettify/prettify.js"></script> |
| 10 | + <script src="script/manual.js"></script> |
| 11 | + <meta name="description" content="A JavaScript Typing Animation Library" /> |
| 12 | + <meta property="twitter:card" content="summary" /> |
| 13 | + <meta property="twitter:title" content="typed.js" /> |
| 14 | + <meta |
| 15 | + property="twitter:description" |
| 16 | + content="A JavaScript Typing Animation Library" |
| 17 | + /> |
| 18 | + </head> |
| 19 | + <body class="layout-container" data-ice="rootContainer"> |
| 20 | + <header> |
| 21 | + <a href="./">Home</a> |
13 | 22 |
|
14 |
| -<header> |
15 |
| - <a href="./">Home</a> |
16 |
| - |
17 |
| - <a href="identifiers.html">Reference</a> |
18 |
| - <a href="source.html">Source</a> |
19 |
| - |
20 |
| - <div class="search-box"> |
21 |
| - <span> |
22 |
| - <img src="./image/search.png"> |
23 |
| - <span class="search-input-edge"></span><input class="search-input"><span class="search-input-edge"></span> |
24 |
| - </span> |
25 |
| - <ul class="search-result"></ul> |
26 |
| - </div> |
27 |
| -<a style="position:relative; top:3px;" href="https://github.com/mattboldt/typed.js"><img width="20px" src="./image/github.png"></a></header> |
| 23 | + <a href="identifiers.html">Reference</a> |
| 24 | + <a href="source.html">Source</a> |
28 | 25 |
|
29 |
| -<nav class="navigation" data-ice="nav"><div> |
30 |
| - <ul> |
31 |
| - |
32 |
| - <li data-ice="doc"><span data-ice="kind" class="kind-class">C</span><span data-ice="name"><span><a href="class/src/html-parser.js~HTMLParser.html">HTMLParser</a></span></span></li> |
33 |
| -<li data-ice="doc"><span data-ice="kind" class="kind-class">C</span><span data-ice="name"><span><a href="class/src/initializer.js~Initializer.html">Initializer</a></span></span></li> |
34 |
| -<li data-ice="doc"><span data-ice="kind" class="kind-class">C</span><span data-ice="name"><span><a href="class/src/typed-using-raf.js~Typed.html">Typed</a></span></span></li> |
35 |
| -<li data-ice="doc"><span data-ice="kind" class="kind-class">C</span><span data-ice="name"><span><a href="class/src/typed.js~Typed.html">Typed</a></span></span></li> |
36 |
| -<li data-ice="doc"><span data-ice="kind" class="kind-variable">V</span><span data-ice="name"><span><a href="variable/index.html#static-variable-defaults">defaults</a></span></span></li> |
37 |
| -<li data-ice="doc"><span data-ice="kind" class="kind-variable">V</span><span data-ice="name"><span><a href="variable/index.html#static-variable-htmlParser">htmlParser</a></span></span></li> |
38 |
| -<li data-ice="doc"><span data-ice="kind" class="kind-variable">V</span><span data-ice="name"><span><a href="variable/index.html#static-variable-initializer">initializer</a></span></span></li> |
39 |
| -</ul> |
40 |
| -</div> |
41 |
| -</nav> |
| 26 | + <div class="search-box"> |
| 27 | + <span> |
| 28 | + <img src="./image/search.png" /> |
| 29 | + <span class="search-input-edge"></span |
| 30 | + ><input class="search-input" /><span class="search-input-edge"></span> |
| 31 | + </span> |
| 32 | + <ul class="search-result"></ul> |
| 33 | + </div> |
| 34 | + <a |
| 35 | + style="position: relative; top: 3px" |
| 36 | + href="https://github.com/mattboldt/typed.js" |
| 37 | + ><img width="20px" src="./image/github.png" |
| 38 | + /></a> |
| 39 | + </header> |
42 | 40 |
|
43 |
| -<div class="content" data-ice="content"><h1 data-ice="title">src/html-parser.js</h1> |
44 |
| -<pre class="source-code line-number raw-source-code"><code class="prettyprint linenums" data-ice="content">/** |
| 41 | + <nav class="navigation" data-ice="nav"> |
| 42 | + <div> |
| 43 | + <ul> |
| 44 | + <li data-ice="doc"> |
| 45 | + <span data-ice="kind" class="kind-class">C</span |
| 46 | + ><span data-ice="name" |
| 47 | + ><span |
| 48 | + ><a href="class/src/html-parser.js~HTMLParser.html" |
| 49 | + >HTMLParser</a |
| 50 | + ></span |
| 51 | + ></span |
| 52 | + > |
| 53 | + </li> |
| 54 | + <li data-ice="doc"> |
| 55 | + <span data-ice="kind" class="kind-class">C</span |
| 56 | + ><span data-ice="name" |
| 57 | + ><span |
| 58 | + ><a href="class/src/initializer.js~Initializer.html" |
| 59 | + >Initializer</a |
| 60 | + ></span |
| 61 | + ></span |
| 62 | + > |
| 63 | + </li> |
| 64 | + <li data-ice="doc"> |
| 65 | + <span data-ice="kind" class="kind-class">C</span |
| 66 | + ><span data-ice="name" |
| 67 | + ><span |
| 68 | + ><a href="class/src/typed-using-raf.js~Typed.html" |
| 69 | + >Typed</a |
| 70 | + ></span |
| 71 | + ></span |
| 72 | + > |
| 73 | + </li> |
| 74 | + <li data-ice="doc"> |
| 75 | + <span data-ice="kind" class="kind-class">C</span |
| 76 | + ><span data-ice="name" |
| 77 | + ><span |
| 78 | + ><a href="class/src/typed.js~Typed.html">Typed</a></span |
| 79 | + ></span |
| 80 | + > |
| 81 | + </li> |
| 82 | + <li data-ice="doc"> |
| 83 | + <span data-ice="kind" class="kind-variable">V</span |
| 84 | + ><span data-ice="name" |
| 85 | + ><span |
| 86 | + ><a href="variable/index.html#static-variable-defaults" |
| 87 | + >defaults</a |
| 88 | + ></span |
| 89 | + ></span |
| 90 | + > |
| 91 | + </li> |
| 92 | + <li data-ice="doc"> |
| 93 | + <span data-ice="kind" class="kind-variable">V</span |
| 94 | + ><span data-ice="name" |
| 95 | + ><span |
| 96 | + ><a href="variable/index.html#static-variable-htmlParser" |
| 97 | + >htmlParser</a |
| 98 | + ></span |
| 99 | + ></span |
| 100 | + > |
| 101 | + </li> |
| 102 | + <li data-ice="doc"> |
| 103 | + <span data-ice="kind" class="kind-variable">V</span |
| 104 | + ><span data-ice="name" |
| 105 | + ><span |
| 106 | + ><a href="variable/index.html#static-variable-initializer" |
| 107 | + >initializer</a |
| 108 | + ></span |
| 109 | + ></span |
| 110 | + > |
| 111 | + </li> |
| 112 | + </ul> |
| 113 | + </div> |
| 114 | + </nav> |
| 115 | + |
| 116 | + <div class="content" data-ice="content"> |
| 117 | + <h1 data-ice="title">src/html-parser.js</h1> |
| 118 | + <pre |
| 119 | + class="source-code line-number raw-source-code" |
| 120 | + ><code class="prettyprint linenums" data-ice="content">/** |
45 | 121 | * TODO: These methods can probably be combined somehow
|
46 | 122 | * Parse HTML tags & HTML Characters
|
47 | 123 | */
|
|
58 | 134 |
|
59 | 135 | typeHtmlChars(curString, curStrPos, self) {
|
60 | 136 | if (self.contentType !== 'html') return curStrPos;
|
61 |
| - const curChar = curString.substr(curStrPos).charAt(0); |
| 137 | + const curChar = curString.substring(curStrPos).charAt(0); |
62 | 138 | if (curChar === '<' || curChar === '&') {
|
63 | 139 | let endTag = '';
|
64 | 140 | if (curChar === '<') {
|
65 | 141 | endTag = '>';
|
66 | 142 | } else {
|
67 | 143 | endTag = ';';
|
68 | 144 | }
|
69 |
| - while (curString.substr(curStrPos + 1).charAt(0) !== endTag) { |
| 145 | + while (curString.substring(curStrPos + 1).charAt(0) !== endTag) { |
70 | 146 | curStrPos++;
|
71 | 147 | if (curStrPos + 1 > curString.length) {
|
72 | 148 | break;
|
|
87 | 163 | */
|
88 | 164 | backSpaceHtmlChars(curString, curStrPos, self) {
|
89 | 165 | if (self.contentType !== 'html') return curStrPos;
|
90 |
| - const curChar = curString.substr(curStrPos).charAt(0); |
| 166 | + const curChar = curString.substring(curStrPos).charAt(0); |
91 | 167 | if (curChar === '>' || curChar === ';') {
|
92 | 168 | let endTag = '';
|
93 | 169 | if (curChar === '>') {
|
94 | 170 | endTag = '<';
|
95 | 171 | } else {
|
96 | 172 | endTag = '&';
|
97 | 173 | }
|
98 |
| - while (curString.substr(curStrPos - 1).charAt(0) !== endTag) { |
| 174 | + while (curString.substring(curStrPos - 1).charAt(0) !== endTag) { |
99 | 175 | curStrPos--;
|
100 | 176 | if (curStrPos < 0) {
|
101 | 177 | break;
|
|
109 | 185 |
|
110 | 186 | export let htmlParser = new HTMLParser();
|
111 | 187 | </code></pre>
|
| 188 | + </div> |
112 | 189 |
|
113 |
| -</div> |
114 |
| - |
115 |
| -<footer class="footer"> |
116 |
| - Generated by <a href="https://esdoc.org">ESDoc<span data-ice="esdocVersion">(1.1.0)</span><img src="./image/esdoc-logo-mini-black.png"></a> |
117 |
| -</footer> |
| 190 | + <footer class="footer"> |
| 191 | + Generated by |
| 192 | + <a href="https://esdoc.org" |
| 193 | + >ESDoc<span data-ice="esdocVersion">(1.1.0)</span |
| 194 | + ><img src="./image/esdoc-logo-mini-black.png" |
| 195 | + /></a> |
| 196 | + </footer> |
118 | 197 |
|
119 |
| -<script src="script/search_index.js"></script> |
120 |
| -<script src="script/search.js"></script> |
121 |
| -<script src="script/pretty-print.js"></script> |
122 |
| -<script src="script/inherited-summary.js"></script> |
123 |
| -<script src="script/test-summary.js"></script> |
124 |
| -<script src="script/inner-link.js"></script> |
125 |
| -<script src="script/patch-for-local.js"></script> |
126 |
| -</body> |
| 198 | + <script src="script/search_index.js"></script> |
| 199 | + <script src="script/search.js"></script> |
| 200 | + <script src="script/pretty-print.js"></script> |
| 201 | + <script src="script/inherited-summary.js"></script> |
| 202 | + <script src="script/test-summary.js"></script> |
| 203 | + <script src="script/inner-link.js"></script> |
| 204 | + <script src="script/patch-for-local.js"></script> |
| 205 | + </body> |
127 | 206 | </html>
|
0 commit comments