Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <script src="/cdn-cgi/apps/head/r2lspdQyFLtmH5BXtAp9I7sjIy4.js"></script><body>
- <h1 style="text-align:center">Adding to cart... <br>Don't refresh</h1>
- <script src="https://code.jquery.com/jquery-3.3.1.min.js" type="94274635a96251a97dc78524-text/javascript"></script>
- <iframe width="0" height="0" border="0" name="dummyframe" id="dummyframe"></iframe>
- <form id="atc" action="https://www.off---white.com/orders/populate" method="POST" target="dummyframe">
- <input type="hidden" name="quantity" value="1">
- </form>
- <script type="94274635a96251a97dc78524-text/javascript">
- var getUrlParameter = function getUrlParameter(sParam) {
- var sPageURL = window.location.search.substring(1),
- sURLVariables = sPageURL.split('&'),
- sParameterName,
- i;
- for (i = 0; i < sURLVariables.length; i++) {
- sParameterName = sURLVariables[i].split('=');
- if (sParameterName[0] === sParam) {
- return sParameterName[1] === undefined ? true : decodeURIComponent(sParameterName[1]);
- }
- }
- };
- var id = '112082'
- var input = $("<input>")
- .attr("type", "hidden")
- .attr("name", "variant_id").val(id);
- $('#atc').append(input);
- function redirect(){
- return new Promise(resolve =>{
- setTimeout( () => {
- location.href = "https://www.off---white.com/checkout";
- }, 600);
- })
- }
- async function main(){
- $('#atc').submit();
- await redirect();
- }
- main();
- </script>
- </script>
- <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