-
-
Notifications
You must be signed in to change notification settings - Fork 224
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
add sandpack to ajaxapp #1423
add sandpack to ajaxapp #1423
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -116,6 +116,41 @@ JavaScriptとDOMはWebアプリケーション開発において切っても切 | |
- `index.js`からコンソールに出力されたログを確認した | ||
- JavaScriptからHTMLドキュメントを操作するDOMについて学んだ | ||
|
||
ここまでのアプリは次のURLで確認できます。 | ||
|
||
- <https://jsprimer.net/use-case/ajaxapp/entrypoint/src/> | ||
|
||
<!-- externalResourcesをサイト上のjsを読み込んでいるのでデプロイするまでローカルでは確認できない。これはSandpackの問題を回避するため https://github.com/honkit/honkit-plugin-sandpack#note --> | ||
|
||
<!-- sandpack:{ | ||
"files": { | ||
"/index.js": { | ||
"path": "src/index.js" | ||
}, | ||
"/index.html": { | ||
"path": "src/index.html", | ||
"active": true | ||
}, | ||
"/src/index.js": { | ||
"code": "/* このファイルは本編とは無関係のファイルなので無視してください。 本編のindex.jsは一つ上のディレクトリにあります */", | ||
"hidden": true | ||
} | ||
}, | ||
"environment": "static", | ||
"template": "vanilla", | ||
"options": { | ||
"showLineNumbers": true, | ||
"editorHeight": 550, | ||
"externalResources": ["https://jsprimer.net/use-case/ajaxapp/entrypoint/src/index.js"], | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. https://github.com/honkit/honkit-plugin-sandpack#note で書いてるハック的な。 |
||
"showConsole": true, | ||
"showConsoleButton": true | ||
}, | ||
"honkitSettings": { | ||
"isOpen": true, | ||
"hideExitButton": true | ||
} | ||
} --> | ||
|
||
[Same Origin Policy]: https://developer.mozilla.org/ja/docs/Web/Security/Same-origin_policy | ||
[アプリケーション開発の準備]: ../../setup-local-env/README.md | ||
[ブラウザーの開発者ツールとは?]: https://developer.mozilla.org/ja/docs/Learn/Common_questions/What_are_browser_developer_tools | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ちょっとprev/nextボタンと被り気味だった。
これHonKit/GitBookのデフォルトテーマのボタンが良くない。