tự động di chuyển khi load ảnh

This commit is contained in:
2026-06-12 20:23:00 +07:00
parent 133a8721bb
commit 00bde46c5e
2 changed files with 11 additions and 4 deletions
+7 -4
View File
@@ -111,11 +111,13 @@ html, body {
#close-viewer-btn { #close-viewer-btn {
position: absolute; position: absolute;
top: 20px; top: 5px;
left: 60px; left: 40px;
padding: 12px 24px; padding: 12px 24px;
background: rgba(255, 255, 255, 0.9); background: rgba(255, 255, 255, 0.1);
border: none; border: white solid 1px;
border-radius: 10px;
color: rgba(255, 255, 255, 0.9);
border-radius: 5px; border-radius: 5px;
font-weight: bold; font-weight: bold;
cursor: pointer; cursor: pointer;
@@ -125,6 +127,7 @@ html, body {
#close-viewer-btn:hover { #close-viewer-btn:hover {
background: white; background: white;
color: rgba(44, 44, 44, 0.9);
} }
/* Modal Overlay */ /* Modal Overlay */
.modal-overlay { .modal-overlay {
+4
View File
@@ -119,9 +119,13 @@ function initPanoramaViewer(imageUrl, hotspots = [], ownerId = null, initialPitc
activeViewer = pannellum.viewer('panorama-viewer', { activeViewer = pannellum.viewer('panorama-viewer', {
"type": "equirectangular", "type": "equirectangular",
"panorama": imageUrl, "panorama": imageUrl,
"autoRotate": 0,
"autoRotateInactivityDelay": 5000,
"autoLoad": true, "autoLoad": true,
"pitch": initialPitch, "pitch": initialPitch,
"yaw": initialYaw, "yaw": initialYaw,
"orientationOnByDefault": true,
"draggable": true,
"showControls": true, "showControls": true,
"compass": false, "compass": false,
"mouseZoom": true, "mouseZoom": true,