2 lines
No EOL
1.5 KiB
JavaScript
Vendored
2 lines
No EOL
1.5 KiB
JavaScript
Vendored
!function(t){var e={};function r(n){if(e[n])return e[n].exports;var o=e[n]={i:n,l:!1,exports:{}};return t[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}r.m=t,r.c=e,r.d=function(t,e,n){r.o(t,e)||Object.defineProperty(t,e,{configurable:!1,enumerable:!0,get:n})},r.r=function(t){Object.defineProperty(t,"__esModule",{value:!0})},r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="",r(r.s=8)}({8:function(t,e,r){"use strict";var n=/watch\?v=([A-Za-z0-9\-_]+)\b/,o=/https:\/\/play\.spotify\.com\/(.*)\b/,a=document.querySelectorAll(".e-content"),u=!0,c=!1,i=void 0;try{for(var l,s=a[Symbol.iterator]();!(u=(l=s.next()).done);u=!0){var d=l.value,f=d.textContent.match(n);if(f){var p=document.createElement("div");p.classList.add("container");var m=document.createElement("iframe");m.classList.add("youtube"),m.setAttribute("src","https://www.youtube.com/embed/"+f[1]),m.setAttribute("frameborder",0),m.setAttribute("allowfullscreen","true"),p.appendChild(m),d.appendChild(p)}var b=d.textContent.match(o);if(b){var y=b[1].replace("/",":"),v=document.createElement("iframe");v.classList.add("spotify"),v.setAttribute("src","https://embed.spotify.com/?uri=spotify:"+y),v.setAttribute("frameborder",0),v.setAttribute("allowtransparency","true"),d.appendChild(v)}}}catch(t){c=!0,i=t}finally{try{u||null==s.return||s.return()}finally{if(c)throw i}}}});
|
|
//# sourceMappingURL=links.js.map
|