SHARE
TWEET

Untitled

likesomething_bad Jul 24th, 2019 53 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <script>
  2. if (window.frameElement) {
  3.   var w = window.parent;
  4.   var d = w.document;
  5.   w.relapTasks = w.relapTasks || [];
  6.  
  7.   w.relapTasks.push(function(api) {
  8.     function addWidget() {
  9.       var div = d.createElement('div');
  10.       div.className = 'js-relap-dfp-anchor';
  11.       window.frameElement.insertAdjacentElement('beforebegin', div);
  12.  
  13.       api.addWidget({
  14.         cfgId: 'jHOMXJxcjJ1njjAw',
  15.         anchorEl: div,
  16.         events: {
  17.           onNoContent: function(resp) {
  18.             var func = top.window.relapV7onNoContent;
  19.  
  20.             if (typeof func !== 'function') {
  21.               return console.log('no onNoContent callback found');
  22.             }
  23.  
  24.             func(resp);
  25.           },
  26.         },
  27.       });
  28.     }
  29.  
  30.     if (api.isReady) return addWidget();
  31.  
  32.     api.init({
  33.         token: 'NEw0pyOnDWKfUNfS',
  34.         url: 'http://wday.ru/',
  35.       })
  36.       .then(addWidget);
  37.   });
  38.  
  39.   if (!d.querySelector('.relap-runtime-iframe')) {
  40.     var s = d.createElement('script');
  41.     s.src = 'https://relap.io/v7/relap.js';
  42.     window.frameElement.insertAdjacentElement('beforebegin', s);
  43.   }
  44. }
  45. </script>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top