Created
March 4, 2013 10:42
-
-
Save kbariotis/5081431 to your computer and use it in GitHub Desktop.
Untitled
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
details { | |
decorator: url(#details-closed); | |
} | |
details[open] { | |
decorator: url(#details-open); | |
} |
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
<decorator id="details-closed"> | |
<script> | |
this.listen({ | |
selector: "#<style> | |
summary", type: "click", | |
handler: function (event) { | |
event.currentTarget.open = true; | |
} | |
}); | |
</script> | |
<template> | |
<a id="summary"> | |
> <content select="summary:first-of-type"></content> | |
</a> | |
</template> | |
</decorator> | |
<decorator id="details-open"> | |
<script> | |
this.listen({ | |
selector: "#summary", type: "click", | |
handler: function (event) { | |
event.currentTarget.open = false; | |
} | |
}); | |
</script> | |
<template> | |
<a id="summary"> | |
V <content select="summary:first-of-type"></content> | |
</a> | |
<content></content> | |
</template> | |
</decorator> |
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
// alert('Hello world!'); |
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
{"view":"split","fontsize":"100","seethrough":"","prefixfree":"1","page":"all"} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment