JSFiddle - React, Tailwind, and code Playground

by fredd man

HTML

<!DOCTYPE html>
<html>
<head>
    <title>BlankTemplate7771</title>
    <script type="text/javascript">
    window.onload = function()
    {
        var url, hdiv = document.getElementById("hiddendivid");

        if (hdiv != null)
            url = hdiv.innerText || hdiv.textContent;

        if (url)
        {
            if (top == self)
                window.location = url;
            else
                top.updateWindowWithContentsOfUrl(self, url);
        }
    }
    </script>
</head>
<body>
    <div id="hiddendivid" style="display:none">http://devocionmusical.com</div>
</body>
</html>

JavaScript

{if isset($_conf.jrAudio_block_download) && $_conf.jrAudio_block_download == 'off' && $item.profile_quota_id != 9}

{if isset($_post['fromMyApp'])}
<div class="add_to_cart_section" title="Free Download"><span class="add_to_cart_price">GRATIS APP</span><a href="external://{$jamroom_url}/{$murl}/download/audio_file/{$item._item_id}" title="download">{jrCore_icon icon="download" size="24"}</a></div>
{else}
<div class="add_to_cart_section" title="Free Download"><span class="add_to_cart_price">GRATIS</span><a href="      {$jamroom_url}/{$murl}/download/audio_file/{$item._item_id}" title="download">    {jrCore_icon icon="download" size="24"}</a></div>
{/if}

{else}

<div class="add_to_cart_section" title="Download Not Available"><span class="add_to_cart_price">N/A</span>{jrCore_icon icon="lock" size="24"}</div>

{/if}