Guest User

Untitled

a guest
Jul 23rd, 2018
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.92 KB | None | 0 0
  1. <script>
  2.  
  3. (function()
  4. {
  5. 'use strict';
  6. var cnt=6000;
  7. function init()
  8. {
  9. if(typeof jQuery !="undefined")
  10. {
  11. // call to change content
  12. content_change();
  13. window.onload = function(){content_change();};
  14. window.onclick = function(){content_change();};
  15. }
  16. else
  17. {
  18. cnt=cnt-500;
  19. if(cnt>500)setTimeout(init,500);
  20. }
  21. }
  22.  
  23.  
  24.  
  25. function content_change()
  26. {
  27.  
  28. console.log( "content changed 1" );
  29. if($("#priceSummaryMount").length > 0)
  30. {
  31. $('button.yelbtn').click(function()
  32. {
  33. $('button.btn.btn-indigo.skip-cnt-btn').trigger('click');
  34. $('.flexi-promotion-popup').hide();
  35. });
  36.  
  37. }
  38. else
  39. {
  40. cnt=cnt-500;
  41. if(cnt>500)setTimeout(content_change,500);
  42. }
  43. }
  44. init();
  45. })()
  46. </script>
Add Comment
Please, Sign In to add comment