Guest User

Untitled

a guest
Feb 25th, 2015
164
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.87 KB | None | 0 0
  1. <html>
  2. <head>
  3. <title>Giveaway Page</title>
  4.  
  5. <script src="http://code.jquery.com/jquery-latest.js"></script>
  6. <script>
  7. (function($)
  8. {
  9. $(document).ready(function()
  10. {
  11. $.ajaxSetup(
  12. {
  13. cache: false,
  14. beforeSend: function() {
  15. $('#content').hide();
  16. $('#loading').show();
  17. },
  18. complete: function() {
  19. $('#loading').hide();
  20. $('#content').show();
  21. },
  22. success: function() {
  23. $('#loading').hide();
  24. $('#content').show();
  25. }
  26. });
  27. var $container = $("#content");
  28. $container.load("giveaway.html");
  29. var refreshId = setInterval(function()
  30. {
  31. $container.load('giveaway.html');
  32. }, 29000);
  33. });
  34. })(jQuery);
  35. </script>
  36.  
  37. <script>
  38. (function($)
  39. {
  40. $(document).ready(function()
  41. {
  42. $.ajaxSetup(
  43. {
  44. cache: false,
  45. beforeSend: function() {
  46. $('#content').hide();
  47. $('#loading').show();
  48. },
  49. complete: function() {
  50. $('#loading').hide();
  51. $('#content').show();
  52. },
  53. success: function() {
  54. $('#loading').hide();
  55. $('#content').show();
  56. }
  57. });
  58. var $container = $("#content2");
  59. $container.load("giveaway.html");
  60. var refreshId = setInterval(function()
  61. {
  62. $container.load('giveaway.html');
  63. }, 5000);
  64. });
  65. })(jQuery);
  66. </script>
  67.  
  68. </head>
  69. <body>
  70.  
  71. <?php
  72. $filename = 'giveaway.html';
  73.  
  74. if (file_exists($filename)) {
  75. <div id="wrapper">
  76. <div id="content"></div>
  77. </div>
  78. }
  79.  
  80. else {
  81. <div id="wrapper">
  82. <div id="content2"></div>
  83. </div>
  84. }
  85. ?>
  86.  
  87.  
  88.  
  89. </body>
  90. </html>
Advertisement
Add Comment
Please, Sign In to add comment