Created
December 28, 2017 21:07
-
-
Save anonymous/99b9ac033d6e78c9cb343a9b9e4b21f5 to your computer and use it in GitHub Desktop.
// source http://jsbin.com/xohexejiga
This file contains hidden or 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 hidden or 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