git @ Cat's Eye Technologies yoob.js / 5c71aa8
Demo for yoob.Resizer; however, this all requires more thought. Chris Pressey 10 years ago
1 changed file(s) with 21 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
0 <!DOCTYPE html>
1 <head>
2 <meta charset="utf-8">
3 <title>yoob.Resizer Demo 1</title>
4 </head>
5 <body>
6
7 <h1>yoob.Resizer Demo 1</h1>
8
9 <canvas id="c"></canvas>
10
11 </body>
12 <script src="../src/yoob/resizer.js"></script>
13 <script type="text/javascript">
14
15 var c = document.getElementById('c');
16 c.style.border = "1px solid blue";
17 var s = (new yoob.Size()).init({ width: 200, height: 400 });
18 s.applyToElement(c);
19
20 </script>