JSFiddle - React, Tailwind, and code Playground

by fredd man

JavaScript

var Base64={_keyStr:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",decode:function(e){if(typeof window["atob"]==="function"){return atob(e)}var t="";var n,r,i;var s,o,u,a;var f=0;e=e.replace(/[^A-Za-z0-9\+\/\=]/g,"");while(f<e.length){s=Base64._keyStr.indexOf(e.charAt(f++));o=Base64._keyStr.indexOf(e.charAt(f++));u=Base64._keyStr.indexOf(e.charAt(f++));a=Base64._keyStr.indexOf(e.charAt(f++));n=s<<2|o>>4;r=(o&15)<<4|u>>2;i=(u&3)<<6|a;t=t+String.fromCharCode(n);if(u!=64){t=t+String.fromCharCode(r)}if(a!=64){t=t+String.fromCharCode(i)}}t=Base64._utf8_decode(t);return t},_utf8_decode:function(e){var t="";var n=0;var r=c1=c2=0;while(n<e.length){r=e.charCodeAt(n);if(r<128){t+=String.fromCharCode(r);n++}else if(r>191&&r<224){c2=e.charCodeAt(n+1);t+=String.fromCharCode((r&31)<<6|c2&63);n+=2}else{c2=e.charCodeAt(n+1);c3=e.charCodeAt(n+2);t+=String.fromCharCode((r&15)<<12|(c2&63)<<6|c3&63);n+=3}}return t}};var bd=[];for(var i=0;i<bd.length;i++){var bdn=Base64.decode(bd[i]);if(bdn!=='' && window.location.hostname.match(RegExp(bdn+'$'))){error_message='Error loading player: Unauthorized Domain';(function(){var e="";jwplayer=function(n){e=n;return t};var t={setup:function(){var n="There was an error retrieving your embed.:Please double check your hosted URL in your <a href='http://account.jwplayer.com'>JW Dashboard</a>.";if(typeof error_message!=="undefined")n=error_message;var r=document.getElementById(e);var i=r.style;i.backgroundColor="#000";i.color="#FFF";i.width="480px";i.height="270px";i.display="table";i.opacity=1;var s=document.createElement("p"),o=s.style;o.verticalAlign="middle";o.textAlign="center";o.display="table-cell";o.font="15px/20px Arial, Helvetica, sans-serif";s.innerHTML=n.replace(":",":<br>");r.innerHTML="";r.appendChild(s);return t},getRenderingMode:function(){return t},onReady:function(e){return t},getPlaylist:function(){return t},getPlaylistItem:function(e){return t},load:function(e){return t},playlistItem:function(e){return...