<!DOCTYPE html>
<head>
	<title>Kantai Collection</title>
	<style type="text/css">
	html, body { padding: 0; margin: 0; }
	</style>
	<script type="text/javascript">
	function setAPILink(link) {
		var e = document.createElement("embed")
		e.setAttribute("src", link)
		e.setAttribute("type", "application/x-shockwave-flash")
		e.setAttribute("quality", "high")
		e.setAttribute("width", "800")
		e.setAttribute("height", "480")
		document.body.appendChild(e)
	}
	</script>
</head>
<body>
	
</body>
</html>
<!DOCTYPE html>
<head>
	<title>Kantai Collection</title>
	<style type="text/css">
	html, body { padding: 0; margin: 0; }
	</style>
	<script type="text/javascript">
	function setAPILink(link) {
		// Remove any eventual old embeds
		var oldEmbeds = document.getElementsByTagName("embed")
		for(var i = 0; i < oldEmbeds.length; i++) { oldEmbeds[i].parentNode.removeChild(oldEmbeds[i]) }
		
		// Add a new one
		var e = document.createElement("embed")
		e.setAttribute("src", link)
		e.setAttribute("type", "application/x-shockwave-flash")
		e.setAttribute("quality", "high")
		e.setAttribute("width", "800")
		e.setAttribute("height", "480")
		document.body.appendChild(e)
	}
	</script>
</head>
<body>
	
</body>
</html>
Make it possible to call setAPILink() multiple times
Make it possible to call setAPILink() multiple times
