-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
88 additions
and
78 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,51 +1,26 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<!-- <script type="text/javascript" src="../helper/logger.js"></script> --> | ||
<script type="text/javascript" src="../source/eve/eve.js"></script> | ||
<script type="text/javascript" src="../source/raphael.core.js"></script> | ||
<script type="text/javascript" src="../source/raphael.svg.js"></script> | ||
<script type="text/javascript" src="../source/raphael.vml.js"></script> | ||
<script type="text/javascript"> | ||
window.onload = function () { | ||
var clicker = function (e) { | ||
var tgt = p.getById(e.target.raphaelid); | ||
console.log('clicked', [tgt.type, tgt.id], arguments); | ||
}, | ||
p = window.paper = Raphael(document.getElementById('containerDiv'), 300, 300), | ||
r, | ||
r2, | ||
g; | ||
<head> | ||
<!-- <script type="text/javascript" src="../helper/logger.js"></script> --> | ||
<script type="text/javascript" src="../source/eve/eve.js"></script> | ||
<script type="text/javascript" src="../source/raphael.core.js"></script> | ||
<script type="text/javascript" src="../source/raphael.svg.js"></script> | ||
<script type="text/javascript" src="../source/raphael.vml.js"></script> | ||
<script type="text/javascript"> | ||
Raphael(10, 10, 600, 400, function () { | ||
var paper = window.pap = this; | ||
|
||
g = p.group().click(clicker); | ||
paper.text({ | ||
text: ['Use index.html as a template to work on temporary workspace!', | ||
'', | ||
'Ensure that your test files are named spec-<somename>.html'], | ||
'text-anchor': 'left', | ||
'vertical-align': 'top' | ||
}); | ||
}); | ||
</script> | ||
</head> | ||
|
||
r = p.rect({ | ||
x: 10, | ||
y: 10, | ||
width: 100, | ||
height: 100, | ||
fill: '#ff0000' | ||
}, g); | ||
|
||
r2 = p.rect({ | ||
x: 110, | ||
y: 110, | ||
width: 100, | ||
height: 100, | ||
fill: '#ff0000' | ||
}, g); | ||
|
||
p.text({ | ||
text: 'hello world', | ||
title: 'blah' | ||
}); | ||
|
||
p.clear(); | ||
|
||
}; | ||
</script> | ||
</head> | ||
<body> | ||
<div id='containerDiv' style='border:1px solid red;position:absolute;width:600px;height:600px;top:100px;left:100px;'></div> | ||
</body> | ||
<body> | ||
</body> | ||
</html> |