Created
January 29, 2011 03:17
-
-
Save savetheclocktower/801471 to your computer and use it in GitHub Desktop.
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
<!DOCTYPE HTML> | |
<html> | |
<head> | |
<title>Test page</title> | |
<script type="text/javascript"> | |
if (HTMLDivElement) { | |
HTMLDivElement.prototype.foo = function() { alert('aha!'); }; | |
} | |
</script> | |
<style> | |
#target { | |
border: 1px solid #696; | |
padding: 60px 0; | |
text-align: center; width: 200px; | |
-webkit-border-radius: 8px; | |
-moz-border-radius: 8px; | |
border-radius: 8px; | |
-webkit-box-shadow: #666 0px 2px 3px; | |
-moz-box-shadow: #666 0px 2px 3px; | |
box-shadow: #666 0px 2px 3px; | |
background: #EEFF99; | |
background: -webkit-gradient(linear, 0 0, 0 bottom, from(#EEFF99), to(#66EE33)); | |
background: -moz-linear-gradient(#EEFF99, #66EE33); | |
-pie-background: linear-gradient(#EEFF99, #66EE33); | |
behavior: url(../../build/test.htc); | |
} | |
</style> | |
</head> | |
<body> | |
<div id="target">Hello.</div> | |
</body> | |
</html> |
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
<PUBLIC:COMPONENT lightWeight="true"> | |
<PUBLIC:ATTACH EVENT="oncontentready" FOR="element" ONEVENT="init()" /> | |
<PUBLIC:ATTACH EVENT="ondocumentready" FOR="element" ONEVENT="init()" /> | |
<script type="text/javascript"> | |
function init() { | |
element.runtimeStyle; | |
} | |
</script> | |
</PUBLIC:COMPONENT> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment