Make all examples resize to the size of the browser window.

This commit is contained in:
Jonathan Puckey 2011-05-05 16:25:17 +01:00
parent b2e2dd8888
commit 077dc58222
34 changed files with 76 additions and 49 deletions
examples/Scripts

View file

@ -3,6 +3,7 @@
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Example</title>
<link rel="stylesheet" href="../css/style.css">
<script type="text/javascript">var root = '../../'</script>
<script type="text/javascript" src="../../src/load.js"></script>
<script type="text/paperscript" canvas="canvas">
@ -31,10 +32,6 @@
path.smooth();
}
function onMouseDrag(event) {
onMouseMove(event);
}
function onMouseDown(event) {
path.selected = true;
}
@ -45,5 +42,5 @@
</script>
</head>
<body style='background-color: black'>
<canvas id='canvas' width=1024 height=768></canvas>
<canvas id='canvas' resize='true'></canvas>
</body>