fix cdn link
This commit is contained in:
parent
74a45ee48e
commit
6edfd95fba
|
@ -10,7 +10,7 @@ Version 1.x is a major update with no direct dependence on [natural's](https://g
|
||||||
|
|
||||||
> ~~**CAUTION** The WordNet database [wordnet-db](https://github.com/moos/wordnet-db) comprises [155,287 words](https://wordnet.princeton.edu/documentation/wnstats7wn) (3.0 numbers) which uncompress to over **30 MB** of data in several *un*[browserify](https://github.com/substack/node-browserify)-able files. It is *not* meant for the browser environment.~~
|
> ~~**CAUTION** The WordNet database [wordnet-db](https://github.com/moos/wordnet-db) comprises [155,287 words](https://wordnet.princeton.edu/documentation/wnstats7wn) (3.0 numbers) which uncompress to over **30 MB** of data in several *un*[browserify](https://github.com/substack/node-browserify)-able files. It is *not* meant for the browser environment.~~
|
||||||
|
|
||||||
:zap: v2.x can work in browsers -- to try it out `npm i wordpos@beta` or [see it in action](https://moos.github.io/wordpos). See below for usage.
|
:zap: v2.x can work in browsers -- to try it out `npm i wordpos@beta` or [see it in action](https://moos.github.io/wordpos/cdn). See below for usage.
|
||||||
|
|
||||||
## Installation
|
## Installation
|
||||||
|
|
||||||
|
@ -298,7 +298,7 @@ Note that callback receives full arguments (including profile, if enabled), whil
|
||||||
|
|
||||||
v2.0 introduces the capability of running wordpos in the browser. The dictionary files are optimized for fast access (lookup by lemma), but they must be fetched, parsed and loaded into browser memory. The files are loaded on-demand (unless the option `preload: true` is given).
|
v2.0 introduces the capability of running wordpos in the browser. The dictionary files are optimized for fast access (lookup by lemma), but they must be fetched, parsed and loaded into browser memory. The files are loaded on-demand (unless the option `preload: true` is given).
|
||||||
|
|
||||||
The dict files can be served locally or from CDN (see [samples/cdn](samples/cdn/) for code, or [see it in action](https://moos.github.io/wordpos)). Include the following scripts in your `index.html`:
|
The dict files can be served locally or from CDN (see [samples/cdn](samples/cdn/) for code, or [see it in action](https://moos.github.io/wordpos/cdn)). Include the following scripts in your `index.html`:
|
||||||
```html
|
```html
|
||||||
<script src="wordpos/dist/wordpos.min.js"></script>
|
<script src="wordpos/dist/wordpos.min.js"></script>
|
||||||
<script>
|
<script>
|
||||||
|
|
|
@ -29,7 +29,7 @@
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body>
|
<body>
|
||||||
<h1>CDN WordPOS sample</h1>
|
<h1>WordPOS CDN sample</h1>
|
||||||
Open console to see results.
|
Open console to see results.
|
||||||
|
|
||||||
<pre><code> </code></pre>
|
<pre><code> </code></pre>
|
||||||
|
|
|
@ -1,6 +1,9 @@
|
||||||
<!doctype html>
|
<!doctype html>
|
||||||
<html>
|
<html>
|
||||||
<head>
|
<head>
|
||||||
<meta http-equiv="refresh" content="0; URL='cdn'" />
|
<meta-ignore-me http-equiv="refresh" content="0; URL='cdn'" />
|
||||||
</head>
|
</head>
|
||||||
|
<body>
|
||||||
|
See <a href="cdn">WordPOS CDN</a> sample.
|
||||||
|
</body>
|
||||||
</html>
|
</html>
|
Loading…
Reference in New Issue