Created
August 16, 2013 06:51
-
-
Save jehoshua02/6247812 to your computer and use it in GitHub Desktop.
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
| <!-- inputs --> | |
| <input type="hidden" name="funding" value="85" data-caption="Funding" /> | |
| <input type="hidden" name="completion" value="25" data-caption="Completion" /> | |
| <!-- non-inputs --> | |
| <div class="meter" data-value="67%" data-caption="Funding"></div> | |
| <div class="meter" data-value="43%" data-caption="Completion"></div> | |
| <script src="jquery.js"></script> | |
| <script src="meter.js"></script> | |
| <script> | |
| $(function () { | |
| $('input[name=funding]').meter({ | |
| width: 50px, | |
| height: 100px, | |
| color: white, | |
| background-color: green, | |
| }); | |
| $('input[name=completion]').meter({ | |
| width: 50px, | |
| height: 100px, | |
| color: white, | |
| background-color: blue | |
| }); | |
| $('.meter').meter(); // perhaps javascript can get styles from css on selected elements? | |
| }); | |
| </script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment