lateri 4 년 전
부모
커밋
07ac27e6ed
2개의 변경된 파일40개의 추가작업 그리고 3개의 파일을 삭제
  1. 37 0
      tour.html
  2. 3 3
      tour.xml

+ 37 - 0
tour.html

@@ -0,0 +1,37 @@
+<!DOCTYPE html>
+<html>
+<head>
+	<title>krpano - chenyiju</title>
+	<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, viewport-fit=cover" />
+	<meta name="apple-mobile-web-app-capable" content="yes" />
+	<meta name="apple-mobile-web-app-status-bar-style" content="black" />
+	<meta name="mobile-web-app-capable" content="yes" />
+	<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
+	<meta http-equiv="x-ua-compatible" content="IE=edge" />
+	<style>
+		html { height:100%; }
+		body { height:100%; overflow:hidden; margin:0; padding:0; font-family:Arial, Helvetica, sans-serif; font-size:16px; color:#FFFFFF; background-color:#000000; }
+	</style>
+</head>
+<body>
+
+<script src="tour.js"></script>
+
+<div id="pano" style="width:100%;height:100%;">
+	<noscript><table style="width:100%;height:100%;"><tr style="vertical-align:middle;"><td><div style="text-align:center;">ERROR:<br/><br/>Javascript not activated<br/><br/></div></td></tr></table></noscript>
+	<script>
+		embedpano({ id: "krpanoSWFObject_",swf:"tour.swf", xml:"tour.xml", target:"pano", html5:"auto", mobilescale:1.0, passQueryParameters:true, onready: krpanoReady});
+
+
+		function krpanoReady(){
+			var krpano = document.getElementById('krpanoSWFObject_');
+ 
+			console.log(krpano)
+
+			krpano.call("webvr.enterVR();"); //进入VR
+		}
+	</script>
+</div>
+
+</body>
+</html>

+ 3 - 3
tour.xml

@@ -1,6 +1,6 @@
 <krpano version="1.20.9" title="Virtual Tour">
 
-	<include url="skin/vtourskin.xml" />
+	<!-- <include url="skin/vtourskin.xml" /> -->
 
 	<!-- customize skin settings: maps, gyro, webvr, thumbnails, tooltips, layout, design, ... -->
 	<skin_settings maps="false"
@@ -90,8 +90,8 @@
 		<image>
 			<cube url="tourpanos/chengshicitang.tiles/%s/l%l/%0v/l%l_%s_%0v_%0h.jpg" multires="512,1024,1792,3584,7168" />
 		</image>
-		<hotspot name="spot1" style="skin_hotspotstyle" ath="2.119" atv="26.551" linkedscene="scene_chenyiju" />
-		<hotspot name="spot2" style="skin_hotspotstyle" ath="-79.408" atv="16.105" linkedscene="scene_chenyiju" />
+		<!-- <hotspot name="spot1" style="skin_hotspotstyle" ath="2.119" atv="26.551" linkedscene="scene_chenyiju" />
+		<hotspot name="spot2" style="skin_hotspotstyle" ath="-79.408" atv="16.105" linkedscene="scene_chenyiju" /> -->
 
 	</scene>