diff --git a/botanjs/src/Astro/Blog/AstroEdit/Visualizer/Snippet/Video.js b/botanjs/src/Astro/Blog/AstroEdit/Visualizer/Snippet/Video.js index f14fcbb..58781ab 100644 --- a/botanjs/src/Astro/Blog/AstroEdit/Visualizer/Snippet/Video.js +++ b/botanjs/src/Astro/Blog/AstroEdit/Visualizer/Snippet/Video.js @@ -13,13 +13,15 @@ /** @type {Components.MessageBox} */ var MessageBox = __import( "Components.MessageBox" ); + var getData = __import( "System.Net.getData" ); + var video = function (insertSnippet, snippetWrap, createContext, override) { var temp, i, j , getVimeoThumbnail = function (vtag) { - getData("https://vimeo.com/api/oembed.json?url=https%3A//vimeo.com/" + vtag.getAttribute("data-value"), setThumbnail.bind(vtag), noThumb.bind(vtag)); + getData("//vimeo.com/api/oembed.json?url=https%3A//vimeo.com/" + vtag.getAttribute("data-value"), setThumbnail.bind(vtag), noThumb.bind(vtag)); } , noThumb = function () @@ -92,7 +94,7 @@ , new DataKey("type", i) , new IKey("style" , "width: 640px; height: 390px;" - + ( (i[0] == "v") ? "" : ("background: black url(https://img.youtube.com/vi/" + v + "/hqdefault.jpg) no-repeat center center;") ) + + ( (i[0] == "v") ? "" : ("background: black url(//img.youtube.com/vi/" + v + "/hqdefault.jpg) no-repeat center center;") ) ) ] );