JSFiddle - React, Tailwind, and code Playground

by romanych

HTML

<a href="https://feedback.userreport.com/2abf15ce-d983-4c79-a2e9-a8073924d6d3/" onclick="return openFeedback();" target="_blank">Open feedback</a>

JavaScript

var urLoaded = false;
_urq.push(function() {
  urLoaded = true;
});
function openFeedback() {
  if (urLoaded) {
    _urq.push(['Feedback_Open']);
    return false;
  }
};

// delay UserReport to load for 10 seconds

setTimeout(function() {
  window._urq = window._urq || [];
  _urq.push(['initSite', '2abf15ce-d983-4c79-a2e9-a8073924d6d3']);

  var ur = document.createElement('script'); ur.type = 'text/javascript'; 	ur.async = true;
  ur.src = ('https:' == document.location.protocol ? 'https://cdn.userreport.com/userreport.js' : 'http://cdn.userreport.com/userreport.js');
  var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ur, s);
}, 1000);