Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
42 lines (35 sloc) 1.12 KB
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="content-type" content="text/html;charset=UTF-8" />
<title>Primer Test</title>
<script src="./jquery-1.2.6.min.js" type="text/javascript"></script>
<script src="../primer.js" type="text/javascript"></script>
<script type="text/javascript">
$(function() {
// var el = $('#p1').get(0)
var el = "#p1"
p1 = new Primer(el, 300, 300)
var box = new Primer.Layer()
box.fillStyle = "#AAFFAA"
box.strokeStyle = "#000000"
box.roundedRect(0, 0, 40, 40, 10)
box.fill()
box.stroke()
box.visible = true
// box.x = 10
p1.addChild(box)
box.mouseover(function() {
box.visible = false
})
box.mouseout(function() {
box.visible = true
})
})
</script>
</head>
<body>
<div id="p1"></div>
</body>
</html>
Something went wrong with that request. Please try again.