{"id":18438615,"url":"https://github.com/moovweb/mtv-ted","last_synced_at":"2025-04-14T13:23:14.706Z","repository":{"id":6790908,"uuid":"8038240","full_name":"moovweb/mtv-ted","owner":"moovweb","description":null,"archived":false,"fork":false,"pushed_at":"2013-02-07T01:27:11.000Z","size":148,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":17,"default_branch":"master","last_synced_at":"2025-02-16T10:44:16.582Z","etag":null,"topics":[],"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/moovweb.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":"2013-02-05T21:13:02.000Z","updated_at":"2013-12-18T16:00:15.000Z","dependencies_parsed_at":"2022-09-16T21:22:10.973Z","dependency_job_id":null,"html_url":"https://github.com/moovweb/mtv-ted","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/moovweb%2Fmtv-ted","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moovweb%2Fmtv-ted/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moovweb%2Fmtv-ted/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moovweb%2Fmtv-ted/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/moovweb","download_url":"https://codeload.github.com/moovweb/mtv-ted/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248886854,"owners_count":21177756,"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-06T06:20:44.139Z","updated_at":"2025-04-14T13:23:14.676Z","avatar_url":"https://github.com/moovweb.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Basics\nThis project works with the Moovweb SDK.\n\nSee detailed documentation for the MoovSDK at http://console.moovweb.com\n\n## Moovweb's GoogleTV Library (MTV)\n\nThe purpose of the mtv.js library is to provide users with a framework to build GoogleTV web applications using Moovweb technology.\n \nEach zone will automatically have keyboard and D-pad functionality and you will be able to tab between zones. You will also be able to press enter or click a content div to activate it's primary link.\n \n### Directions\n\nSimply setup the following HTML hierarchy in the DOM and mtv will take care of the rest.\n \n### Structure\n\n    # One zone wrapper\n    \u003cdiv class=\"mtv-zone\"\u003e\n\n      # One items-div wrapper\n      \u003cdiv class=\"mtv-items-div\"\u003e\n\n        # Multiple mtv-div elements paired with mtv-item elements\n        \u003cdiv class=\"mtv-div\"\u003e\n          \u003cdiv class=\"mtv-item\"\u003e\n            # Usually a link here.\n          \u003c/div\u003e\n        \u003c/div\u003e\n\n        # This structure works too. \n        \u003cdiv class=\"mtv-div mtv-item\"\u003e\n            # Usually a link here.\n        \u003c/div\u003e\n\n      \u003c/div\u003e\n    \u003c/div\u003e\n \n### Optional Settings\n\nThe MTV library comes with an array of options that can be enabled by setting data-mtv attributes on various elements.\n\n#### Link Behavior\n\nBy default, clicking or pressing enter will go to the first link found in the mtv-div. If you'd like to go to a different link, simply set that anchor with the attribute: `data-mtv-component=\"link\"`.\n\nYou can also have the Enter key simulate a click event by setting the element you want to click with the attribute: `data-mtv-component=\"click\"`.\n\n#### Ajax\n\nYou can also enable links to AJAX their URL into a certain zone on your page. To do this follow the next two steps:\n\n  1. Set the element that will call the AJAX with the attribute: `data-mtv-component=\"ajax\"`.\n  - You'll also need to set a target for where this content should be placed. You'll notice that every **.mtv-zone** has an attribute automatically assigned called **data-mtv-id**. Use this id number to set your AJAX element with the attribute: `data-mtv-target=\"id_number\"`. Now the link knows in which zone the content will be placed.\n\n#### Styles\n\nEach zone can have an additional class of \"mtv-sidebar\" or \"mtv-grid\" that come with default styles.\n\nJust go into assets/stylesheets/main.scss and uncomment the line: `@import \"globals/_mtv\";`\n\n#### Moovweb's Uranium.js Widgets\n\nThe MTV library also works well with [Uranium.js](http://uraniumjs.com), Moovweb's mobile widget library that comes prepackaged with common mobile widgets you'll find yourself using on every site.\n\n## Domains\nRemember to put all domains you're going to hit in your etc/hosts\nor to run your server with the `-auto-hosts=true` option.\n\n    127.0.0.1 \tmlocal.ted.com\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmoovweb%2Fmtv-ted","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmoovweb%2Fmtv-ted","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmoovweb%2Fmtv-ted/lists"}