{"id":20435967,"url":"https://github.com/d4nyll/odometeor","last_synced_at":"2025-04-12T21:36:21.800Z","repository":{"id":27081249,"uuid":"30547925","full_name":"d4nyll/odometeor","owner":"d4nyll","description":"A Meteor wrapper for odometer by HubSpot, for Blaze","archived":false,"fork":false,"pushed_at":"2018-12-05T13:42:09.000Z","size":21,"stargazers_count":3,"open_issues_count":0,"forks_count":3,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-26T15:48:08.344Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://atmospherejs.com/d4nyll/odometeor","language":"CSS","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/d4nyll.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-02-09T17:18:24.000Z","updated_at":"2018-12-05T13:42:11.000Z","dependencies_parsed_at":"2022-09-02T00:40:25.714Z","dependency_job_id":null,"html_url":"https://github.com/d4nyll/odometeor","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/d4nyll%2Fodometeor","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/d4nyll%2Fodometeor/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/d4nyll%2Fodometeor/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/d4nyll%2Fodometeor/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/d4nyll","download_url":"https://codeload.github.com/d4nyll/odometeor/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248637322,"owners_count":21137531,"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":[],"created_at":"2024-11-15T08:38:40.171Z","updated_at":"2025-04-12T21:36:21.778Z","avatar_url":"https://github.com/d4nyll.png","language":"CSS","funding_links":[],"categories":[],"sub_categories":[],"readme":"# odometeor\n\n[![Join the chat at https://gitter.im/d4nyll/odometeor](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/d4nyll/odometeor?utm_source=badge\u0026utm_medium=badge\u0026utm_campaign=pr-badge\u0026utm_content=badge)\n\nA wrapper for [odometer](http://github.hubspot.com/odometer/) by [HubSpot](http://www.hubspot.com/).\n\n## Demo\n\n* [Basic](http://odometeor.meteor.com/)\n* [Different Theme](http://odometeor.meteor.com/theme/)\n* [Using API](http://odometeor.meteor.com/api/)\n\n## How to use\n\n### Initiate\n#### In a template\n\nPass in a number into the template to initiate odometeor. You can then change the value inside.\n\n\t{{\u003e odometeor 800}}\n\n#### API-style\n\nCall the `Odometeor.create(id, beforeId, options)` function, where:\n\n* `id` is the ID of the odometer\n* `beforeId` is the ID of the element you want to insert the odometer before\n* `options` is an object, all valid options are demonstrated below\n\n```js\nTemplate.api.rendered = function () {\n\tvar opts = {\n\t\tvalue: 87123, // REQUIRED\n\t\tformat: '(,ddd).dd', // Change how digit groups are formatted, and how many digits are shown after the decimal point\n\t\tduration: 3000, // Change how long the javascript expects the CSS animation to take\n\t\ttheme: 'car', // Specify the theme (if you have more than one theme css file on the page)\n\t\tanimation: 'count' // Count is a simpler animation method which just increments the value\n\t};\n\tOdometeor.create('epicodometeor', 'beforethis', opts);\n};\n```\n\n### Changing value\n\nThe value of the odometer can be changed either:\n\n**Using jQuery**\n\n\t$('.odometeor').html(845);\n\n**Just Javascript**\n\n\tdocument.getElementsByClassName('odometeor')[0].innerHTML = 489;\n\n### Get all odometeor\n\nTo get all instances of Odometeor, simply run `Odometeor.getInstances()`.\n\n## Features\n\nIf you want a feature in the [library](https://github.com/HubSpot/odometer) that is not in this package, please open up an issue.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fd4nyll%2Fodometeor","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fd4nyll%2Fodometeor","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fd4nyll%2Fodometeor/lists"}