widgets-outbrain-com_outbrain.js 997 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. (function () {
  2. 'use strict';
  3. const noopfn = () => {
  4. // noop
  5. };
  6. const obr = {};
  7. const methods = [
  8. 'callClick',
  9. 'callLoadMore',
  10. 'callRecs',
  11. 'callUserZapping',
  12. 'callWhatIs',
  13. 'cancelRecommendation',
  14. 'cancelRecs',
  15. 'closeCard',
  16. 'closeModal',
  17. 'closeTbx',
  18. 'errorInjectionHandler',
  19. 'getCountOfRecs',
  20. 'getStat',
  21. 'imageError',
  22. 'manualVideoClicked',
  23. 'onOdbReturn',
  24. 'onVideoClick',
  25. 'pagerLoad',
  26. 'recClicked',
  27. 'refreshSpecificWidget',
  28. 'renderSpaWidgets',
  29. 'refreshWidget',
  30. 'reloadWidget',
  31. 'researchWidget',
  32. 'returnedError',
  33. 'returnedHtmlData',
  34. 'returnedIrdData',
  35. 'returnedJsonData',
  36. 'scrollLoad',
  37. 'showDescription',
  38. 'showRecInIframe',
  39. 'userZappingMessage',
  40. 'zappingFormAction'
  41. ];
  42. obr.extern = {
  43. video: {
  44. getVideoRecs: noopfn,
  45. videoClicked: noopfn
  46. }
  47. };
  48. methods.forEach((a) => {
  49. obr.extern[a] = noopfn;
  50. });
  51. window.OBR = obr;
  52. })();