Skip to content

Commit

Permalink
Update sv-panoid.html
Browse files Browse the repository at this point in the history
  • Loading branch information
freealise authored May 24, 2024
1 parent 2d5076d commit 3713fce
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions examples/basic/sv-panoid.html
Original file line number Diff line number Diff line change
Expand Up @@ -494,11 +494,11 @@ <h2>GoogleStreetViewLoader.load</h2>
const xhttp = new XMLHttpRequest();
xhttp.onload = function() {
document.getElementsByClassName('bookmarklet')[0].href = "javascript:(function(){" + encodeURIComponent(this.responseText) + "})()";
}
if (ids.length>0) { load(ids[0]); }
}
xhttp.open("GET", "bookmarklet.js");
xhttp.send();
}
loadBookmarklet();

var intv, lnk, lnks;
var k=1;
Expand All @@ -508,9 +508,8 @@ <h2>GoogleStreetViewLoader.load</h2>
if (idParam && idParam != '') {
ids = idParam.split('&')[0].split(',');
}
window.addEventListener('load', function() {
if (ids.length>0) { load(ids[0]); }
});
loadBookmarklet();

</script>
</body>
</html>

0 comments on commit 3713fce

Please sign in to comment.