JSFiddle - React, Tailwind, and code Playground

by adrianogodoy

HTML

<script type="text/javascript">
      (function(w,d) {
        w['my_function'] = w['my_function'] || function() {
          (w['my_function'].q = w['my_function'].q || []).push(arguments)
        }
        var po = d.createElement('script'); po.type = 'text/javascript'; po.async = true;
        po.src = 'https://rawgit.com/Godoy/830e372b7aa73158d68633bd15acb781/raw/7aaf95e41b30ee72fc7504bdac3475bc66fbec31/my_function-sdk.js';
        var s = d.getElementsByTagName('script')[0]; s.parentNode.insertBefore(po, s);
      })(window, document);
    </script>
    
    <script>
      my_function("test");
      my_function("other test");
      setTimeout(function() { my_function("in set timeout"); }, 3000);

    </script>