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

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

Đang mở
#3,160 1 bình luận 0 reaction 1 người được giao Xem trên GitHub

@Bezart đang làm issue này rồi.

Từ ngày 27/8/2022.

Ngôn ngữ chính
HTML
Star
25.5k
Fork
4k
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

I was reading 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:
<a href="#">Scripts: async, defer</a>

And maybe another one at the bottom of the content:
<a href="#">Back to top of page</a>

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.

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.