{"id":20301328,"url":"https://github.com/davedupplaw/jquery.thermometer","last_synced_at":"2026-03-15T18:14:58.710Z","repository":{"id":17823570,"uuid":"20724552","full_name":"davedupplaw/jquery.thermometer","owner":"davedupplaw","description":"An SVG thermometer for jQuery","archived":false,"fork":false,"pushed_at":"2017-05-27T20:11:42.000Z","size":16,"stargazers_count":6,"open_issues_count":3,"forks_count":9,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-25T09:49:25.066Z","etag":null,"topics":["javascript","javascript-library","jquery","jquery-plugin","jquery-widgets","svg-thermometer","temperature","thermometer"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/davedupplaw.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-06-11T12:40:08.000Z","updated_at":"2022-03-10T02:35:54.000Z","dependencies_parsed_at":"2022-08-04T21:15:39.397Z","dependency_job_id":null,"html_url":"https://github.com/davedupplaw/jquery.thermometer","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/davedupplaw%2Fjquery.thermometer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/davedupplaw%2Fjquery.thermometer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/davedupplaw%2Fjquery.thermometer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/davedupplaw%2Fjquery.thermometer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/davedupplaw","download_url":"https://codeload.github.com/davedupplaw/jquery.thermometer/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248410168,"owners_count":21098772,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["javascript","javascript-library","jquery","jquery-plugin","jquery-widgets","svg-thermometer","temperature","thermometer"],"created_at":"2024-11-14T16:25:21.568Z","updated_at":"2026-03-15T18:14:58.660Z","avatar_url":"https://github.com/davedupplaw.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"jquery.thermometer\n==================\n\nAn SVG thermometer for jQuery that provides programmatic control of the\ntemperature.\n\nYou can see demos of its functionality at my website:\n\n[http://david.dupplaw.me.uk/developer/jquery-thermometer](http://david.dupplaw.me.uk/developer/jquery-thermometer)\n\nInstallation\n------------\n\nYou can install via bower:\n\n    bower install jquery.thermometer --save\n\nUsage\n-----\n\nThe thermometer is a jQuery plugin that turns any div into an SVG thermometer.\nSimply create the fixture on your page and then turn it into a jQuery object\nby calling the thermometer() method.\n\n\n    \u003cdiv id=\"fixture\"\u003e\u003c/div\u003e\n  \n         ...\n  \n    $('#fixture').thermometer();\n\n\nOptions\n-------\n\n| Option        | Values        | Description                                     | Default |\n|---------------|---------------|-------------------------------------------------|----------\n| height        | Integer       | Sets the height of the thermometer in pixels.   |  700    |\n| minValue      | Decimal       | Sets the minimum temperature                    |  0      |\n| maxValue      | Decimal       | Sets the maximum temperature                    |  8      |\n| startValue    | Decimal       | Sets the initial temperature of the thermometer |  0      |\n| topText       | String        | The text at the top of the temperature scale    |  \"8\"    |\n| bottomText    | String        | The text at the bottom of the temperature scale |  \"0\"    |\n| textColour    | String        | The colour of the text on the temperature scale | #000000 |\n| tickColour    | String        | The colour of the ticks on the temperature scale | #000000 |\n| liquidColour  | #dddddd or fn | Colour of the liquid or fn to return colour     | #ff0000 |\n| animationSpeed | Integer      | Time in milliseconds for the liquid to move     | 1000    |\n| pathToSVG     | String        | If you need to store the SVG in another place   | \"svg/thermo-bottom.svg\" |\n| valueChanged  | fn            | Callback for when the temperature has changed   | undefined |\n| onLoad        | fn            | Callback for when the widget has fully loaded   | undefined |\n\nTo set the options simply pass them in as an object to the constructor:\n\n    $('#fixture').thermometer( {\n         minValue: 0,\n         maxValue: 100,\n         liquidColour: '#aa00bb'\n    } );\n\nMethods\n-------\n\n#### setValue( value )\n\nUse `jq.thermometer( 'setValue', newValue )` to set the temperature of the thermometer.\nIf the new value is outside of the range of the thermometer, it will be clipped or capped.\n\n#### setLiquidColour( newColour )\n\nIf you want to set the liquid colour directly, you can call *setLiquidColour* to update the\ncolour of the liquid. The value must be a string in this format: \"#hhhhhh\" where h is a hex value.\nIt must be the 6-digit form of the CSS colour code (this is due to the colour blending function in use).\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdavedupplaw%2Fjquery.thermometer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdavedupplaw%2Fjquery.thermometer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdavedupplaw%2Fjquery.thermometer/lists"}