Update index.html
Browse files- index.html +94 -6
index.html
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
<head>
|
4 |
<meta charset="UTF-8">
|
5 |
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
6 |
-
<title
|
7 |
<link href="https://cdnjs.cloudflare.com/ajax/libs/tailwindcss/2.2.19/tailwind.min.css" rel="stylesheet">
|
8 |
<style>
|
9 |
* {
|
@@ -267,6 +267,48 @@
|
|
267 |
align-items: center;
|
268 |
justify-content: center;
|
269 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
270 |
</style>
|
271 |
</head>
|
272 |
<body>
|
@@ -396,7 +438,7 @@
|
|
396 |
<h3 class="feature-title">应用层面</h3>
|
397 |
<ul class="feature-content list-disc list-inside">
|
398 |
<li>拓展应用场景</li>
|
399 |
-
<li>开发个性化功能</li>
|
400 |
<li>探索产业化路径</li>
|
401 |
</ul>
|
402 |
</div>
|
@@ -427,6 +469,13 @@
|
|
427 |
<button class="nav-button next" onclick="nextSlide()">→</button>
|
428 |
<div class="slide-number">1 / 7</div>
|
429 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
430 |
<script>
|
431 |
let currentSlide = 1;
|
432 |
const totalSlides = 7;
|
@@ -464,13 +513,52 @@
|
|
464 |
label.textContent = size + '%';
|
465 |
}
|
466 |
|
|
|
467 |
document.addEventListener('keydown', function(event) {
|
468 |
-
|
469 |
-
|
470 |
-
|
471 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
472 |
}
|
473 |
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
474 |
</script>
|
475 |
</body>
|
476 |
</html>
|
|
|
3 |
<head>
|
4 |
<meta charset="UTF-8">
|
5 |
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
6 |
+
<title>智言视寻</title>
|
7 |
<link href="https://cdnjs.cloudflare.com/ajax/libs/tailwindcss/2.2.19/tailwind.min.css" rel="stylesheet">
|
8 |
<style>
|
9 |
* {
|
|
|
267 |
align-items: center;
|
268 |
justify-content: center;
|
269 |
}
|
270 |
+
|
271 |
+
.fullscreen-button {
|
272 |
+
position: fixed;
|
273 |
+
bottom: 40px;
|
274 |
+
left: 40px;
|
275 |
+
background: rgba(66, 153, 225, 0.9);
|
276 |
+
color: white;
|
277 |
+
padding: 0.8rem;
|
278 |
+
border-radius: 50%;
|
279 |
+
font-size: 1.2rem;
|
280 |
+
cursor: pointer;
|
281 |
+
z-index: 100;
|
282 |
+
border: none;
|
283 |
+
width: 50px;
|
284 |
+
height: 50px;
|
285 |
+
display: flex;
|
286 |
+
align-items: center;
|
287 |
+
justify-content: center;
|
288 |
+
transition: all 0.3s ease;
|
289 |
+
}
|
290 |
+
|
291 |
+
.fullscreen-button:hover {
|
292 |
+
background: rgba(66, 153, 225, 1);
|
293 |
+
transform: scale(1.1);
|
294 |
+
}
|
295 |
+
|
296 |
+
/* 全屏模式样式 */
|
297 |
+
:fullscreen {
|
298 |
+
background: linear-gradient(135deg, #f6f8fc 0%, #e9f0f8 100%);
|
299 |
+
}
|
300 |
+
|
301 |
+
:-webkit-full-screen {
|
302 |
+
background: linear-gradient(135deg, #f6f8fc 0%, #e9f0f8 100%);
|
303 |
+
}
|
304 |
+
|
305 |
+
:-moz-full-screen {
|
306 |
+
background: linear-gradient(135deg, #f6f8fc 0%, #e9f0f8 100%);
|
307 |
+
}
|
308 |
+
|
309 |
+
:-ms-fullscreen {
|
310 |
+
background: linear-gradient(135deg, #f6f8fc 0%, #e9f0f8 100%);
|
311 |
+
}
|
312 |
</style>
|
313 |
</head>
|
314 |
<body>
|
|
|
438 |
<h3 class="feature-title">应用层面</h3>
|
439 |
<ul class="feature-content list-disc list-inside">
|
440 |
<li>拓展应用场景</li>
|
441 |
+
<li>开发个性化功能</li>
|
442 |
<li>探索产业化路径</li>
|
443 |
</ul>
|
444 |
</div>
|
|
|
469 |
<button class="nav-button next" onclick="nextSlide()">→</button>
|
470 |
<div class="slide-number">1 / 7</div>
|
471 |
|
472 |
+
<!-- 全屏按钮 -->
|
473 |
+
<button class="fullscreen-button" onclick="toggleFullScreen()">
|
474 |
+
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
|
475 |
+
<path d="M8 3H5a2 2 0 0 0-2 2v3m18 0V5a2 2 0 0 0-2-2h-3m0 18h3a2 2 0 0 0 2-2v-3M3 16v3a2 2 0 0 0 2 2h3"></path>
|
476 |
+
</svg>
|
477 |
+
</button>
|
478 |
+
|
479 |
<script>
|
480 |
let currentSlide = 1;
|
481 |
const totalSlides = 7;
|
|
|
513 |
label.textContent = size + '%';
|
514 |
}
|
515 |
|
516 |
+
// 修改后的键盘事件监听,支持上下键
|
517 |
document.addEventListener('keydown', function(event) {
|
518 |
+
switch(event.key) {
|
519 |
+
case 'ArrowRight':
|
520 |
+
case 'ArrowDown':
|
521 |
+
nextSlide();
|
522 |
+
break;
|
523 |
+
case 'ArrowLeft':
|
524 |
+
case 'ArrowUp':
|
525 |
+
prevSlide();
|
526 |
+
break;
|
527 |
+
case 'f':
|
528 |
+
toggleFullScreen();
|
529 |
+
break;
|
530 |
}
|
531 |
});
|
532 |
+
|
533 |
+
// 全屏切换功能
|
534 |
+
function toggleFullScreen() {
|
535 |
+
if (!document.fullscreenElement &&
|
536 |
+
!document.mozFullScreenElement &&
|
537 |
+
!document.webkitFullscreenElement &&
|
538 |
+
!document.msFullscreenElement) {
|
539 |
+
// 进入全屏
|
540 |
+
if (document.documentElement.requestFullscreen) {
|
541 |
+
document.documentElement.requestFullscreen();
|
542 |
+
} else if (document.documentElement.msRequestFullscreen) {
|
543 |
+
document.documentElement.msRequestFullscreen();
|
544 |
+
} else if (document.documentElement.mozRequestFullScreen) {
|
545 |
+
document.documentElement.mozRequestFullScreen();
|
546 |
+
} else if (document.documentElement.webkitRequestFullscreen) {
|
547 |
+
document.documentElement.webkitRequestFullscreen(Element.ALLOW_KEYBOARD_INPUT);
|
548 |
+
}
|
549 |
+
} else {
|
550 |
+
// 退出全屏
|
551 |
+
if (document.exitFullscreen) {
|
552 |
+
document.exitFullscreen();
|
553 |
+
} else if (document.msExitFullscreen) {
|
554 |
+
document.msExitFullscreen();
|
555 |
+
} else if (document.mozCancelFullScreen) {
|
556 |
+
document.mozCancelFullScreen();
|
557 |
+
} else if (document.webkitExitFullscreen) {
|
558 |
+
document.webkitExitFullscreen();
|
559 |
+
}
|
560 |
+
}
|
561 |
+
}
|
562 |
</script>
|
563 |
</body>
|
564 |
</html>
|