JSFiddle - React, Tailwind, and code Playground

by hyperthalamus

HTML

<script type="text/javascript" src="http://serve.a-widget.com/kickFlash/scripts/swfobject2.js?2"></script>
<script type="text/javascript" src="http://player.multicastmedia.com/jsapi/commonFunctions.js"></script>
<!-- Put this <div> anywhere in the <body> of your page where you want the widget to show up. -->
<div id="altContentDiv_r7w0p80m"></div>
<div id="controlPanel">
  <button id="play">Play Video</button>
  <button id="pause">Pause Video</button>
  <button id="bu4z9970">802.11ac Gigabit Wi-Fi Fact vs. Fiction</button>
</div>

JavaScript

//This is the standard mediasuite inline javascript, I'm pretty printing it here so you can more easily identify where I'm making changes

var categoryId = KitCloudAPI.parseQueryStringArray(Array("categoryId", "catid"));
var video_uuid = KitCloudAPI.parseQueryString("video_uuid");
(function () {
	var flashvars = {
		mediaSuiteURL : "http%3A//player.multicastmedia.com/ws/get_vod_player_info/p_r7w0p80m/api_f4d84551-2e85-103a-a1ba-00e08655b9fc/apiv_3.5/gft_0/r7w0p80m.xml",
		autoPlay : "true",
		revision : "1",
		scaleMODE : "letterbox",
		width : "850",
		height : "385",
		getEmbed : "http%3A//mediasuite.multicastmedia.com/ws/get_appstudio_embed/v1/vodproject/project_uuid/r7w0p80m.xml",
		src : "http%3A//api.multicastmedia.com/templates/AppStudio/CustomPlayer/4/4/4451/na2g610x/na2g610x.json",
		analyticsConfigURL : "http%3A//player.multicastmedia.com/templates/MediaAnalytics/MediaSuiteProdOnDemand.xml",
		video_uuid : video_uuid,
		categoryId : categoryId,
        loadedJSCallback : "onPlayerLoaded"
	},
	params = {
		movie : "http%3A//appassets.kickstatic.com/compiled/mediasuite_4451/AppShell_ra76on9i.swf?timestamp=1358354767690",
		pluginspage : "http%3A//www.adobe.com/go/getflashplayer",
		align : "middle",
		allowscriptAccess : "always",
		quality : "high",
		allowFullScreen : "true",
		wmode : "transparent",
		bgcolor : "#FFFFFF",
		menu : "false"
	},
	expressInstallURL = "http://serve.a-widget.com/kickFlash/scripts/expressInstall2.swf?2",
	swfURL = "http://appassets.kickstatic.com/compiled/mediasuite_4451/AppShell_ra76on9i.swf?timestamp=1358354767690",
	attributes = {
		id : "kickWidget_mediasuite_r7w0p80m",
		name : "kickWidget_mediasuite_r7w0p80m"
	},
	callback = function (e) {
		if (e.success == false) {
			document.getElementById("altContentDiv_r7w0p80m").innerHTML = '<iframe...