Advertisement
Guest User

Untitled

a guest
Nov 15th, 2018
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function test() {
  2.         window.setTimeout(zoomto1,<?= getParam(0)["interval"] ;?>);
  3.         window.setTimeout(reset, <?= getParam(0)["finZoom"] ;?>);
  4.         window.setTimeout(zoomto2, <?= getParam(1)["interval"]; ?>);
  5.         window.setTimeout(reset, <?= getParam(1)["finZoom"] ;?>)
  6.     }
  7.     function zoomto1() {
  8.         zoom.to({
  9.             x: <?= getParam(0)["posX"]?>,
  10.             y: <?= getParam(0)["posY"]?>,
  11.             scale: <?= getParam(0)["scale"]?>
  12.         });
  13.     }
  14.     function zoomto2() {
  15.         zoom.to({
  16.             x: <?= getParam(1)["posX"]?>,
  17.             y: <?= getParam(1)["posY"]?>,
  18.             scale: <?= getParam(1)["scale"]?>
  19.         });
  20.     }
  21.  
  22.     function reset(){
  23.         zoom.out()
  24.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement