Changeset 9655 for src/django_gheat
- Timestamp:
- Sep 3, 2011, 12:34:39 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/django_gheat/wlheatmap/static/heatmap_extensions.js
r9651 r9655 335 335 * On HEX to RGB: 336 336 * http://stackoverflow.com/questions/5798868/need-some-tips-with-how-to-convert-a-hexadecimal-color-value-to-a-rgb-one/5798900#5798900 337 * Note that '#' comes out as '%23', so substr() starts at char 3338 337 */ 339 colour = parseInt((colour.substr( 3, 2)),16) + ',' + parseInt((colour.substr(5, 2)),16) + ',' + parseInt((colour.substr(7, 2)),16);338 colour = parseInt((colour.substr(1, 2)),16) + ',' + parseInt((colour.substr(3, 2)),16) + ',' + parseInt((colour.substr(5, 2)),16); 340 339 341 340 // some checks if values are correct, and adding them to parts of the link
Note:
See TracChangeset
for help on using the changeset viewer.