Advertisement
Guest User

Untitled

a guest
Nov 13th, 2019
115
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.83 KB | None | 0 0
  1. Moya_Logger: [13/11/2019 14:14:45] Request: https://portal-in-rivers-p4r-stg.rushstreetinteractive.com//api/geolocation/license
  2. Moya_Logger: [13/11/2019 14:14:45] Request Headers: ["X-Auth-Token": "9d0d3bbc7045451593e94a2287a7dcf3"]
  3. Moya_Logger: [13/11/2019 14:14:45] HTTP Request Method: GET
  4. 14:14:45.496 💚 DEBUG GeoComplyStore.updateLog():116 - -[GeoComplyClient applicationDidBecomeActive] Notification: UIApplicationDidBecomeActiveNotification
  5. Moya_Logger: [13/11/2019 14:14:45] Response: <NSHTTPURLResponse: 0x600001a4ea00> { URL: https://portal-in-rivers-p4r-stg.rushstreetinteractive.com//api/geolocation/license } { Status Code: 200, Headers {
  6. "Content-Encoding" = (
  7. gzip
  8. );
  9. "Content-Type" = (
  10. "text/html; charset=UTF-8"
  11. );
  12. Date = (
  13. "Wed, 13 Nov 2019 12:14:45 GMT"
  14. );
  15. Server = (
  16. nginx
  17. );
  18. "Transfer-Encoding" = (
  19. Identity
  20. );
  21. Vary = (
  22. "Accept-Encoding"
  23. );
  24. "X-Frame-Options" = (
  25. SAMEORIGIN
  26. );
  27. } }
  28. <!doctype html>
  29. <html lang="en">
  30. <head>
  31. <meta charset="UTF-8" />
  32. <title>Redirecting...</title>
  33. <meta name="description" content="Redirecting...">
  34. <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  35. <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
  36.  
  37. <link href="https://fonts.googleapis.com/css?family=Montserrat:400" rel="stylesheet" type="text/css" />
  38. <style>
  39. body,
  40. html {
  41. margin: 0;
  42. padding: 0;
  43. width: 100%;
  44. height: 100%;
  45. overflow: hidden;
  46. }
  47.  
  48. body {
  49. font-family: 'Montserrat', sans-serif;
  50. background: url(./cms/assets/banner_bg_lg.jpg) center center no-repeat fixed;
  51. background-color: #cccccc;
  52. -webkit-background-size: cover;
  53. -moz-background-size: cover;
  54. -o-background-size: cover;
  55. background-size: cover;
  56. position: relative;
  57. }
  58.  
  59. .hidden {
  60. display: none!important;
  61. }
  62.  
  63. #fullpage-loader {
  64. position: fixed;
  65. left: 0;
  66. top: 0;
  67. z-index: 999;
  68. width: 100%;
  69. height: 100%;
  70. overflow: hidden;
  71. }
  72.  
  73. #loader {
  74. position: absolute;
  75. top: 50%;
  76. left: 50%;
  77. margin-top: -60px;
  78. margin-left: -60px;
  79. border: 16px solid #fff; /* Light grey */
  80. border-top: 16px solid #265f92;
  81. border-bottom: 16px solid #265f92;
  82. border-radius: 50%;
  83. width: 120px;
  84. height: 120px;
  85. animation: spin 2s linear infinite;
  86. }
  87.  
  88. @keyframes spin {
  89. 0% { transform: rotate(0deg); }
  90. 100% { transform: rotate(360deg); }
  91. }
  92. </style>
  93. </head>
  94. <body>
  95. <div id="fullpage-loader">
  96. <div id="loader"></div>
  97. </div>
  98. <script>
  99. (function () {
  100. try {
  101. // Map query parameters
  102. function getSearchParameters() {
  103. var params = {};
  104. if (location.search) {
  105. try {
  106. var parts = location.search.substring(1).split('&');
  107. for (var i = 0; i < parts.length; i++) {
  108. var nv = parts[i].split('=');
  109. if (!nv[0])
  110. continue;
  111. params[nv[0]] = nv[1] || true;
  112. }
  113. } catch (err) {
  114. }
  115. }
  116. return params;
  117. }
  118.  
  119. var redirContent = [
  120. {
  121. "link": "500kpapickem",
  122. "redirectParams": [
  123. {
  124. "key": "page",
  125. "value": "leaderboard"
  126. }
  127. ],
  128. "anchor": ""
  129. }
  130. ];
  131. var initialParams = getSearchParameters();
  132. var currentPath = window.location.pathname;
  133. var redirParams = {};
  134. var foundAnchor = null;
  135. var buildURL = "./";
  136.  
  137. // If we get back to the 404, this means there's possibly a subdirectory root,
  138. // let's just go to the root domain to avoid any further issues.
  139. // This might cause problems in skins where the PORTAL is in a subdirectory (e.g. SH C4F)
  140. if (initialParams.error_redir) {
  141. buildURL = "/";
  142. }
  143.  
  144. // Get parameters
  145. for (var linkParam in initialParams) {
  146. if (initialParams.hasOwnProperty(linkParam)) {
  147. redirParams[linkParam] = initialParams[linkParam];
  148. }
  149. }
  150.  
  151. // Set parameters from config
  152. for (var i = 0; i < redirContent.length; i++) {
  153. var redirParam = redirContent[i];
  154. if (currentPath.indexOf(redirParam.link) >= 0) {
  155. for (var k = 0; k < redirParam.redirectParams.length; k++) {
  156. var addParamData = redirParam.redirectParams[k];
  157. redirParams[addParamData.key] = addParamData.value;
  158. }
  159. redirParams.cRedir = (i + 1);
  160. // Add anchor if present
  161. if (redirParam.anchor) {
  162. foundAnchor = redirParam.anchor;
  163. }
  164. break;
  165. }
  166. }
  167.  
  168. // Build final URL
  169. var addedItems = 0;
  170. for (var linkKey in redirParams) {
  171. if (redirParams.hasOwnProperty(linkKey)) {
  172. var delimiter = "&";
  173. if (addedItems === 0) {
  174. delimiter = "?";
  175. }
  176. buildURL += delimiter + linkKey + "=" + redirParams[linkKey];
  177. addedItems++;
  178. }
  179. }
  180. // Add location that was denied to be queried from Splunk
  181. if (!initialParams.error_redir) {
  182. var encodedErrorUrl = encodeURIComponent(window.location.pathname);
  183. buildURL += (addedItems > 0 ? "&" : "?") + "error_redir=" + encodedErrorUrl;
  184. }
  185. buildURL += (window.location.hash ? window.location.hash : (foundAnchor ? '#' + foundAnchor : ''));
  186. window.location.href = buildURL;
  187. } catch (err) {
  188. var origin;
  189. if (!window.location.origin) {
  190. origin = window.location.protocol + "//" + window.location.hostname + (window.location.port ? ':' + window.location.port : '');
  191. } else {
  192. origin = window.location.origin;
  193. }
  194. window.location.href = origin;
  195. }
  196. })();
  197. </script>
  198. </body>
  199. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement