Skip to content

Commit

Permalink
fixed issues
Browse files Browse the repository at this point in the history
  • Loading branch information
Gearomatic committed Jul 22, 2024
1 parent 2d8ac5c commit 0e6072f
Show file tree
Hide file tree
Showing 5 changed files with 108 additions and 109 deletions.
108 changes: 0 additions & 108 deletions NY/Truman_Beach.html

This file was deleted.

File renamed without changes.
File renamed without changes.
107 changes: 107 additions & 0 deletions Panoramas/NY/Truman_Beach.html
Original file line number Diff line number Diff line change
@@ -1 +1,108 @@

<head>
<!-- for optimal display on high DPI devices -->
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@photo-sphere-viewer/markers-plugin/index.min.css" />
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@photo-sphere-viewer/core/index.min.css" />
<style>
a:link {
color: lightblue;
background-color: transparent;
text-decoration: none;
}

a:visited {
color: darkgray;
background-color: transparent;
text-decoration: none;
}

a:hover {
color: red;
background-color: transparent;
text-decoration: underline;
}

a:active {
color: yellow;
background-color: transparent;
text-decoration: underline;
}
html, body, #viewer {
width: 100%;
height: 100%;
margin: 0;
font-family: sans-serif;
}
.custom-tooltip {
max-width: none;
width: 300px;
box-shadow: 0 0 0 3px white;
}

.custom-tooltip .psv-tooltip-content {
padding: 0;
}

.custom-tooltip img {
width: 100%;
border-radius: 4px 4px 0 0;
}

.custom-tooltip h2,
.custom-tooltip p {
margin: 1rem;
text-align: justify;
}
</style>
</head>

<!-- the viewer container must have a defined size -->
<div id="viewer" style="width=device-width"></div>

<script type="importmap">
{
"imports": {
"three": "https://cdn.jsdelivr.net/npm/three/build/three.module.js",
"@photo-sphere-viewer/core": "https://cdn.jsdelivr.net/npm/@photo-sphere-viewer/core/index.module.js",
"@photo-sphere-viewer/markers-plugin": "https://cdn.jsdelivr.net/npm/@photo-sphere-viewer/markers-plugin/index.module.js",
"@photo-sphere-viewer/gyroscope-plugin": "https://cdn.jsdelivr.net/npm/@photo-sphere-viewer/gyroscope-plugin/index.module.js"
}
}
</script>

<script type="module">
import { Viewer } from '@photo-sphere-viewer/core';
import { MarkersPlugin } from '@photo-sphere-viewer/markers-plugin';
import { GyroscopePlugin } from '@photo-sphere-viewer/gyroscope-plugin';
const viewer = new Viewer({

plugins: [
GyroscopePlugin,
[MarkersPlugin, {
"defaultHoverScale": true,
markers: [
{
},
],
}],
],
container: document.querySelector('#viewer'),
panorama: 'Truman_Beach.jpg',
caption: '<b> Truman&#39;s Beach, Long Island, New York',
description: document.querySelector('#description').innerHTML,
sphereCorrection: { pan:0, tilt:0, roll: 0 },
navbar: [
'zoom',
'move',
'markers',
'caption',
'description',
'gyroscope'
],
});
</script>

<script type="text/template" id="description">
<p>This Photo Sphere was taken at Truman's Beach, on Friday July 12th from 7:45PM Est to 7:59PM Est.</a></p>
</script>
2 changes: 1 addition & 1 deletion NY/Truman_Beach.jpg → Panoramas/NY/Truman_Beach.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 0e6072f

Please sign in to comment.