Skip to content

Instantly share code, notes, and snippets.

Created December 28, 2017 21:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save anonymous/99b9ac033d6e78c9cb343a9b9e4b21f5 to your computer and use it in GitHub Desktop.
Save anonymous/99b9ac033d6e78c9cb343a9b9e4b21f5 to your computer and use it in GitHub Desktop.
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
</head>
<body>
<script id="jsbin-javascript">
const search = (location.search.match(/q=([^&]+)/) || [null, "1"])[1];
const iframe = document.createElement('iframe');
iframe.src = "http://ec2-23-23-119-219.compute-1.amazonaws.com/index.php/catalogsearch/result/?q="+search;
document.querySelector('body').appendChild(iframe);
</script>
<script id="jsbin-source-javascript" type="text/javascript">const search = (location.search.match(/q=([^&]+)/) || [null, "1"])[1];
const iframe = document.createElement('iframe');
iframe.src = "http://ec2-23-23-119-219.compute-1.amazonaws.com/index.php/catalogsearch/result/?q="+search;
document.querySelector('body').appendChild(iframe);</script></body>
</html>
const search = (location.search.match(/q=([^&]+)/) || [null, "1"])[1];
const iframe = document.createElement('iframe');
iframe.src = "http://ec2-23-23-119-219.compute-1.amazonaws.com/index.php/catalogsearch/result/?q="+search;
document.querySelector('body').appendChild(iframe);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment