index.php 603 Bytes
Newer Older
Michael Murtaugh's avatar
Michael Murtaugh committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
<!DOCTYPE html>
<?php

$src = $_REQUEST['src'];
if (!isset($src)) { $src = "/contours/S-20-1-11.jpg"; }
$datasrc = preg_replace('/_\d+.jpg$/i', "_540.json", $src);

?>
<html>
<head>
    <meta charset="utf-8" />
    <script type="text/javascript" src="/lib/jquery.min.js"></script>
    <link rel="stylesheet" type="text/css" href="contourdraw.css">
    <script>
        var image_source = "<?php echo $src ?>",
         json_source = "<?php echo $datasrc ?>",
         json_scale = 2.0;
    </script>
    <script src="contourdraw.js"></script>
</head>

<body>
    <div id="canvas"></div>
</body>

</html>