Advertisement
KamaPula

games.mail.ru | 45vjKa0pFkC9EJ2Y | Ovn5LhfWOcM5f39_

Dec 13th, 2019
599
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <div class="js-relap-adhoc-anchor" data-relap-id="Ovn5LhfWOcM5f39_"></div>
  2. <script>
  3. (function() {
  4.   var widgetId = 'Ovn5LhfWOcM5f39_';
  5.   var token = '45vjKa0pFkC9EJ2Y';
  6.   var w = window;
  7.   var d = w.document;
  8.   w.relapTasks = w.relapTasks || [];
  9.   w.relapTasks.push(function(api) {
  10.     function addWidget() {
  11.       var anchorEl = d.querySelector('.js-relap-adhoc-anchor[data-relap-id="' + widgetId + '"]');
  12.       if (!anchorEl) {
  13.         console.log('no anchor el found, exit');
  14.         return;
  15.       }
  16.       anchorEl.className = '';
  17.       api.addWidget({
  18.         cfgId: widgetId,
  19.         anchorEl: anchorEl,
  20.         events: {
  21.           onNoContent: function(obj) {
  22.             anchorEl.remove();
  23.           },
  24.         },
  25.       });
  26.     }
  27.     if (api.isReady) return addWidget();
  28.     api.init({
  29.         token: token,
  30.       })
  31.       .then(addWidget);
  32.   });
  33.   if (!d.querySelector('.relap-runtime-iframe')) {
  34.     var s = d.createElement('script');
  35.     s.src = 'https://relap.io/v7/relap.js';
  36.     d.body.appendChild(s);
  37.   }
  38. })();
  39. </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement