Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

サイドバーの実装について #1

Open
cognitom opened this issue Jan 24, 2015 · 0 comments
Open

サイドバーの実装について #1

cognitom opened this issue Jan 24, 2015 · 0 comments

Comments

@cognitom
Copy link
Member

表題の件、調べつつまとめてみます。

仕様から

  • Chromeは仕様上、サイトバーを用意していない。(提案には上がっているが望み薄?)
  • 開発者ツールパネル(devtools.panels)を使うことはできるかも。要調査

HTMLインジェクションの問題点

結論から言うと、当初案のような画面分割はできないようです。ほかにもいくつか問題が。

  • ng-inspectorのように�上にかぶせるだけなら簡単だけど、TechDocsの用途には使いにくい。あまりクールじゃない
  • 強引に以下を全て書き換えて、自分自身と翻訳ページをそれぞれ<iframe>に入れ並べることは可能。ただし、遅すぎる。
  • 翻訳元がHTTPSで、翻訳先がHTTPだと、セキュリティポリシー違反で表示不可

なので

HTMLインジェクションはちょっと望み薄。開発者ツールパネルの方を引き続き調査して、ひとまずはポップアップでできることから。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant