Skip to content

Commit 5dfae26

Browse files
committed
bug fixed
1 parent 52bbdfa commit 5dfae26

5 files changed

Lines changed: 5 additions & 5 deletions

File tree

api.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<!DOCTYPE html> <html lang=en> <head> <meta charset=utf-8> <title>embed.js</title> <meta name=description content="A JavaScript plugin that analyses the string and automatically embeds emojis, media, maps, tweets, code and services."> <meta name=viewport content="width=device-width,initial-scale=1"> <link rel="shortcut icon" href=/favicon.e1d38bd4.ico> <link rel=apple-touch-icon href=/apple-touch-icon.9727d3c2.png> <link href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:400,300" rel=stylesheet type=text/css> <!-- Place favicon.ico and apple-touch-icon.png in the root directory --> <link rel=stylesheet href=styles/vendor.e0d30183.css> <link rel=stylesheet href=styles/api.22ede157.css> <link rel=stylesheet href=https://cdnjs.cloudflare.com/ajax/libs/highlight.js/8.9.1/styles/github.min.css> <body> <header> <a href="/"><img src=images/logo.b48fbe99.png alt=""></a> <nav> <ul> <a href="/"> <li>Home</li> </a> <a href=getting_started.html> <li>Getting Started</li> </a> <a href=doc.html> <li>Options</li> </a> <a href=api.html> <li>API</li> </a> <a href=examples.html> <li>Examples</li> </a> </ul> </nav> </header> <div class=left-nav> <ul> <li><b>Default Methods</b></li> <a href=#render> <li>render()</li> </a> <a href=#text> <li>text()</li> </a> <a href=#destroy> <li>destroy()</li> </a> <li><b>ejs Methods</b></li> <a href=#setOptions> <li>.setOptions()</li> </a> <a href=#applyEmbedJS> <li>.applyEmbedJS()</li> </a> <a href=#destroyEmbedJS> <li>.destroyEmbedJS()</li> </a> <a href=#template> <li>.template.serviceName()</li> </a> </ul> </div> <div class=container> <h4>Default Methods</h4> <p>This method of usage should be preferred if you wan't to apply embed.js to a single block or want the result as string.</p> <h5 id=render><b>.render()</b></h5> Renders the result in the element from which the original raw string was taken. <pre><code class=xml>
1+
<!DOCTYPE html> <html lang=en> <head> <meta charset=utf-8> <title>embed.js</title> <meta name=description content="A JavaScript plugin that analyses the string and automatically embeds emojis, media, maps, tweets, code and services."> <meta name=viewport content="width=device-width,initial-scale=1"> <link rel="shortcut icon" href=/favicon.e1d38bd4.ico> <link rel=apple-touch-icon href=/apple-touch-icon.9727d3c2.png> <link href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:400,300" rel=stylesheet type=text/css> <!-- Place favicon.ico and apple-touch-icon.png in the root directory --> <link rel=stylesheet href=styles/vendor.e0d30183.css> <link rel=stylesheet href=styles/api.22ede157.css> <link rel=stylesheet href=https://cdnjs.cloudflare.com/ajax/libs/highlight.js/8.9.1/styles/github.min.css> <body> <header> <a href="/embed.js/"><img src=images/logo.b48fbe99.png srcset="images/logo@2x.f073d551.png 2x" alt=Logo></a> <nav> <ul> <a href="/embed.js/"> <li>Home</li> </a> <a href=getting_started.html> <li>Getting Started</li> </a> <a href=doc.html> <li>Options</li> </a> <a href=api.html> <li>API</li> </a> <a href=examples.html> <li>Examples</li> </a> </ul> </nav> </header> <div class=left-nav> <ul> <li><b>Default Methods</b></li> <a href=#render> <li>render()</li> </a> <a href=#text> <li>text()</li> </a> <a href=#destroy> <li>destroy()</li> </a> <li><b>ejs Methods</b></li> <a href=#setOptions> <li>.setOptions()</li> </a> <a href=#applyEmbedJS> <li>.applyEmbedJS()</li> </a> <a href=#destroyEmbedJS> <li>.destroyEmbedJS()</li> </a> <a href=#template> <li>.template.serviceName()</li> </a> </ul> </div> <div class=container> <h4>Default Methods</h4> <p>This method of usage should be preferred if you wan't to apply embed.js to a single block or want the result as string.</p> <h5 id=render><b>.render()</b></h5> Renders the result in the element from which the original raw string was taken. <pre><code class=xml>
22
&lt;div id="element"&gt;
33
Lotus :smile: eleates vix attrahendams luna est.Advenas mori!Fermiums prarere in cubiculum!Cum cacula cantare,
44
omnes stellaes manifestum azureus, nobilis https://angularjs.org/ acipenseres.Cum orgia mori, omnes rationees

doc.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<!DOCTYPE html> <html lang=en> <head> <meta charset=utf-8> <title>embed.js</title> <meta name=description content="A JavaScript plugin that analyses the string and automatically embeds emojis, media, maps, tweets, code and services."> <meta name=viewport content="width=device-width,initial-scale=1"> <link rel="shortcut icon" href=/favicon.e1d38bd4.ico> <link rel=apple-touch-icon href=/apple-touch-icon.9727d3c2.png> <link href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:400,300" rel=stylesheet type=text/css> <!-- Place favicon.ico and apple-touch-icon.png in the root directory --> <link rel=stylesheet href=styles/vendor.e0d30183.css> <link rel=stylesheet href=styles/doc.b7d01d2d.css> <link rel=stylesheet href=https://cdnjs.cloudflare.com/ajax/libs/highlight.js/8.9.1/styles/github.min.css> <body> <header> <a href="/"><img src=images/logo.b48fbe99.png alt=""></a> <nav> <ul> <a href="/"> <li>Home</li> </a> <a href=getting_started.html> <li>Getting Started</li> </a> <a href=doc.html> <li>Options</li> </a> <a href=api.html> <li>API</li> </a> <a href=examples.html> <li>Examples</li> </a> </ul> </nav> </header> <div class=left-nav> <ul> </ul> </div> <div class=container> <h5>Advanced options</h5> <pre><code>
1+
<!DOCTYPE html> <html lang=en> <head> <meta charset=utf-8> <title>embed.js</title> <meta name=description content="A JavaScript plugin that analyses the string and automatically embeds emojis, media, maps, tweets, code and services."> <meta name=viewport content="width=device-width,initial-scale=1"> <link rel="shortcut icon" href=/favicon.e1d38bd4.ico> <link rel=apple-touch-icon href=/apple-touch-icon.9727d3c2.png> <link href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:400,300" rel=stylesheet type=text/css> <!-- Place favicon.ico and apple-touch-icon.png in the root directory --> <link rel=stylesheet href=styles/vendor.e0d30183.css> <link rel=stylesheet href=styles/doc.b7d01d2d.css> <link rel=stylesheet href=https://cdnjs.cloudflare.com/ajax/libs/highlight.js/8.9.1/styles/github.min.css> <body> <header> <a href="/embed.js/"><img src=images/logo.b48fbe99.png srcset="images/logo@2x.f073d551.png 2x" alt=Logo></a> <nav> <ul> <a href="/embed.js/"> <li>Home</li> </a> <a href=getting_started.html> <li>Getting Started</li> </a> <a href=doc.html> <li>Options</li> </a> <a href=api.html> <li>API</li> </a> <a href=examples.html> <li>Examples</li> </a> </ul> </nav> </header> <div class=left-nav> <ul> </ul> </div> <div class=container> <h5>Advanced options</h5> <pre><code>
22
{
33
marked : false,
44
markedOptions : {},

examples.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
<!DOCTYPE html> <html lang=en> <head> <meta charset=utf-8> <title>embed.js</title> <meta name=description content="A JavaScript plugin that analyses the string and automatically embeds emojis, media, maps, tweets, code and services."> <meta name=viewport content="width=device-width,initial-scale=1"> <link rel="shortcut icon" href=/favicon.e1d38bd4.ico> <link rel=apple-touch-icon href=/apple-touch-icon.9727d3c2.png> <link href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:400,300" rel=stylesheet type=text/css> <!-- Place favicon.ico and apple-touch-icon.png in the root directory --> <link rel=stylesheet href=styles/vendor.e0d30183.css> <link rel=stylesheet href=styles/examples.f56c14a6.css> <body> <header> <a href="/"><img src=images/logo.b48fbe99.png alt=""></a> <nav> <ul> <a href="/"> <li>Home</li> </a> <a href=getting_started.html> <li>Getting Started</li> </a> <a href=doc.html> <li>Options</li> </a> <a href=api.html> <li>API</li> </a> <a href=examples.html> <li>Examples</li> </a> </ul> </nav> </header> <div class=left-nav> <ul> <a href=#basic> <li>Basic Example</li> </a> <a href=#youtube> <li>Youtube video with preview</li> </a> <a href=#markdown> <li>Markdown using marked.js</li> </a> <a href=#twitter> <li>Twitter</li> </a> <a href=#gist> <li>Github gist</li> </a> <a href=#code> <li>Code Highlighting</li> </a> <a href=#flickr> <li>Flickr</li> </a> <a href=#gmap> <li>Google Map</li> </a> <a href=#sound> <li>SoundCloud and Spotify</li> </a> <a href=#video> <li>Basic video</li> </a> <a href=#videojs> <li>video.js support for video</li> </a> <a href=#vine> <li>vine</li> </a> <a href=#codepen> <li>codepen</li> </a> <a href=#inline> <li>Inline embed</li> </a> </ul> </div> <div class=container> <h5 id=basic>Basic Example</h5> <p data-height=250 data-theme-id=21076 data-slug-hash=QjZded data-default-tab=result data-user=ritz078 class=codepen>See the Pen <a href="http://codepen.io/ritz078/pen/QjZded/">embed.js-basic demo</a> by Ritesh Kumar (<a href=http://codepen.io/ritz078>@ritz078</a>) on <a href=http://codepen.io>CodePen</a>.</p> <h5 id=youtube>Youtube video with preview</h5> <p data-height=406 data-theme-id=21076 data-slug-hash=JYmJML data-default-tab=result data-user=ritz078 class=codepen>See the Pen <a href="http://codepen.io/ritz078/pen/JYmJML/">embed.js-youtube with preview</a> by Ritesh Kumar (<a href=http://codepen.io/ritz078>@ritz078</a>) on <a href=http://codepen.io>CodePen</a>.</p> <h5 id=markdown>Markdown Support</h5> <p data-height=900 data-theme-id=21076 data-slug-hash=bVmPrX data-default-tab=result data-user=ritz078 class=codepen>See the Pen <a href="http://codepen.io/ritz078/pen/bVmPrX/">embed.js-Markdown Support</a> by Ritesh Kumar (<a href=http://codepen.io/ritz078>@ritz078</a>) on <a href=http://codepen.io>CodePen</a>.</p> <h5 id=twitter>Twitter support</h5> <p data-height=550 data-theme-id=21076 data-slug-hash=XmLGJe data-default-tab=result data-user=ritz078 class=codepen>See the Pen <a href="http://codepen.io/ritz078/pen/XmLGJe/">embed.js-twitter</a> by Ritesh Kumar (<a href=http://codepen.io/ritz078>@ritz078</a>) on <a href=http://codepen.io>CodePen</a>.</p> <h5 id=gist>Github gist support</h5> <p data-height=350 data-theme-id=21076 data-slug-hash=gaNEYJ data-default-tab=result data-user=ritz078 class=codepen>See the Pen <a href="http://codepen.io/ritz078/pen/gaNEYJ/">embed.js-gist</a> by Ritesh Kumar (<a href=http://codepen.io/ritz078>@ritz078</a>) on <a href=http://codepen.io>CodePen</a>.</p> <h5 id=code>Code highlighting</h5> <p data-height=400 data-theme-id=21076 data-slug-hash=NGZJKq data-default-tab=result data-user=ritz078 class=codepen>See the Pen <a href="http://codepen.io/ritz078/pen/NGZJKq/">embed.js-code highlight</a> by Ritesh Kumar (<a href=http://codepen.io/ritz078>@ritz078</a>) on <a href=http://codepen.io>CodePen</a>.</p> <h5 id=flickr>Flickr</h5> <p data-height=800 data-theme-id=21076 data-slug-hash=rOEPXw data-default-tab=result data-user=ritz078 class=codepen>See the Pen <a href="http://codepen.io/ritz078/pen/rOEPXw/">embed.js-flickr support</a> by Ritesh Kumar (<a href=http://codepen.io/ritz078>@ritz078</a>) on <a href=http://codepen.io>CodePen</a>.</p> <h5 id=gmap>Google Map</h5> <p data-height=800 data-theme-id=21076 data-slug-hash=OyBrgX data-default-tab=result data-user=ritz078 class=codepen>See the Pen <a href="http://codepen.io/ritz078/pen/OyBrgX/">embed.js-Google map</a> by Ritesh Kumar (<a href=http://codepen.io/ritz078>@ritz078</a>) on <a href=http://codepen.io>CodePen</a>.</p> <h5 id=sound>Soundcloud and spotify</h5> <p data-height=500 data-theme-id=21076 data-slug-hash=rOERWY data-default-tab=result data-user=ritz078 class=codepen>See the Pen <a href="http://codepen.io/ritz078/pen/rOERWY/">embed.js-soundcloud and spotify</a> by Ritesh Kumar (<a href=http://codepen.io/ritz078>@ritz078</a>) on <a href=http://codepen.io>CodePen</a>.</p> <h5 id=video>Basic video</h5> <p data-height=750 data-theme-id=21076 data-slug-hash=bVPZgE data-default-tab=result data-user=ritz078 class=codepen>See the Pen <a href="http://codepen.io/ritz078/pen/bVPZgE/">embed.js-mp4 support</a> by Ritesh Kumar (<a href=http://codepen.io/ritz078>@ritz078</a>) on <a href=http://codepen.io>CodePen</a>.</p> <h5 id=videojs>video.js support</h5> <p data-height=750 data-theme-id=21076 data-slug-hash=KdjEWa data-default-tab=result data-user=ritz078 class=codepen>See the Pen <a href="http://codepen.io/ritz078/pen/KdjEWa/">embed.js-video.js </a> by Ritesh Kumar (<a href=http://codepen.io/ritz078>@ritz078</a>) on <a href=http://codepen.io>CodePen</a>.</p> <h5 id=vine>vine</h5> <p data-height=600 data-theme-id=21076 data-slug-hash=WQqmOG data-default-tab=result data-user=ritz078 class=codepen>See the Pen <a href="http://codepen.io/ritz078/pen/WQqmOG/">embed.js-vine</a> by Ritesh Kumar (<a href=http://codepen.io/ritz078>@ritz078</a>) on <a href=http://codepen.io>CodePen</a>.</p> <h5 id=codepen>codepen</h5> <p data-height=700 data-theme-id=21076 data-slug-hash=vNqPZw data-default-tab=result data-user=ritz078 class=codepen>See the Pen <a href="http://codepen.io/ritz078/pen/vNqPZw/">embed.js-codepen</a> by Ritesh Kumar (<a href=http://codepen.io/ritz078>@ritz078</a>) on <a href=http://codepen.io>CodePen</a>.</p> <h5 id=inline>Inline embedding</h5> <p data-height=800 data-theme-id=21076 data-slug-hash=JYQVKg data-default-tab=result data-user=ritz078 class=codepen>See the Pen <a href="http://codepen.io/ritz078/pen/JYQVKg/">embed.js-inline</a> by Ritesh Kumar (<a href=http://codepen.io/ritz078>@ritz078</a>) on <a href=http://codepen.io>CodePen</a>.</p> </div> <script src=//assets.codepen.io/assets/embed/ei.js></script> <script src=scripts/vendor.34ad31c3.js></script> <script src=scripts/examples.7bb03cd2.js></script>
1+
<!DOCTYPE html> <html lang=en> <head> <meta charset=utf-8> <title>embed.js</title> <meta name=description content="A JavaScript plugin that analyses the string and automatically embeds emojis, media, maps, tweets, code and services."> <meta name=viewport content="width=device-width,initial-scale=1"> <link rel="shortcut icon" href=/favicon.e1d38bd4.ico> <link rel=apple-touch-icon href=/apple-touch-icon.9727d3c2.png> <link href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:400,300" rel=stylesheet type=text/css> <!-- Place favicon.ico and apple-touch-icon.png in the root directory --> <link rel=stylesheet href=styles/vendor.e0d30183.css> <link rel=stylesheet href=styles/examples.f56c14a6.css> <body> <header> <a href="/embed.js/"><img src=images/logo.b48fbe99.png srcset="images/logo@2x.f073d551.png 2x" alt=Logo></a> <nav> <ul> <a href="/embed.js/"> <li>Home</li> </a> <a href=getting_started.html> <li>Getting Started</li> </a> <a href=doc.html> <li>Options</li> </a> <a href=api.html> <li>API</li> </a> <a href=examples.html> <li>Examples</li> </a> </ul> </nav> </header> <div class=left-nav> <ul> <a href=#basic> <li>Basic Example</li> </a> <a href=#youtube> <li>Youtube video with preview</li> </a> <a href=#markdown> <li>Markdown using marked.js</li> </a> <a href=#twitter> <li>Twitter</li> </a> <a href=#gist> <li>Github gist</li> </a> <a href=#code> <li>Code Highlighting</li> </a> <a href=#flickr> <li>Flickr</li> </a> <a href=#gmap> <li>Google Map</li> </a> <a href=#sound> <li>SoundCloud and Spotify</li> </a> <a href=#video> <li>Basic video</li> </a> <a href=#videojs> <li>video.js support for video</li> </a> <a href=#vine> <li>vine</li> </a> <a href=#codepen> <li>codepen</li> </a> <a href=#inline> <li>Inline embed</li> </a> </ul> </div> <div class=container> <h5 id=basic>Basic Example</h5> <p data-height=250 data-theme-id=21076 data-slug-hash=QjZded data-default-tab=result data-user=ritz078 class=codepen>See the Pen <a href="http://codepen.io/ritz078/pen/QjZded/">embed.js-basic demo</a> by Ritesh Kumar (<a href=http://codepen.io/ritz078>@ritz078</a>) on <a href=http://codepen.io>CodePen</a>.</p> <h5 id=youtube>Youtube video with preview</h5> <p data-height=406 data-theme-id=21076 data-slug-hash=JYmJML data-default-tab=result data-user=ritz078 class=codepen>See the Pen <a href="http://codepen.io/ritz078/pen/JYmJML/">embed.js-youtube with preview</a> by Ritesh Kumar (<a href=http://codepen.io/ritz078>@ritz078</a>) on <a href=http://codepen.io>CodePen</a>.</p> <h5 id=markdown>Markdown Support</h5> <p data-height=900 data-theme-id=21076 data-slug-hash=bVmPrX data-default-tab=result data-user=ritz078 class=codepen>See the Pen <a href="http://codepen.io/ritz078/pen/bVmPrX/">embed.js-Markdown Support</a> by Ritesh Kumar (<a href=http://codepen.io/ritz078>@ritz078</a>) on <a href=http://codepen.io>CodePen</a>.</p> <h5 id=twitter>Twitter support</h5> <p data-height=550 data-theme-id=21076 data-slug-hash=XmLGJe data-default-tab=result data-user=ritz078 class=codepen>See the Pen <a href="http://codepen.io/ritz078/pen/XmLGJe/">embed.js-twitter</a> by Ritesh Kumar (<a href=http://codepen.io/ritz078>@ritz078</a>) on <a href=http://codepen.io>CodePen</a>.</p> <h5 id=gist>Github gist support</h5> <p data-height=350 data-theme-id=21076 data-slug-hash=gaNEYJ data-default-tab=result data-user=ritz078 class=codepen>See the Pen <a href="http://codepen.io/ritz078/pen/gaNEYJ/">embed.js-gist</a> by Ritesh Kumar (<a href=http://codepen.io/ritz078>@ritz078</a>) on <a href=http://codepen.io>CodePen</a>.</p> <h5 id=code>Code highlighting</h5> <p data-height=400 data-theme-id=21076 data-slug-hash=NGZJKq data-default-tab=result data-user=ritz078 class=codepen>See the Pen <a href="http://codepen.io/ritz078/pen/NGZJKq/">embed.js-code highlight</a> by Ritesh Kumar (<a href=http://codepen.io/ritz078>@ritz078</a>) on <a href=http://codepen.io>CodePen</a>.</p> <h5 id=flickr>Flickr</h5> <p data-height=800 data-theme-id=21076 data-slug-hash=rOEPXw data-default-tab=result data-user=ritz078 class=codepen>See the Pen <a href="http://codepen.io/ritz078/pen/rOEPXw/">embed.js-flickr support</a> by Ritesh Kumar (<a href=http://codepen.io/ritz078>@ritz078</a>) on <a href=http://codepen.io>CodePen</a>.</p> <h5 id=gmap>Google Map</h5> <p data-height=800 data-theme-id=21076 data-slug-hash=OyBrgX data-default-tab=result data-user=ritz078 class=codepen>See the Pen <a href="http://codepen.io/ritz078/pen/OyBrgX/">embed.js-Google map</a> by Ritesh Kumar (<a href=http://codepen.io/ritz078>@ritz078</a>) on <a href=http://codepen.io>CodePen</a>.</p> <h5 id=sound>Soundcloud and spotify</h5> <p data-height=500 data-theme-id=21076 data-slug-hash=rOERWY data-default-tab=result data-user=ritz078 class=codepen>See the Pen <a href="http://codepen.io/ritz078/pen/rOERWY/">embed.js-soundcloud and spotify</a> by Ritesh Kumar (<a href=http://codepen.io/ritz078>@ritz078</a>) on <a href=http://codepen.io>CodePen</a>.</p> <h5 id=video>Basic video</h5> <p data-height=750 data-theme-id=21076 data-slug-hash=bVPZgE data-default-tab=result data-user=ritz078 class=codepen>See the Pen <a href="http://codepen.io/ritz078/pen/bVPZgE/">embed.js-mp4 support</a> by Ritesh Kumar (<a href=http://codepen.io/ritz078>@ritz078</a>) on <a href=http://codepen.io>CodePen</a>.</p> <h5 id=videojs>video.js support</h5> <p data-height=750 data-theme-id=21076 data-slug-hash=KdjEWa data-default-tab=result data-user=ritz078 class=codepen>See the Pen <a href="http://codepen.io/ritz078/pen/KdjEWa/">embed.js-video.js </a> by Ritesh Kumar (<a href=http://codepen.io/ritz078>@ritz078</a>) on <a href=http://codepen.io>CodePen</a>.</p> <h5 id=vine>vine</h5> <p data-height=600 data-theme-id=21076 data-slug-hash=WQqmOG data-default-tab=result data-user=ritz078 class=codepen>See the Pen <a href="http://codepen.io/ritz078/pen/WQqmOG/">embed.js-vine</a> by Ritesh Kumar (<a href=http://codepen.io/ritz078>@ritz078</a>) on <a href=http://codepen.io>CodePen</a>.</p> <h5 id=codepen>codepen</h5> <p data-height=700 data-theme-id=21076 data-slug-hash=vNqPZw data-default-tab=result data-user=ritz078 class=codepen>See the Pen <a href="http://codepen.io/ritz078/pen/vNqPZw/">embed.js-codepen</a> by Ritesh Kumar (<a href=http://codepen.io/ritz078>@ritz078</a>) on <a href=http://codepen.io>CodePen</a>.</p> <h5 id=inline>Inline embedding</h5> <p data-height=800 data-theme-id=21076 data-slug-hash=JYQVKg data-default-tab=result data-user=ritz078 class=codepen>See the Pen <a href="http://codepen.io/ritz078/pen/JYQVKg/">embed.js-inline</a> by Ritesh Kumar (<a href=http://codepen.io/ritz078>@ritz078</a>) on <a href=http://codepen.io>CodePen</a>.</p> </div> <script src=//assets.codepen.io/assets/embed/ei.js></script> <script src=scripts/vendor.34ad31c3.js></script> <script src=scripts/examples.7bb03cd2.js></script>

0 commit comments

Comments
 (0)