JSFiddle - React, Tailwind, and code Playground

by Ken Z

HTML

<embed type="application/x-shockwave-flash" src="http://www.bleachget.com/jwplayer/player.swf" width="<script>document.write(getParameterByName('width'));</script>" height="<script>document.write(getParameterByName('height'));</script>" style="undefined" id="mpl" name="mpl" quality="high" allowfullscreen="true" allowscriptaccess="always" wmode="opaque" flashvars="autostart=&amp;stretching=exactfit&amp;type=video&amp;skin=http://www.bleachget.com/jwplayer/nemesis1.zip&amp;file=http://www.animefun.com/dl/googDev.php?url=/&amp;plugins=timeslidertooltipplugin-2&amp;yume.site=http://plg5.yumenetworks.com&amp;yume.domain=&amp;yume.positions=pre,mid,post&amp;yume.targeting=pre&amp;yume.start_time=1&amp;yume.dynamic_message=Your video will begin in XX Seconds&amp;yume.imu=medrect" />

JavaScript

function getParameterByName(name) {
    name = name.replace(/[\[]/, "\\[").replace(/[\]]/, "\\]");
    var regex = new RegExp("[\\?&]" + name + "=([^&#]*)"),
        results = regex.exec(location.search);
    return results == null ? "" : decodeURIComponent(results[1].replace(/\+/g, " "));
}