// source http://jsbin.com/xohexejiga
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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