{"id":19277474,"url":"https://github.com/mojotech/pioneer.iframe","last_synced_at":"2026-06-23T10:31:08.500Z","repository":{"id":19277395,"uuid":"22514022","full_name":"mojotech/pioneer.iframe","owner":"mojotech","description":"Pioneer widget for iframes ","archived":false,"fork":false,"pushed_at":"2014-08-04T01:25:25.000Z","size":148,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":46,"default_branch":"master","last_synced_at":"2026-05-18T11:36:42.025Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"CoffeeScript","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/mojotech.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":"2014-08-01T14:43:02.000Z","updated_at":"2014-08-04T01:23:51.000Z","dependencies_parsed_at":"2022-09-26T22:10:48.468Z","dependency_job_id":null,"html_url":"https://github.com/mojotech/pioneer.iframe","commit_stats":null,"previous_names":["mojotech/pioneer.widget.iframe"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/mojotech/pioneer.iframe","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mojotech%2Fpioneer.iframe","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mojotech%2Fpioneer.iframe/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mojotech%2Fpioneer.iframe/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mojotech%2Fpioneer.iframe/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mojotech","download_url":"https://codeload.github.com/mojotech/pioneer.iframe/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mojotech%2Fpioneer.iframe/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34686725,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-23T02:00:07.161Z","response_time":65,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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-09T21:05:48.409Z","updated_at":"2026-06-23T10:31:08.472Z","avatar_url":"https://github.com/mojotech.png","language":"CoffeeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"Pioneer Iframe\n=====================\n\n[![Build Status](http://img.shields.io/travis/mojotech/pioneer.iframe.svg?style=flat\n)](https://travis-ci.org/mojotech/pioneer.iframe)\n[![Gitter chat](http://img.shields.io/badge/gitter-chat-blue.svg?style=flat\n)](https://gitter.im/mojotech/pioneer)\n\n`Widget.Iframe` is a utility class that extends from the base `Pioneer` `Widget` Class.\n\n## Table of contents\n  * [Installing](#installing)\n  * [Using](#Using)\n  * [Api](#api)\n    * [Focus](#focus)\n    * [Unfocus](#unfocus)\n\n## Installing\n\n    npm install pioneer.iframe\n\n## Using\n\n    pioneer --require node_modules/pioneer.iframe/lib\n\n```js\n  MyFrame = Widget.Iframe.extend({\n    root: \"iframe\"\n  });\n\n  frame = new MyFrame();\n  // Changing the context to interact with the contents of the iframe\n  frame.focus();\n  // Resetting the context to interact with the iframes parent.\n  frame.unfocus();\n```\n\n# API\n\n## Focus\n\n  `function focus()...`\n\n  Switches context from the default window to the iframe. All subsequent methods will be performed in the iframe until `unfocus()` is called.\n  Returns a promise that resolves to the widget instance on which it was called\n\n## Unfocus\n\n  `function unfocus()...`\n\n  Switches context back to the default window (or the parent of the iframe).\n  Returns a promise that resolves to the widget instance on which it was called","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmojotech%2Fpioneer.iframe","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmojotech%2Fpioneer.iframe","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmojotech%2Fpioneer.iframe/lists"}