Created
February 19, 2014 20:42
-
-
Save tcg/9101056 to your computer and use it in GitHub Desktop.
Read minds while using http://pointingpoker.com/ Also includes some bonus tips/material.
This file contains hidden or 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
/** | |
* Add this style to the page. It's like you can read minds. | |
* Ugly, but it works. It's a free example, alright!? | |
*/ | |
.playerPoints::after { | |
content: attr(data-point-value); | |
font-style: italic; | |
font-weight: bolder; | |
background-color: #eee; | |
padding-left: 1em; | |
} | |
/** | |
* Also, if you change the `data-points` attribute value on any | |
* of the `.voteButton` elements, that value will be | |
* propogated for everyone when you click the button. | |
* Includes anything - HTML, scripts, etc. | |
* E.g., hyperlinks work, as do script tags containing | |
* 'window.close'. ;) | |
*/ |
Looks like this is patched up and no longer works. Nor does the arbitrary code/value injection. Oh, well.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Ha! The app was updated, so the CSS workaround doesn't work without a slight modification.