Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function test() {
- window.setTimeout(zoomto1,<?= getParam(0)["interval"] ;?>);
- window.setTimeout(reset, <?= getParam(0)["finZoom"] ;?>);
- window.setTimeout(zoomto2, <?= getParam(1)["interval"]; ?>);
- window.setTimeout(reset, <?= getParam(1)["finZoom"] ;?>)
- }
- function zoomto1() {
- zoom.to({
- x: <?= getParam(0)["posX"]?>,
- y: <?= getParam(0)["posY"]?>,
- scale: <?= getParam(0)["scale"]?>
- });
- }
- function zoomto2() {
- zoom.to({
- x: <?= getParam(1)["posX"]?>,
- y: <?= getParam(1)["posY"]?>,
- scale: <?= getParam(1)["scale"]?>
- });
- }
- function reset(){
- zoom.out()
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement