Skip to content

Commit 6575615

Browse files
committed
updated
1 parent e718683 commit 6575615

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

doc.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
customEmoji : [],
1313
fontIcons : true,
1414
customFontIcons : [],
15-
highlightCode : true,
15+
highlightCode : false,
1616
videoJS : false,
1717
videojsOptions : {
1818
fluid : true,
@@ -22,7 +22,7 @@
2222
mapOptions : {
2323
mode : 'place'
2424
},
25-
tweetsEmbed : true,
25+
tweetsEmbed : false,
2626
tweetOptions : {
2727
maxWidth : 550,
2828
hideMedia : false,
@@ -74,12 +74,12 @@
7474
}, {
7575
'text': ' :d ',
7676
'code': '&#xe608'
77-
}]</code></pre> </p> <h5 id=highlightCode>highlightCode</h5> <span><b>Type</b> : Boolean</span> <br> <span><b>Default</b> : <code>true</code></span> <p>Set to true if you want to convert code blocks into formatted code. It uses <a href="https://highlightjs.org/">highlight.js</a> for code highlighting. Make sure highlight.js is loaded before embed.js if this option is set to <code>true</code> or else set this to <code>false</code> The format that it supports are single backticks and code blocks: <pre><code>```[optional-language-name]
77+
}]</code></pre> </p> <h5 id=highlightCode>highlightCode</h5> <span><b>Type</b> : Boolean</span> <br> <span><b>Default</b> : <code>false</code></span> <p>Set to true if you want to convert code blocks into formatted code. It uses <a href="https://highlightjs.org/">highlight.js</a> for code highlighting. Make sure highlight.js is loaded before embed.js if this option is set to <code>true</code>. The format that it supports are single backticks and code blocks: <pre><code>```[optional-language-name]
7878
//code here
7979
```</code></pre> </p>. <h5 id=videoJS>videoJS</h5> <span><b>Type</b> : Boolean</span> <br> <span><b>Default</b> : <code>false</code></span> <p>Set to <code>true</code> if you want to enable <a href="http://videojs.com/" target=_blank>video.js</a> support for audio and video files. Make sure video.js is loaded before the plugin else the plugin will throw an error.</p> <h5 id=videojsOptions>videojsOptions</h5> <span><b>Type</b> : Object</span> <br> <span><b>Default</b> : <code>{}</code></span> <p>This object is the video.js <a href=https://github.com/videojs/video.js/blob/master/docs/guides/options.md>options</a>. You can pass any option supported by video.js. Currently it will be applied to both audio and video files. Eg : <pre><code>videojsOptions : {
8080
fluid : true,
8181
preload : 'metadata'
82-
}</code></pre> </p> <h5 id=locationEmbed>locationEmbed</h5> <span><b>Type</b> : Boolean</span> <br> <span><b>Default</b> : <code>true</code></span> <p>Set whether you want to embed google maps. The format to follow for embedding google map with a location is <code>@(locationName)</code>. <code>@()</code> will be automatically removed by the plugin.</p> <h5 id=mapOptions>mapOptions</h5> <span><b>Type</b> : object</span> <br> <div class=obj> <h4>mode</h4> <b>Type</b> : string <br> <b>default</b> : <code>'place'</code> <p>Can be any of <code>'place'</code>, <code>'view'</code> or <code>'streetview'</code></p>. </div> <h5 id=googleAuthKey>googleAuthKey</h5> <span><b>Type</b> : string</span> <br> <span><b>Default</b> : <code>''</code></span> <p>The google dev auth key needed if the user is using youtube embedding or google map embedding feature of the plugin.</p> <h5 id=tweetsEmbed>tweetsEmbed</h5> <b>Type</b> : Boolean <br> <b>Default</b> : <code>true</code> <p>Set to <code>true</code> if you want to embed tweets. Make sure you load <a href=http://platform.twitter.com/widgets.js target=_blank>http://platform.twitter.com/widgets.js</a> if this option is set to <code>true</code> else the plugin will throw an error.</p> <h5 id=tweetOptions>tweetOptions</h5> <b>Type</b> : object <br> <b>Default</b> : <pre><code>{
82+
}</code></pre> </p> <h5 id=locationEmbed>locationEmbed</h5> <span><b>Type</b> : Boolean</span> <br> <span><b>Default</b> : <code>true</code></span> <p>Set whether you want to embed google maps. The format to follow for embedding google map with a location is <code>@(locationName)</code>. <code>@()</code> will be automatically removed by the plugin.</p> <h5 id=mapOptions>mapOptions</h5> <span><b>Type</b> : object</span> <br> <div class=obj> <h4>mode</h4> <b>Type</b> : string <br> <b>default</b> : <code>'place'</code> <p>Can be any of <code>'place'</code>, <code>'view'</code> or <code>'streetview'</code></p>. </div> <h5 id=googleAuthKey>googleAuthKey</h5> <span><b>Type</b> : string</span> <br> <span><b>Default</b> : <code>''</code></span> <p>The google dev auth key needed if the user is using youtube embedding or google map embedding feature of the plugin.</p> <h5 id=tweetsEmbed>tweetsEmbed</h5> <b>Type</b> : Boolean <br> <b>Default</b> : <code>false</code> <p>Set to <code>true</code> if you want to embed tweets. Make sure you load <a href=http://platform.twitter.com/widgets.js target=_blank>http://platform.twitter.com/widgets.js</a> if this option is set to <code>true</code> else the plugin will throw an error.</p> <h5 id=tweetOptions>tweetOptions</h5> <b>Type</b> : object <br> <b>Default</b> : <pre><code>{
8383
maxWidth : 550,
8484
hideMedia : false,
8585
hideThread : false,

index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<!DOCTYPE html> <html> <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/main.6ccaab25.css> <body> <!--[if lt IE 10]>
22
<p class="browsehappy">You are using an <strong>outdated</strong> browser. Please <a href="http://browsehappy.com/">upgrade
33
your browser</a> to improve your experience.</p>
4-
<![endif]--> <header> <a href="/embed.js/" id=logo><img src=images/logo.439ed97e.png srcset="images/logo@2x.5ec020f5.png 2x" alt=""></a> <nav> <a href=#sidr class=nav><i class="fa fa-bars"></i></a> <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> <a href=https://github.com/ritz078/embed.js> <li><i class="fa fa-github"></i></li> </a> </ul> </nav> <div id=sidr-right> <!-- Your content --> <ul> <li><a href="/embed.js/">Home</a></li> <li><a href=getting_started.html>Getting Started</a></li> <li><a href=doc.html>Options</a></li> <li><a href=api.html>API</a></li> <li><a href=examples.html>Examples</a></li> <li><a href=https://github.com/ritz078/embed.js>Github</a></li> </ul> </div> </header> <div class=banner> <div class=banner-details> <span class=title>A pure JavaScript plugin to insert or embed <br><span class=typed>MP3 SONGS</span></span> <a href=https://github.com/ritz078/embed.js/archive/master.zip> <button class="button-primary download">Download v3.0.0</button> </a> <div class=social-wrapper> <div class=social> <div class=twitter> <a href="https://twitter.com/intent/tweet?text=embed.js+%7C+A+JS+plugin+to+embed+emojis%2C+media%2C+maps%2C+tweets%2C+code%2C+services+and+parse+markdown+http%3A%2F%2Fbit.ly%2F1NIvT8A&url='http%3A%2F%2Fbit.ly%2F1NIvT8A'&hashtags=JavaScript" target=_blank> <button class=twitter-btn><i class="fa fa-twitter"></i>Tweet</button> </a> </div> <div class=star> <iframe src="https://ghbtns.com/github-btn.html?user=ritz078&repo=embed.js&type=star&count=true&size=large" frameborder=0 scrolling=0 width=170px height=20px></iframe> </div> </div> </div> </div> <img src=images/Browser@0.5x.0c11c3df.png data-lazy=images/Browser.55637fd7.png data-lazy-retina=images/Browser@2x.8a3a7e77.png class=browser alt=""> </div> <!--<div class="browser-wrapper">--> <!--&lt;!&ndash;<img src="images/Browser.55637fd7.png" class="browser" srcset="images/Browser.png 1x, images/Browser@2x.png 2x" alt="">&ndash;&gt;--> <!--</div>--> <div class=container> <h5>Features</h5> <div class="row features"> <div class="six columns"> <div class=column-item> <div class="icon emoji"></div> <div class=text> <div class=title>Emoji & Font icons</div> Support for all emojis and font icons is present. You can even add your own emoji or customize the font smileys. </div> </div> <div class=column-item> <div class="icon twitter"> </div> <div class=text> <div class=title>Twitter</div> You can embed tweets by enabling the option and pass all the configuration options supported by twitter oEmbed API. </div> </div> <div class=column-item> <div class="icon github"> </div> <div class=text> <div class=title>Github Gists</div> Github Gists can be embedded without requiring any extra scripts. </div> </div> <div class=column-item> <div class="icon ted"> </div> <div class=text> <div class=title>Video Sharing Services</div> Services like YOUTUBE, VIMEO, VINE, USTREAM, DAILYMOTION and LIVELEAK are supported. </div> </div> <div class=column-item> <div class="icon codepen"> </div> <div class=text> <div class=title>Online Code Editors</div> Online Code Editors like CODEPEN, JSFIDDLE, JSBIN, IDEONE and PLUNKER are supported. </div> </div> <div class=column-item> <div class="icon instagram"> </div> <div class=text> <div class=title>Photo Sharing</div> Photo Sharing services like FLICKR and INSTAGRAM are supported currently. </div> </div> <div class=column-item> <div class="icon youtube"> </div> <div class=text> <div class=title>Video Details</div> The preview of videos with video description is supported for VIMEO and YOUTUBE videos. </div> </div> </div> <div class="six columns"> <div class=column-item> <div class="icon soundcloud"> </div> <div class=text> <div class=title>Music sharing</div> Music sharing services like SPOTIFY and SOUNDCLOUD are supported. </div> </div> <div class=column-item> <div class="icon gmap"> </div> <div class=text> <div class=title>Google Map</div> You can embed google maps pointing to a location in all possible configurations like streetview, place etc. </div> </div> <div class=column-item> <div class="icon markdown"> </div> <div class=text> <div class=title>Markdown</div> This plugin supports markdown parsing using the power of marked.js . </div> </div> <div class=column-item> <div class="icon url"> </div> <div class=text> <div class=title>URL</div> converts urls into HTML anchor tags. It also recognizes hundreds of shortened url like bit.ly, buff.ly etc. </div> </div> <div class=column-item> <div class="icon image"> </div> <div class=text> <div class=title>Image</div> Your simple youtube/vimeo links are automatically converted into embedded video with all the video details. </div> </div> <div class=column-item> <div class="icon media"> </div> <div class=text> <div class=title>Audio and Video Files</div> Your simple youtube/vimeo links are automatically converted into embedded video with all the video details. </div> </div> <div class=column-item> <div class="icon code"> </div> <div class=text> <div class=title>Code Highlighting</div> Get inline code syntax highlighting using the code's markdown syntax with customizable themes. </div> </div> </div> </div> </div> <footer> <span>Copyright &copy; 2015 &nbsp; | &nbsp; Made by <a href=https://twitter.com/ritz078 target=_blank>Ritesh Kumar</a></span> </footer> <script src=scripts/vendor.34ad31c3.js></script> <script src=scripts/main.5dc7ae3f.js></script> <!-- Google Analytics: change UA-XXXXX-X to be your site's ID. --> <script>(function (b, o, i, l, e, r) {
4+
<![endif]--> <header> <a href="/embed.js/" id=logo><img src=images/logo.439ed97e.png srcset="images/logo@2x.5ec020f5.png 2x" alt=""></a> <nav> <a href=#sidr class=nav><i class="fa fa-bars"></i></a> <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> <a href=https://github.com/ritz078/embed.js> <li><i class="fa fa-github"></i></li> </a> </ul> </nav> <div id=sidr-right> <!-- Your content --> <ul> <li><a href="/embed.js/">Home</a></li> <li><a href=getting_started.html>Getting Started</a></li> <li><a href=doc.html>Options</a></li> <li><a href=api.html>API</a></li> <li><a href=examples.html>Examples</a></li> <li><a href=https://github.com/ritz078/embed.js>Github</a></li> </ul> </div> </header> <div class=banner> <div class=banner-details> <span class=title>A pure JavaScript plugin to insert or embed <br><span class=typed>MP3 SONGS</span></span> <a href=https://github.com/ritz078/embed.js/archive/master.zip> <button class="button-primary download">Download v3.3.2</button> </a> <div class=social-wrapper> <div class=social> <div class=twitter> <a href="https://twitter.com/intent/tweet?text=embed.js+%7C+A+JS+plugin+to+embed+emojis%2C+media%2C+maps%2C+tweets%2C+code%2C+services+and+parse+markdown+http%3A%2F%2Fbit.ly%2F1NIvT8A&url='http%3A%2F%2Fbit.ly%2F1NIvT8A'&hashtags=JavaScript" target=_blank> <button class=twitter-btn><i class="fa fa-twitter"></i>Tweet</button> </a> </div> <div class=star> <iframe src="https://ghbtns.com/github-btn.html?user=ritz078&repo=embed.js&type=star&count=true&size=large" frameborder=0 scrolling=0 width=170px height=20px></iframe> </div> </div> </div> </div> <img src=images/Browser@0.5x.0c11c3df.png data-lazy=images/Browser.55637fd7.png data-lazy-retina=images/Browser@2x.8a3a7e77.png class=browser alt=""> </div> <!--<div class="browser-wrapper">--> <!--&lt;!&ndash;<img src="images/Browser.55637fd7.png" class="browser" srcset="images/Browser.png 1x, images/Browser@2x.png 2x" alt="">&ndash;&gt;--> <!--</div>--> <div class=container> <h5>Features</h5> <div class="row features"> <div class="six columns"> <div class=column-item> <div class="icon emoji"></div> <div class=text> <div class=title>Emoji & Font icons</div> Support for all emojis and font icons is present. You can even add your own emoji or customize the font smileys. </div> </div> <div class=column-item> <div class="icon twitter"> </div> <div class=text> <div class=title>Twitter</div> You can embed tweets by enabling the option and pass all the configuration options supported by twitter oEmbed API. </div> </div> <div class=column-item> <div class="icon github"> </div> <div class=text> <div class=title>Github Gists</div> Github Gists can be embedded without requiring any extra scripts. </div> </div> <div class=column-item> <div class="icon ted"> </div> <div class=text> <div class=title>Video Sharing Services</div> Services like YOUTUBE, VIMEO, VINE, USTREAM, DAILYMOTION and LIVELEAK are supported. </div> </div> <div class=column-item> <div class="icon codepen"> </div> <div class=text> <div class=title>Online Code Editors</div> Online Code Editors like CODEPEN, JSFIDDLE, JSBIN, IDEONE and PLUNKER are supported. </div> </div> <div class=column-item> <div class="icon instagram"> </div> <div class=text> <div class=title>Photo Sharing</div> Photo Sharing services like FLICKR and INSTAGRAM are supported currently. </div> </div> <div class=column-item> <div class="icon youtube"> </div> <div class=text> <div class=title>Video Details</div> The preview of videos with video description is supported for VIMEO and YOUTUBE videos. </div> </div> </div> <div class="six columns"> <div class=column-item> <div class="icon soundcloud"> </div> <div class=text> <div class=title>Music sharing</div> Music sharing services like SPOTIFY and SOUNDCLOUD are supported. </div> </div> <div class=column-item> <div class="icon gmap"> </div> <div class=text> <div class=title>Google Map</div> You can embed google maps pointing to a location in all possible configurations like streetview, place etc. </div> </div> <div class=column-item> <div class="icon markdown"> </div> <div class=text> <div class=title>Markdown</div> This plugin supports markdown parsing using the power of marked.js . </div> </div> <div class=column-item> <div class="icon url"> </div> <div class=text> <div class=title>URL</div> converts urls into HTML anchor tags. It also recognizes hundreds of shortened url like bit.ly, buff.ly etc. </div> </div> <div class=column-item> <div class="icon image"> </div> <div class=text> <div class=title>Image</div> Your simple youtube/vimeo links are automatically converted into embedded video with all the video details. </div> </div> <div class=column-item> <div class="icon media"> </div> <div class=text> <div class=title>Audio and Video Files</div> Your simple youtube/vimeo links are automatically converted into embedded video with all the video details. </div> </div> <div class=column-item> <div class="icon code"> </div> <div class=text> <div class=title>Code Highlighting</div> Get inline code syntax highlighting using the code's markdown syntax with customizable themes. </div> </div> </div> </div> </div> <footer> <span>Copyright &copy; 2015 &nbsp; | &nbsp; Made by <a href=https://twitter.com/ritz078 target=_blank>Ritesh Kumar</a></span> </footer> <script src=scripts/vendor.34ad31c3.js></script> <script src=scripts/main.5dc7ae3f.js></script> <!-- Google Analytics: change UA-XXXXX-X to be your site's ID. --> <script>(function (b, o, i, l, e, r) {
55
b.GoogleAnalyticsObject = l;
66
b[l] || (b[l] =
77
function () {

0 commit comments

Comments
 (0)