Skip to content

Commit

Permalink
Using a better image
Browse files Browse the repository at this point in the history
  • Loading branch information
RJain12 committed Oct 22, 2023
1 parent 4ed9d45 commit 942211e
Showing 1 changed file with 1 addition and 19 deletions.
20 changes: 1 addition & 19 deletions src/viewer.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,24 +12,6 @@
</style>
</head>
<body>
<iframe id="fullscreen-iframe" width="1200" height="700" title="someTitle" scrolling="no" src="http://renderstuff.com/tools/360-panorama-web-viewer-embed/?image=https://www.reddit.com/media?url=https%3A%2F%2Fpreview.redd.it%2Fs9hzq48dxfvb1.png%3Fwidth%3D640%26crop%3Dsmart%26auto%3Dwebp%26s%3De52c5031e1d4d9bb0496773cd6cb156ae016af1a"></iframe>

<script>
const iframe = document.getElementById('fullscreen-iframe');

function enterFullscreen() {
if (iframe.requestFullscreen) {
iframe.requestFullscreen();
} else if (iframe.mozRequestFullScreen) {
iframe.mozRequestFullScreen();
} else if (iframe.webkitRequestFullscreen) {
iframe.webkitRequestFullscreen();
} else if (iframe.msRequestFullscreen) {
iframe.msRequestFullscreen();
}
}

enterFullscreen();
</script>
<iframe id="fullscreen-iframe" width="1600" height="700" title="someTitle" scrolling="no" src="http://renderstuff.com/tools/360-panorama-web-viewer-embed/?image=https://i.ibb.co/1sb0d64/download.jpg"></iframe>
</body>
</html>

0 comments on commit 942211e

Please sign in to comment.