index.html 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <title>点我,带你上港珠澳大桥</title>
  5. <meta name="viewport" content="target-densitydpi=device-dpi, width=device-width, initial-scale=1.0,
  6. minimum-scale=1.0, maximum-scale=1.0, minimal-ui" />
  7. <meta name="apple-mobile-web-app-capable" content="yes" />
  8. <meta name="apple-mobile-web-app-status-bar-style" content="black" />
  9. <meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
  10. <meta http-equiv="x-ua-compatible" content="IE=edge" />
  11. <link rel="icon" type="image/png" sizes="32x32" href="images/favicon.png" class="keep">
  12. <style>
  13. @-ms-viewport { width:device-width; }
  14. @media only screen and (min-device-width:800px) { html { overflow:hidden; } }
  15. html { height:100%; }
  16. body { height:100%; overflow:hidden; margin:0; padding:0; font-family:Arial, Helvetica, sans-serif; font-size:16px; color:#FF0000; background-color:#000000; }
  17. </style>
  18. <script type="text/javascript" src="plugins/jquery-2.1.1.min.js"></script>
  19. <script src="layer/layer.js"></script>
  20. <link rel="stylesheet" href="css/alert.css" />
  21. <link rel="stylesheet" href="css/style.css" media="screen" type="text/css" />
  22. </head>
  23. <body>
  24. <!-- <div class="button" onclick="track_mouse();" style=" position: fixed; z-index: 10; left: 0; top: 0; ">Track mouse position</div> <span id="mousepos" style="color: #000; padding-left:16px; font-family:monospace; position: fixed; z-index: 200; left: 200px; top: 50;"></span><br> -->
  25. <script src="tour.js"></script>
  26. <div id="pano" style="width:100%;height:100%;">
  27. <div class="l-wrapper" id="loadid">
  28. <svg viewBox="0 0 120 120" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
  29. <g id="circle" class="g-circles g-circles--v1">
  30. <circle id="12" transform="translate(35, 16.698730) rotate(-30) translate(-35, -16.698730) " cx="35" cy="16.6987298" r="10"></circle>
  31. <circle id="11" transform="translate(16.698730, 35) rotate(-60) translate(-16.698730, -35) " cx="16.6987298" cy="35" r="10"></circle>
  32. <circle id="10" transform="translate(10, 60) rotate(-90) translate(-10, -60) " cx="10" cy="60" r="10"></circle>
  33. <circle id="8" transform="translate(35, 103.301270) rotate(-150) translate(-35, -103.301270) " cx="35" cy="103.30127" r="10"></circle>
  34. <circle id="7" cx="60" cy="110" r="10"></circle>
  35. <circle id="6" transform="translate(85, 103.301270) rotate(-30) translate(-85, -103.301270) " cx="85" cy="103.30127" r="10"></circle>
  36. <circle id="5" transform="translate(103.301270, 85) rotate(-60) translate(-103.301270, -85) " cx="103.30127" cy="85" r="10"></circle>
  37. <circle id="4" transform="translate(110, 60) rotate(-90) translate(-110, -60) " cx="110" cy="60" r="10"></circle>
  38. <circle id="3" transform="translate(103.301270, 35) rotate(-120) translate(-103.301270, -35) " cx="103.30127" cy="35" r="10"></circle>
  39. <circle id="2" transform="translate(85, 16.698730) rotate(-150) translate(-85, -16.698730) " cx="85" cy="16.6987298" r="10"></circle>
  40. <circle id="1" cx="60" cy="10" r="10"></circle>
  41. </g>
  42. <use xlink:href="#circle" class="use"/>
  43. </svg>
  44. </div>
  45. <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>
  46. <script>
  47. embedpano({swf:"tour.swf", xml:"tour.xml"+"?"+new Date().getTime(), target:"pano", html5:"auto",id:"krpanoSWFObject", initvars:{design:"default"}, passQueryParameters:true});
  48. var krpano = document.getElementById("krpanoSWFObject");
  49. </script>
  50. <script src="plugins/jweixin-1.2.0.js"></script>
  51. <!-- <script src="nice-validator/jquery.validator.min.js"></script> -->
  52. <script src="common/adaptive.js"></script>
  53. <script>
  54. // window['adaptive'].desinWidth = 750;
  55. // window['adaptive'].baseFont = 42;
  56. // window['adaptive'].maxWidth = 1024;
  57. // window['adaptive'].init();
  58. function direction() {
  59. if(window.orientation == 90 || window.orientation == -90 ) {
  60. // alert("横屏");
  61. return true;
  62. }else{
  63. return false;
  64. }
  65. }
  66. function hsp(){
  67. if(direction()){
  68. window['adaptive'].desinWidth = 1334;
  69. window['adaptive'].baseFont = 18;
  70. window['adaptive'].maxWidth = 2048;
  71. window['adaptive'].init();
  72. }else{
  73. window['adaptive'].desinWidth = 750;
  74. window['adaptive'].baseFont = 18;
  75. window['adaptive'].maxWidth = 750;
  76. window['adaptive'].init();
  77. }
  78. }
  79. hsp();
  80. window.setInterval(function(){hsp()},500);
  81. $(".alert-div").hide();
  82. $("#full_screen").hide();
  83. $(document).ready(function(){
  84. $(".close").bind("click",function(){
  85. $("#full_screen").hide();
  86. $(".alert-div").hide();
  87. })
  88. // rqstunm("https://baike.baidu.com/activity/liangjiahe/trace?callback=traceindex&type=index");
  89. })
  90. function loaded(bf){
  91. $("#bfb").html(bf);
  92. }
  93. function showlay(id){
  94. $("#full_screen").show();
  95. $("#"+id).show();
  96. }
  97. function hidload(){
  98. var target=document.getElementById("loadid");
  99. target.style.display="none";
  100. }
  101. function weixinShare() {
  102. g_weixinObj = {
  103. "lineLink" : window.location.href,
  104. "imgUrl" : "http://www.4dmodel.com/SpecialBigScene/ZGABridge/images/share.jpg",
  105. "desc" : "身临其境",
  106. }
  107. $.ajax({
  108. url:'http://www.4dage.com/Weixin3/wechatconfig/jssdk',
  109. type: "post",
  110. data : {
  111. 'url' : location.href.split('#')[0]
  112. },
  113. dataType:"jsonp",
  114. jsonpCallback:"success_jsonp",
  115. success:function(data,textStatus){
  116. wx.config({
  117. //debug : true,
  118. appId : data.appId,
  119. timestamp : data.timestamp,
  120. nonceStr : data.nonceStr,
  121. signature : data.signature,
  122. jsApiList : [ 'checkJsApi', 'onMenuShareTimeline',
  123. 'onMenuShareAppMessage', 'onMenuShareQQ',
  124. 'onMenuShareWeibo', 'hideMenuItems',
  125. 'showMenuItems', 'hideAllNonBaseMenuItem',
  126. 'showAllNonBaseMenuItem', 'translateVoice',
  127. 'startRecord', 'stopRecord', 'onRecordEnd',
  128. 'playVoice', 'pauseVoice', 'stopVoice',
  129. 'uploadVoice', 'downloadVoice', 'chooseImage',
  130. 'previewImage', 'uploadImage', 'downloadImage',
  131. 'getNetworkType', 'openLocation', 'getLocation',
  132. 'hideOptionMenu', 'showOptionMenu', 'closeWindow',
  133. 'scanQRCode', 'chooseWXPay',
  134. 'openProductSpecificView', 'addCard', 'chooseCard',
  135. 'openCard' ]
  136. });
  137. },
  138. error:function(XMLHttpRequest,textStatus,errorThrown){
  139. console.log("jsonp.error:"+textStatus);
  140. }
  141. });
  142. var success_jsonp = function(json){
  143. console.log(json);
  144. };
  145. wx.ready(function(){
  146. // config信息验证后会执行ready方法,所有接口调用都必须在config接口获得结果之后,config是一个客户端的异步操作,所以如果需要在页面加载时就调用相关接口,则须把相关接口放在ready函数中调用来确保正确执行〿
  147. //对于用户触发时才调用的接口,则可以直接调用,不需要放在ready函数中〿
  148. //分享到朋友圈
  149. wx.onMenuShareTimeline({
  150. title: document.querySelector("head title").innerHTML, // 分享标题
  151. link: g_weixinObj.lineLink, // 分享链接
  152. imgUrl: g_weixinObj.imgUrl, // 分享图标
  153. desc: g_weixinObj.desc
  154. });
  155. //获取“分享给朋友”按钮点击状态及自定义分享内容接叿
  156. wx.onMenuShareAppMessage({
  157. title: document.querySelector("head title").innerHTML, // 分享标题
  158. desc: g_weixinObj.desc, // 分享描述
  159. link: g_weixinObj.lineLink, // 分享链接
  160. imgUrl: g_weixinObj.imgUrl, // 分享图标
  161. type: '', // 分享类型,music、video或link,不填默认为link
  162. dataUrl: '' // 如果type是music或video,则要提供数据链接,默认为空
  163. });
  164. });
  165. wx.onMenuShareWeibo({
  166. title: document.querySelector("head title").innerHTML, // 分享标题
  167. desc: g_weixinObj.desc, // 分享描述
  168. link: g_weixinObj.lineLink, // 分享链接
  169. imgUrl: g_weixinObj.imgUrl, // 分享图标
  170. success: function () {
  171. // 用户确认分享后执行的回调函数
  172. },
  173. cancel: function () {
  174. // 用户取消分享后执行的回调函数
  175. }
  176. });
  177. wx.onMenuShareQZone({
  178. title: document.querySelector("head title").innerHTML, // 分享标题
  179. desc: g_weixinObj.desc, // 分享描述
  180. link: g_weixinObj.lineLink, // 分享链接
  181. imgUrl: g_weixinObj.imgUrl, // 分享图标
  182. success: function () {
  183. // 用户确认分享后执行的回调函数
  184. },
  185. cancel: function () {
  186. // 用户取消分享后执行的回调函数
  187. }
  188. });
  189. wx.onMenuShareQQ({
  190. title: document.querySelector("head title").innerHTML, // 分享标题
  191. desc: g_weixinObj.desc, // 分享描述
  192. link: g_weixinObj.lineLink, // 分享链接
  193. imgUrl: g_weixinObj.imgUrl, // 分享图标
  194. success: function () {
  195. // 用户确认分享后执行的回调函数
  196. },
  197. cancel: function () {
  198. // 用户取消分享后执行的回调函数
  199. }
  200. });
  201. wx.error(function(res){
  202. // config信息验证失败会执行error函数,如签名过期导致验证失败,具体错误信息可以打开config的debug模式查看,也可以在返回的res参数中查看,对于SPA可以在这里更新签名〿
  203. });
  204. }
  205. weixinShare();
  206. // var track_mouse_enabled = false;
  207. // var track_mouse_interval_id = null;
  208. // function track_mouse_interval_callback()
  209. // {
  210. // var mx = krpano.get("mouse.x");
  211. // var my = krpano.get("mouse.y");
  212. // var pnt = krpano.screentosphere(mx,my);
  213. // var h = pnt.x;
  214. // var v = pnt.y;
  215. // document.getElementById("mousepos").innerHTML = 'x="' + mx + '" y="' + my + '" ath="' + h.toFixed(2) + '" atv="' + v.toFixed(2) + '"';
  216. // }
  217. // function track_mouse()
  218. // {
  219. // if (krpano)
  220. // {
  221. // if (track_mouse_enabled == false)
  222. // {
  223. // // enable - call 60 times per second
  224. // track_mouse_interval_id = setInterval(track_mouse_interval_callback, 1000.0 / 60.0);
  225. // track_mouse_enabled = true;
  226. // }
  227. // else
  228. // {
  229. // // disable
  230. // clearInterval(track_mouse_interval_id);
  231. // document.getElementById("mousepos").innerHTML = "";
  232. // track_mouse_enabled = false;
  233. // }
  234. // }
  235. // }
  236. </script>
  237. <!-- <script src="https://wapbaike.baidu.com/operation/api/getwxsign?callback=weixin_callback"></script> -->
  238. </div>
  239. <!-- <script src="http://res.wx.qq.com/open/js/jweixin-1.2.0.js"></script>
  240. <script src="https://code.jquery.com/jquery-3.1.1.min.js"></script>
  241. <script src="plugins/weixin.js"></script> -->
  242. </body>
  243. </html>