javascript-tutorial / javascript-tutorial/en.javascript.info

Implement link in left hand navigation panel to top of page. Maybe?

未關閉
#3,160 1 則留言 0 個 reaction 已指派 1 人 在 GitHub 檢視

@Bezart 已經在處理了。

開始於 2022年8月27日。

主要語言
HTML
星號
25.5k
分支
4k
PR 合併指標
30 天內沒有已合併 PR

描述

I was reading [script-async-defer](https://javascript.info/script-async-defer), and I started to navigate backwards up the page using the navigation panel on the left. I have used the navigation panel before to go down the page, but I prefer to use the mouse wheel and keep my pointer in the middle of the screen.

However, this time I decided to scan the article in reverse and I noticed that it was useful for reinforcing what I had just read. However, I could not get back to the very top.

I notice that the only place that `href="#"` is used in the source code is in the code examples.

Maybe, a link at the top of the navigation panel to the top of the page would be useful. For example:
`Scripts: async, defer`

And maybe another one at the bottom of the content:
`Back to top of page`

I can find a use case for both buttons.
* The link in the navigation panel would be used as described above.
* I would use the `Back to top of page` link in this way, for example:
1. I would scan the page relatively quickly using my mouse wheel, until I reached the bottom of the page.
2. At the bottom, I would press `Back to top of page` and then read the whole page again more slowly.

貢獻指南

這個儲存庫沒有索引到貢獻指南

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

評估

這個 Issue 還沒有評估資料。

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。