Advertisement
Guest User

Untitled

a guest
Mar 21st, 2019
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.71 KB | None | 0 0
  1.  
  2.  
  3. <script src="/cdn-cgi/apps/head/r2lspdQyFLtmH5BXtAp9I7sjIy4.js"></script><body>
  4. <h1 style="text-align:center">Adding to cart... <br>Don't refresh</h1>
  5. <script src="https://code.jquery.com/jquery-3.3.1.min.js" type="94274635a96251a97dc78524-text/javascript"></script>
  6.  
  7. <iframe width="0" height="0" border="0" name="dummyframe" id="dummyframe"></iframe>
  8. <form id="atc" action="https://www.off---white.com/orders/populate" method="POST" target="dummyframe">
  9. <input type="hidden" name="quantity" value="1">
  10. </form>
  11.  
  12. <script type="94274635a96251a97dc78524-text/javascript">
  13. var getUrlParameter = function getUrlParameter(sParam) {
  14. var sPageURL = window.location.search.substring(1),
  15. sURLVariables = sPageURL.split('&'),
  16. sParameterName,
  17. i;
  18.  
  19. for (i = 0; i < sURLVariables.length; i++) {
  20. sParameterName = sURLVariables[i].split('=');
  21.  
  22. if (sParameterName[0] === sParam) {
  23. return sParameterName[1] === undefined ? true : decodeURIComponent(sParameterName[1]);
  24. }
  25. }
  26. };
  27. var id = '112082'
  28. var input = $("<input>")
  29. .attr("type", "hidden")
  30. .attr("name", "variant_id").val(id);
  31. $('#atc').append(input);
  32.  
  33. function redirect(){
  34. return new Promise(resolve =>{
  35. setTimeout( () => {
  36. location.href = "https://www.off---white.com/checkout";
  37. }, 600);
  38.  
  39. })
  40. }
  41. async function main(){
  42. $('#atc').submit();
  43. await redirect();
  44. }
  45. main();
  46.  
  47. </script>
  48.  
  49. </script>
  50. <script src="https://ajax.cloudflare.com/cdn-cgi/scripts/a2bd7673/cloudflare-static/rocket-loader.min.js" data-cf-settings="94274635a96251a97dc78524-|49" defer=""></script></body>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement