minor fixes

This commit is contained in:
Leon van Kammen 2023-05-23 17:22:00 +02:00
parent b1f426d48b
commit 9360fdee93
6 changed files with 454 additions and 148 deletions

View file

@ -1064,7 +1064,9 @@ xrf.frag.href = function(v, opts){
const distance = camera.position.distanceTo(newPos);
//if( distance > portalArea ){
if( !renderer.xr.isPresenting && !confirm("teleport to "+v.string+" ?") ) return
if( !renderer.xr.isPresenting ){
if( !confirm("teleport to "+v.string+" ?") ) return
}
xrf.navigator.to(v.string) // ok let's surf to HREF!
console.log("teleport!")

View file

@ -1064,7 +1064,9 @@ xrf.frag.href = function(v, opts){
const distance = camera.position.distanceTo(newPos);
//if( distance > portalArea ){
if( !renderer.xr.isPresenting && !confirm("teleport to "+v.string+" ?") ) return
if( !renderer.xr.isPresenting ){
if( !confirm("teleport to "+v.string+" ?") ) return
}
xrf.navigator.to(v.string) // ok let's surf to HREF!
console.log("teleport!")

View file

@ -91,7 +91,7 @@ input[type="submit"] {
border-radius: 10px;
border: 5px solid #1c1c3299;
padding: 0px 6px;
bottom:73;
bottom:73px;
position: absolute;
}

View file

@ -95,6 +95,7 @@ function SnackBar(userOptions) {
document.body.appendChild(_Container);
}
_Container.innerHTML = ''
_Element = document.createElement("div");
_Element.classList.add("js-snackbar__wrapper");
@ -243,7 +244,7 @@ function SnackBar(userOptions) {
});
setTimeout(function() {
_Container.removeChild(_Element);
try { _Container.removeChild(_Element); } catch (e) { }
}, 1000);
};

File diff suppressed because one or more lines are too long

View file

@ -107,7 +107,9 @@ xrf.frag.href = function(v, opts){
const distance = camera.position.distanceTo(newPos);
//if( distance > portalArea ){
if( !renderer.xr.isPresenting && !confirm("teleport to "+v.string+" ?") ) return
if( !renderer.xr.isPresenting ){
if( !confirm("teleport to "+v.string+" ?") ) return
}
xrf.navigator.to(v.string) // ok let's surf to HREF!
console.log("teleport!")