Advertisement
Guest User

Untitled

a guest
Nov 15th, 2018
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.60 KB | None | 0 0
  1. <?php
  2.     $nbvaleurs = count(getZoom());
  3.     echo $nbvaleurs;
  4.     for($i=0; $i<$nbvaleurs; $i++){
  5.         //print_r(getTest($i));
  6.         getParam($i);
  7.         echo 'function param_global() {
  8.    window.setTimeout(zoomto,<?= getParam('.$i.')["interval"] ;?>);
  9.    window.setTimeout(reset, <?= getParam('.$i.')["finZoom"] ;?>);
  10.    }
  11.        function zoomto() {
  12.        zoom.to({
  13.            x: <?= getParam('.$i.')["posX"]?>,
  14.    y: <?= getParam('.$i.')["posY"]?>,
  15.    scale: <?= getParam('.$i.')["scale"]?>
  16.        });
  17.    }
  18.  
  19.    function reset(){
  20.        zoom.out()
  21.    }';
  22.     }
  23.     ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement