Skip to content

Instantly share code, notes, and snippets.

Created Dec 20, 2017
Embed
What would you like to do?
JS Bin // source http://jsbin.com/zitojijuda
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
</head>
<body>
<form action="https://book.jetblue.com/B6/webqtrip.html" method=POST>
<button type=submit>submit</submit> <br />
</form>
<script id="jsbin-javascript">
const data = {"X-1ItxWO9i-a":"uP-Uz4pp0TM=exw7kEB-B9h=o-CdG4Y47Lj=GRHgRZ28wMliyTAagiGRmvhSzh=zowkGJDMaLwAGI7hKoyVOE9CKV8TYGr5BU5dgP7y=pBFKUyo4uiGpVpY4V8-=C7Cq9BYgVBs=MNNRpglqRSY8ZmR=I2A2ziwfPTfPpgwNfzFcpusRkTPJE0q_M0QcKnMyGbCifhK7VyVBETDEZqKYM9-j1q=pVr0UeLwie9Z=MgwHFwA3VSBjC-MqUBfqRU0pp80iRZq517C8pPx-uB23EcYgjIeY9vKKIiG=xiAhR4fD1pJbf1mTk0CMMjY70PhKe7-UCrCvuzxjV8P3zW3KZwvBI4fmfvh=pio4jWx2alNREro5Xwx2grxcI2bjIa0iRCWUpyxjM72715mqeGcnV4f3znd7VT0=wIY2R5k8e=hRXaw3xwZjUdM=OTQgoL=f1ywCIjRQGbMBE5pYYTypo9pR9yZ=G7K0nhMBoiwjVB23opIpU3IgR3GLowA7MDY79MlU1gYJevE=Yp8jEy3KVT-PJgYNpC3K1LIQUSpjo6lvXrRBE7lPJcpgVpp=19pf90GK1TW=X6mrokhKPFY3MSCY15EUE9a7eDLvRdA3go2KkTG5kdoWzLwMzuYS2rZcEWZ5kPYTG9ppG7hp-IYlIidKPiRqe6ycZgL4znOvCLomR35RIIYq6Yq=rvCPRIWcpwAG1TluE=dykcsyp8pWCTe=oD6cE_lJoTLcaifrJrh=p3bjTvKqzrG=z2AWpTAJPhC3PyVaRBp6XL0Bf7M01SY5IFmdz258R-x5eiisn=NcR7dQZgZO9CqU1GMFXGwvM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"lowest","fareFamily":"LOWESTFARE","flexibleSearch":"TRUE","jbBookerCurrency-flights":"usd","jbBookerCurrency-getaways":"usd","jbBookerSearchType":"flights","journeySpan":"OW","lang":"en","numAdults":"1","numChildren":"0","numInfants":"0","origin":"SFO","pos":"JETBLUE","refundable":"false","roundTripFaresFlag":"false","searchType":"NORMAL","sharedMarket":"false"};
for (const key in data) {
const span = document.createElement('span');
span.textContent = key;
if (!['destination', 'origin', 'departureDate'].includes(key)) {
span.style.display = 'none';
}
document.querySelector('form').appendChild(span);
const input = document.createElement('input');
input.name = key;
input.value = data[key];
if (!['destination', 'origin', 'departureDate'].includes(key)) {
input.type = 'hidden';
}
document.querySelector('form').appendChild(input);
document.querySelector('form').appendChild(document.createElement('br'));
}
</script>
<script id="jsbin-source-javascript" type="text/javascript">const data = {"X-1ItxWO9i-a":"uP-Uz4pp0TM=exw7kEB-B9h=o-CdG4Y47Lj=GRHgRZ28wMliyTAagiGRmvhSzh=zowkGJDMaLwAGI7hKoyVOE9CKV8TYGr5BU5dgP7y=pBFKUyo4uiGpVpY4V8-=C7Cq9BYgVBs=MNNRpglqRSY8ZmR=I2A2ziwfPTfPpgwNfzFcpusRkTPJE0q_M0QcKnMyGbCifhK7VyVBETDEZqKYM9-j1q=pVr0UeLwie9Z=MgwHFwA3VSBjC-MqUBfqRU0pp80iRZq517C8pPx-uB23EcYgjIeY9vKKIiG=xiAhR4fD1pJbf1mTk0CMMjY70PhKe7-UCrCvuzxjV8P3zW3KZwvBI4fmfvh=pio4jWx2alNREro5Xwx2grxcI2bjIa0iRCWUpyxjM72715mqeGcnV4f3znd7VT0=wIY2R5k8e=hRXaw3xwZjUdM=OTQgoL=f1ywCIjRQGbMBE5pYYTypo9pR9yZ=G7K0nhMBoiwjVB23opIpU3IgR3GLowA7MDY79MlU1gYJevE=Yp8jEy3KVT-PJgYNpC3K1LIQUSpjo6lvXrRBE7lPJcpgVpp=19pf90GK1TW=X6mrokhKPFY3MSCY15EUE9a7eDLvRdA3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i-b":"-dufr1x","X-1ItxWO9i-c":"AJBjAnRgAQAAFxzfKnDYykHQ08eP0Hzq8LlNpzLljMiWryTbPUU4yZdgQx2U","X-1ItxWO9i-d":"0","X-1ItxWO9i-uniqueStateKey":"AItnAnRgAQAApMsMLfbZB2MbrCIUQK27PPMuZCOPRhYf1Zw0zae9QA1CcJqE","departureDate":"2018-01-03","destination":"JFK","fareDisplay":"lowest","fareFamily":"LOWESTFARE","flexibleSearch":"TRUE","jbBookerCurrency-flights":"usd","jbBookerCurrency-getaways":"usd","jbBookerSearchType":"flights","journeySpan":"OW","lang":"en","numAdults":"1","numChildren":"0","numInfants":"0","origin":"SFO","pos":"JETBLUE","refundable":"false","roundTripFaresFlag":"false","searchType":"NORMAL","sharedMarket":"false"};
for (const key in data) {
const span = document.createElement('span');
span.textContent = key;
if (!['destination', 'origin', 'departureDate'].includes(key)) {
span.style.display = 'none';
}
document.querySelector('form').appendChild(span);
const input = document.createElement('input');
input.name = key;
input.value = data[key];
if (!['destination', 'origin', 'departureDate'].includes(key)) {
input.type = 'hidden';
}
document.querySelector('form').appendChild(input);
document.querySelector('form').appendChild(document.createElement('br'));
}</script></body>
</html>
const data = {"X-1ItxWO9i-a":"uP-Uz4pp0TM=exw7kEB-B9h=o-CdG4Y47Lj=GRHgRZ28wMliyTAagiGRmvhSzh=zowkGJDMaLwAGI7hKoyVOE9CKV8TYGr5BU5dgP7y=pBFKUyo4uiGpVpY4V8-=C7Cq9BYgVBs=MNNRpglqRSY8ZmR=I2A2ziwfPTfPpgwNfzFcpusRkTPJE0q_M0QcKnMyGbCifhK7VyVBETDEZqKYM9-j1q=pVr0UeLwie9Z=MgwHFwA3VSBjC-MqUBfqRU0pp80iRZq517C8pPx-uB23EcYgjIeY9vKKIiG=xiAhR4fD1pJbf1mTk0CMMjY70PhKe7-UCrCvuzxjV8P3zW3KZwvBI4fmfvh=pio4jWx2alNREro5Xwx2grxcI2bjIa0iRCWUpyxjM72715mqeGcnV4f3znd7VT0=wI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4MiwfIF-Bz_ZjRiv=pLoduPMYMWxKIiScR8MpUzYv6uRJxjYdbDajEFVg-iImPrG=Vy=pkTAdkyG=1WzgYZHa1DCgJ8F3kSLlX1q5fGxReDwPRg0TM0w7XEQP1Lf5GUxZPv=aR=lvo6YHx6Y4I_rYRK15pZHTEylYozyRSTf-o-M=prF=G98Tkp","X-1ItxWO9i-b":"-dufr1x","X-1ItxWO9i-c":"AJBjAnRgAQAAFxzfKnDYykHQ08eP0Hzq8LlNpzLljMiWryTbPUU4yZdgQx2U","X-1ItxWO9i-d":"0","X-1ItxWO9i-uniqueStateKey":"AItnAnRgAQAApMsMLfbZB2MbrCIUQK27PPMuZCOPRhYf1Zw0zae9QA1CcJqE","departureDate":"2018-01-03","destination":"JFK","fareDisplay":"lowest","fareFamily":"LOWESTFARE","flexibleSearch":"TRUE","jbBookerCurrency-flights":"usd","jbBookerCurrency-getaways":"usd","jbBookerSearchType":"flights","journeySpan":"OW","lang":"en","numAdults":"1","numChildren":"0","numInfants":"0","origin":"SFO","pos":"JETBLUE","refundable":"false","roundTripFaresFlag":"false","searchType":"NORMAL","sharedMarket":"false"};
for (const key in data) {
const span = document.createElement('span');
span.textContent = key;
if (!['destination', 'origin', 'departureDate'].includes(key)) {
span.style.display = 'none';
}
document.querySelector('form').appendChild(span);
const input = document.createElement('input');
input.name = key;
input.value = data[key];
if (!['destination', 'origin', 'departureDate'].includes(key)) {
input.type = 'hidden';
}
document.querySelector('form').appendChild(input);
document.querySelector('form').appendChild(document.createElement('br'));
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment