Created
March 21, 2017 06:43
-
-
Save bastengao/4af5675bd2515b4eafcc309fc5dab9f4 to your computer and use it in GitHub Desktop.
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"> | |
<title>test</title> | |
<script type="text/javascript" src="//cdn.bootcss.com/jquery/1.12.4/jquery.min.js"></script> | |
<script type="text/javascript"> | |
$(function(){ | |
$.get('http://huimin-media0.smart-museum.cn/pano/bingmayong/one.html', function(html) { | |
var frame = document.getElementById('vr-frame'); | |
frame.src = 'http://huimin-media0.smart-museum.cn/pano/bingmayong/one.html' | |
html = html.replace('<head>', '<head><base href="http://huimin-media0.smart-museum.cn/pano/bingmayong/">') | |
frame.contentWindow.document.write(html) | |
}) | |
}); | |
</script> | |
</head> | |
<body> | |
<iframe id="vr-frame" name="vr-frame" width="100%" height="500"></iframe> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment