- 实现触摸滑动旋转查看汽车360度全景 - 添加惯性滑动效果和自动旋转展示功能 - 实现全屏沉浸式体验和精美Loading动画 - 添加Python视频帧提取脚本和浏览器端提取工具 - 包含本地HTTP服务器和完整项目文档
46 lines
2.0 KiB
HTML
46 lines
2.0 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="zh-CN">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no, viewport-fit=cover">
|
|
<meta name="apple-mobile-web-app-capable" content="yes">
|
|
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
|
|
<title>汽车360°全景展示</title>
|
|
<link rel="stylesheet" href="styles.css">
|
|
</head>
|
|
<body>
|
|
<div class="container">
|
|
<!-- Loading 画面 -->
|
|
<div class="loading-screen" id="loadingScreen">
|
|
<div class="loading-content">
|
|
<div class="loading-logo">
|
|
<svg viewBox="0 0 100 100" class="car-icon">
|
|
<path class="car-body" d="M15,60 Q20,45 35,42 L65,42 Q80,45 85,60 L85,70 L15,70 Z" fill="none" stroke="currentColor" stroke-width="2"/>
|
|
<circle class="wheel wheel-front" cx="28" cy="70" r="10" fill="none" stroke="currentColor" stroke-width="2"/>
|
|
<circle class="wheel wheel-rear" cx="72" cy="70" r="10" fill="none" stroke="currentColor" stroke-width="2"/>
|
|
<path class="car-window" d="M30,42 L38,32 L62,32 L70,42" fill="none" stroke="currentColor" stroke-width="2"/>
|
|
</svg>
|
|
</div>
|
|
<h1 class="loading-title">汽车360°全景展示</h1>
|
|
<div class="loading-bar">
|
|
<div class="loading-progress" id="loadingProgress"></div>
|
|
</div>
|
|
<p class="loading-text" id="loadingText">正在加载资源...</p>
|
|
</div>
|
|
</div>
|
|
|
|
<main class="viewer-container">
|
|
<div class="viewer">
|
|
<canvas id="carCanvas"></canvas>
|
|
</div>
|
|
<div class="hint-bar">
|
|
<span class="hint-icon">↔</span>
|
|
<span class="hint-text">左右滑动旋转查看</span>
|
|
</div>
|
|
</main>
|
|
</div>
|
|
|
|
<script src="app.js"></script>
|
|
</body>
|
|
</html>
|