飞天AI数字人展会页面
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

332 lines
11 KiB

11 months ago
  1. <!DOCTYPE html>
  2. <html lang="zh-CN">
  3. <head>
  4. <meta charset="UTF-8" />
  5. <meta name="viewport" content="width=device-width, initial-scale=1.0" />
  6. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  7. <meta
  8. http-equiv="Cache-Control"
  9. content="no-cache, no-store, must-revalidate"
  10. />
  11. <meta http-equiv="Pragma" content="no-cache" />
  12. <meta http-equiv="Expires" content="0" />
  13. <!-- <link rel="shortcut icon" type="image/x-icon" href="images/logo.png"> -->
  14. <link rel="stylesheet" type="text/css" href="./css/libs/reset.css" />
  15. <!-- <link rel="stylesheet" type="text/css" href="./iconfont/iconfont.css">
  16. <link rel="stylesheet" type="text/css" href="./css/swiper.min.css"> -->
  17. <!-- <link rel="stylesheet" type="text/css" href="./js/libs/layui/css/layui.css" media="all"> -->
  18. <link rel="stylesheet" type="text/css" href="./css/libs/animate.min.css" />
  19. <link rel="stylesheet" type="text/css" href="./css/common.css" />
  20. <link rel="stylesheet" type="text/css" href="./css/style.css" />
  21. <!--[if lt IE 9]>
  22. <script src="js/html5shiv.js"></script>
  23. <script src="js/respond.min.js"></script>
  24. <![endif]-->
  25. <title>首页</title>
  26. </head>
  27. <!-- <div class="box_pdf">
  28. <a
  29. href="/media/pdf/AELOS PRO 3 使用手册V1.42-基于镜像1.0.4,软件版本2.0.0(含)以上.pdf"
  30. >编程学习 看pdf open</a
  31. >
  32. </div> -->
  33. <!-- https://animate.style/ -->
  34. <body>
  35. <div class="contanier">
  36. <div class="return">返回</div>
  37. <div class="flex-container">
  38. <ul class="flex-left">
  39. <li class="flex-item animate__animated animate__backInLeft">
  40. <a href="javascript:;" alt="">编程系统</a>
  41. <img src="/images/browsers/chrome.png" alt="" />
  42. </li>
  43. <li class="flex-item animate__animated animate__backInLeft">
  44. <a style="color: yellow;" href="scene_presentation.html" alt="">场景演示</a>
  45. <img src="/images/browsers/iexplore.png" alt="" />
  46. </li>
  47. <li class="flex-item animate__animated animate__backInLeft">
  48. <a style="color: yellow;" onclick="showPDF2()">编程学习</a>
  49. <img src="/images/browsers/safari.png" alt="" />
  50. </li>
  51. </ul>
  52. <div class="flex-middle">中间机器人图</div>
  53. <ul class="flex-right">
  54. <li class="flex-item animate__animated animate__fadeInTopRight">
  55. <img src="/images/browsers/iexplore.png" alt="" />
  56. <a href="javascript:;" alt="">实战竞赛</a>
  57. </li>
  58. <li class="flex-item animate__animated animate__fadeInTopRight">
  59. <img src="/images/browsers/chrome.png" alt="" />
  60. <a href="javascript:;" alt="">作品展示</a>
  61. </li>
  62. <li class="flex-item flex-item-link animate__animated animate__fadeInTopRight">
  63. <img src="/images/browsers/safari.png" alt="" />
  64. <!-- ai_chat.html -->
  65. <a style="color: yellow;" href="javascript:;" alt="">AI数字人</a>
  66. </li>
  67. </ul>
  68. </div>
  69. <div id="my-pdf"></div>
  70. <!-- 静态图片 -->
  71. <img src="./images/33e2e72d9a0c855f036b4cb55448f44af67a0635.webp" alt="静态webp">
  72. <img src="./images/azpx0-52d5m.webp" alt="动态webp">
  73. <!-- <picture>
  74. <source media="(min-width:650px)" srcset="./images/azpx0-52d5m.webp">
  75. <source media="(min-width:465px)" srcset="https://static.jyshare.com/libs/images/code-icon-script.png">
  76. <img src="./images/azpx0-52d5m.webp" style="width:auto;">
  77. </picture> -->
  78. <!-- 动态图片 -->
  79. <!-- <video autoplay loop muted playsinline>
  80. <source src="./images/azpx0-52d5m.webp" type="image/webp">
  81. Your browser does not support the video tag.
  82. </video> -->
  83. <!-- 菜单3D效果 -->
  84. <!-- <div class="show-nav">
  85. <ul id="showcase">
  86. <li class="menu-item a">编程系统</li>
  87. <li class="menu-item b">场景演示</li>
  88. <li class="menu-item c">编程学习</li>
  89. <li class="menu-item d">实战竞赛</li>
  90. <li class="menu-item e">作品展示</li>
  91. <li class="menu-item f">AI数字人</li>
  92. </ul>
  93. <div id="nav" class="noselect">
  94. <button class="left"></button>
  95. <button class="right"></button>
  96. </div>
  97. </div> -->
  98. <div class="show-nav">
  99. <div class="container">
  100. <div class="carousel">
  101. <div class="item a">编程系统</div>
  102. <div class="item b"><a href="scene_presentation.html" alt="">场景演示</a></div>
  103. <div class="item c"><a onclick="showPDF2()">编程学习</a></div>
  104. <div class="item d">实战竞赛</div>
  105. <div class="item e">作品展示</div>
  106. <div class="item f"><a href="ai_chat.html" alt="">AI数字人</a></div>
  107. </div>
  108. </div>
  109. <div class="next">Next</div>
  110. <div class="prev">Prev</div>
  111. </div>
  112. </div>
  113. </body>
  114. <script type="text/javascript" src="/js/libs/jquery-3.7.1.min.js"></script>
  115. <script type="text/javascript" src="/js/libs/flexible.js"></script>
  116. <!-- 弹出框 -->
  117. <script type="text/javascript" src="/js/libs/layer/layer.js"></script>
  118. <!-- pdf控件 -->
  119. <script type="text/javascript" src="/js/plugins/pdfobject.js"></script>
  120. <!-- 粒子插件2个 -->
  121. <!-- <script type="text/javascript" src="/js/plugins/particles.min.js"></script>
  122. <script type="text/javascript" src="/js/plugins/app.js"></script> -->
  123. <!-- 菜单3D效果2个 -->
  124. <script type="text/javascript" src="js/plugins/jquery.reflection.js"></script>
  125. <script type="text/javascript" src="js/plugins/jquery.cloud9carousel.js"></script>
  126. <script type="text/javascript">
  127. function showPDF() {
  128. var pdf = document.createElement('embed')
  129. pdf.src =
  130. '/media/pdf/AELOS PRO 3 使用手册V1.42-基于镜像1.0.4,软件版本2.0.0(含)以上.pdf'
  131. pdf.type = 'application/pdf'
  132. pdf.width = '100%'
  133. pdf.height = 'calc(100vh)'
  134. document.getElementById('pdf-container').appendChild(pdf)
  135. }
  136. function showPDF2() {
  137. PDFObject.embed(
  138. '/media/pdf/AELOS PRO 3 使用手册V1.42-基于镜像1.0.4,软件版本2.0.0(含)以上.pdf',
  139. '#my-pdf'
  140. )
  141. }
  142. $('.flex-item-link').on('click', function () {
  143. $(this).find('img').addClass('active animate__animated animate__zoomInDown');
  144. // $(this).find('img').on('click', function () {
  145. // const _this = $(this)
  146. // setTimeout(function () {
  147. // _this.removeClass('animate__zoomInDown').addClass('animate__animated animate__backOutRight')
  148. // setTimeout(function(){
  149. // window.top.location.href = 'ai_chat.html';
  150. // return false;
  151. // },1000)
  152. // }, 1000)
  153. // })
  154. const _this = $(this)
  155. setTimeout(function () {
  156. _this.find('img').removeClass('animate__zoomInDown').addClass('animate__animated animate__backOutRight')
  157. setTimeout(function(){
  158. window.top.location.href = 'ai_chat.html';
  159. return false;
  160. },1000)
  161. }, 2000)
  162. })
  163. $('.return').on('click', function () {
  164. $('#my-pdf').removeClass('pdfobject-container')
  165. $('#my-pdf').children().remove()
  166. window.location.reload();
  167. })
  168. // 菜单切换
  169. var showcase = $('#showcase')
  170. showcase.Cloud9Carousel({
  171. yOrigin: 52,
  172. yRadius: 40,
  173. itemClass: 'menu-item',
  174. // mirror: {
  175. // gap: 12,
  176. // height: 0.2
  177. // },
  178. buttonLeft: $('#nav > .left'),
  179. buttonRight: $('#nav > .right'),
  180. autoPlay: 1,
  181. bringToFront: true,
  182. onLoaded: function () {
  183. showcase.css('visibility', 'visible')
  184. showcase.css('display', 'none')
  185. showcase.fadeIn(1500)
  186. },
  187. })
  188. $('#nav > button').click(function (e) {
  189. var b = $(e.target).addClass('down')
  190. setTimeout(function () {
  191. b.removeClass('down')
  192. }, 80)
  193. })
  194. $(document).keydown(function (e) {
  195. switch (e.keyCode) {
  196. /* left arrow */
  197. case 37:
  198. $('#nav > .left').click()
  199. break
  200. /* right arrow */
  201. case 39:
  202. $('#nav > .right').click()
  203. }
  204. })
  205. // 菜单3D效果
  206. var carousel = $(".carousel"),
  207. items = $(".item"), // 轮播图的每一项
  208. itemCount = items.length,
  209. currdeg = 0,
  210. autoRotateInterval,
  211. autoRotateEnabled = true; // 标记是否启用自动旋转
  212. rotationDuration = 2000; // 旋转时间,单位为毫秒
  213. $(".next").on("click", { d: "n" }, btnRotate);
  214. $(".prev").on("click", { d: "p" }, btnRotate);
  215. // 绑定点击事件
  216. items.on("click", function() {
  217. var index = $(this).index(); // 获取被点击项的索引
  218. rotateToItem(index); // 旋转到指定项
  219. });
  220. // 开始自动旋转
  221. function startAutoRotate() {
  222. if (autoRotateInterval) {
  223. clearInterval(autoRotateInterval);
  224. }
  225. autoRotateInterval = setInterval(function() {
  226. // 6个60
  227. // 4个90
  228. currdeg = currdeg - 60; // 向左旋转,每次 60 度
  229. updateTransform();
  230. }, rotationDuration);
  231. }
  232. // 停止自动旋转
  233. function stopAutoRotate() {
  234. clearInterval(autoRotateInterval);
  235. }
  236. // 旋转到指定项
  237. function rotateToItem(index) {
  238. var itemAngle = 360 / itemCount; // 计算每一项的角度
  239. var targetDeg = -index * itemAngle; // 计算目标角度
  240. var deltaDeg = targetDeg - currdeg; // 计算旋转的角度差
  241. // 6个 如果旋转角度差大于 180 度,则选择顺时针旋转
  242. // 4个 90
  243. if (Math.abs(deltaDeg) > 180) {
  244. deltaDeg = (deltaDeg > 0 ? deltaDeg - 360 : deltaDeg + 360);
  245. }
  246. // 设置旋转的时间和缓动效果
  247. carousel.css({
  248. // transition: "transform " + (rotationDuration / 1000) + "s ease-out",
  249. "-webkit-transform": "rotateY(" + (currdeg + deltaDeg) + "deg)",
  250. "-moz-transform": "rotateY(" + (currdeg + deltaDeg) + "deg)",
  251. "-o-transform": "rotateY(" + (currdeg + deltaDeg) + "deg)",
  252. "transform": "rotateY(" + (currdeg + deltaDeg) + "deg)"
  253. });
  254. // 更新当前旋转角度
  255. currdeg += deltaDeg;
  256. // 触发旋转后停止自动旋转
  257. stopAutoRotate();
  258. // 确保在旋转完成后继续自动旋转
  259. setTimeout(function() {
  260. if (autoRotateEnabled) {
  261. startAutoRotate();
  262. }
  263. }, rotationDuration); // 旋转时间与自动旋转间隔匹配
  264. }
  265. // 更新 transform 样式
  266. function updateTransform() {
  267. carousel.css({
  268. "-webkit-transform": "rotateY(" + currdeg + "deg)",
  269. "-moz-transform": "rotateY(" + currdeg + "deg)",
  270. "-o-transform": "rotateY(" + currdeg + "deg)",
  271. "transform": "rotateY(" + currdeg + "deg)"
  272. });
  273. }
  274. function btnRotate(e){
  275. // 6个60
  276. // 4个90
  277. if(e.data.d=="n"){
  278. currdeg = currdeg - 60;
  279. }
  280. if(e.data.d=="p"){
  281. currdeg = currdeg + 60;
  282. }
  283. updateTransform()
  284. // 触发旋转后停止自动旋转
  285. stopAutoRotate();
  286. // 确保在旋转完成后继续自动旋转
  287. setTimeout(function() {
  288. if (autoRotateEnabled) {
  289. startAutoRotate();
  290. }
  291. }, rotationDuration); // 旋转时间与自动旋转间隔匹配
  292. }
  293. // 页面加载完成后开始自动旋转
  294. $(document).ready(function() {
  295. startAutoRotate();
  296. });
  297. </script>
  298. </html>