mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-01 02:38:43 -05:00
Clean up white-space.
This commit is contained in:
parent
893f8fb2cc
commit
5ddcfe25b9
1 changed files with 9 additions and 9 deletions
|
@ -8,15 +8,15 @@
|
||||||
<script type="text/paperscript" canvas="canvas">
|
<script type="text/paperscript" canvas="canvas">
|
||||||
var file = document.getElementById('file');
|
var file = document.getElementById('file');
|
||||||
file.addEventListener('change', function (event) {
|
file.addEventListener('change', function (event) {
|
||||||
var files = event.target.files;
|
var files = event.target.files;
|
||||||
for (var i = 0; i < files.length; i++) {
|
for (var i = 0; i < files.length; i++) {
|
||||||
var file = files[i];
|
var file = files[i];
|
||||||
if (file.type.match('svg')) {
|
if (file.type.match('svg')) {
|
||||||
project.importSVG(file, function(item) {
|
project.importSVG(file, function(item) {
|
||||||
console.log(item);
|
console.log(item);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
</head>
|
</head>
|
||||||
|
|
Loading…
Reference in a new issue