-
-
Save binux/20d09f8474cb7dfec4f9e771d4e361f3 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"> | |
<meta http-equiv="Content-Security-Policy" content="upgrade-insecure-requests"> | |
</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