Lieber Besucher, herzlich willkommen bei: krpano.com Forum. Falls dies Ihr erster Besuch auf dieser Seite ist, lesen Sie sich bitte die Hilfe durch. Dort wird Ihnen die Bedienung dieser Seite näher erläutert. Darüber hinaus sollten Sie sich registrieren, um alle Funktionen dieser Seite nutzen zu können. Benutzen Sie das Registrierungsformular, um sich zu registrieren oder informieren Sie sich ausführlich über den Registrierungsvorgang. Falls Sie sich bereits zu einem früheren Zeitpunkt registriert haben, können Sie sich hier anmelden.
|
|
Quellcode |
1 2 3 4 5 6 |
<mobile><left url="%SWFPATH%/images/<?php print $pano[$i] ?>.tiles/tablet_l.jpg" /> <front url="%SWFPATH%/images/<?php print $pano[$i] ?>.tiles/tablet_f.jpg" /> <right url="%SWFPATH%/images/<?php print $pano[$i] ?>.tiles/tablet_r.jpg" /> <back url="%SWFPATH%/images/<?php print $pano[$i] ?>.tiles/tablet_b.jpg" /> <up url="%SWFPATH%/images/<?php print $pano[$i] ?>.tiles/tablet_u.jpg" /> <down url="%SWFPATH%/images/<?php print $pano[$i] ?>.tiles/tablet_d.jpg" /></mobile> |
|
|
Quellcode |
1 2 3 |
<mobile> <cube url="%SWFPATH%/images/<?php print $pano[$i] ?>.tiles/tablet_%s.jpg" /> </mobile> |
|
|
Quellcode |
1 |
if( hotspot[ mapping ].loadedbytes GT hotspot[ get( h )].bytes, ... |
thanks for the report!I recently updated to last version and discovered that some 'if' actions don't work as expected.
|
|
Quellcode |
1 |
openthumbs( ) |
|
|
Quellcode |
1 |
if( %1 != NEXT, |
|
|
Quellcode |
1 |
if( != NEXT, |
Zitat
additionally I'm also thinking about if 'empty string' parameters should resolve to 'null'... but this might eventually introduce other compatibly problems so probably not...
are there any opinions to this?
|
|
Quellcode |
1 2 3 |
var x = ""; console.log(x == false); //true console.log(x == 0); //true |
|
|
Quellcode |
1 2 3 |
var x = ""; console.log(x == null); //false console.log(x === null); //false |
|
|
Quellcode |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
var y = "";
var x = null;
if(x == false){
console.log('x is false');
};
if(y == false){
console.log('y is false');
};
if(x == y){ //false == false ?
console.log('so x and y are equal?');
}else {
console.log('nope');
};
|
)sorry, there is a small misunderstanding, I don't mean the comparing,
Zitat
In javascript an empty string evaluates as a falsy just like null, false, undefined, 0, NaN.
|
|
Quellcode |
1 |
test(,,,,); |
I agree of course,
Zitat
IMHO empty strings should be ALWAYS enclosed between " or ' characters. That's the most usual treatment in almost any programming language, no matter how ancient or modern.
'openthumbs( )' should be exactly the same as 'openthumbs()' and 'openthumbs( )' etc, no matter how many white spaces you put there: that's not an argument at all, and for sure that's not the 'null' argument.
|
|
Quellcode |
1 |
test(,,,,); |
|
|
Quellcode |
1 2 3 4 5 6 7 |
<action name="someaction"> if(%1 === null, set(somevar, 'defaultvalue'); , set(somevar, %1); ); trace(somevar); </action> |
|
|
Quellcode |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
set(test, 0);
set(test, null);
trace(test);
if(test === null,
trace('test === null');
);
if(test == null,
trace('test == null');
);
if(test == 'null',
trace('test == null');
);
|
Dieser Beitrag wurde bereits 1 mal editiert, zuletzt von »Zephyr« (21. November 2011, 19:42)
Benutzerinformationen überspringen
Wohnort: Netherlands
Beruf: Krpano custom coding / Virtual Tours / Photography / Musician / Recording engineer
: https://pame.virtualtuur.comyes, but this is correct so as it is,would you take a look at the videoispaused-problem? The video still wont stop/exit!
yes, of course, why should I have removed that from my todo list?And another thing: You said some time ago that the krpanoprotect-tool would support private keys for HTML5-encryption some day. Is that still on your to do-list?

Hi,
just one quick addition to the release from adove:
I have updated the current packages with an updated krpanoJS viewer.
There was still one small bug: (thanks to Sacha Griffin for reporting)
- When the url of a plugin or hotspot element was set again to the same url value during loading, then the loading of that element had never finished.
Best regards,
Klaus