Skip to content

优化加入 HMCL 报错崩溃交流群#431

Open
neveler wants to merge 7 commits into
HMCL-dev:mainfrom
neveler:patch-5
Open

优化加入 HMCL 报错崩溃交流群#431
neveler wants to merge 7 commits into
HMCL-dev:mainfrom
neveler:patch-5

Conversation

@neveler
Copy link
Copy Markdown
Contributor

@neveler neveler commented Mar 22, 2026

优化加入 HMCL 报错崩溃交流群

变更

  • 使用主题自带的 jquery 插件库控制弹窗
  • 允许用户直接切换上一页 / 下一页

image

https://patch-5-docs.hmcl.workers.dev/crash-support-group

@zkitefly
Copy link
Copy Markdown
Member

还在更新吗?

@neveler
Copy link
Copy Markdown
Contributor Author

neveler commented Apr 20, 2026

还在更新吗?

这个我想等 #445 完成之后再改。

@neveler neveler marked this pull request as ready for review June 2, 2026 13:37
@zkitefly zkitefly closed this Jun 3, 2026
@zkitefly zkitefly reopened this Jun 3, 2026
@zkitefly
Copy link
Copy Markdown
Member

zkitefly commented Jun 3, 2026

@codex review

Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 57da3d96f7

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

var sec = parseInt(text.textContent, 10) || 10;
var timer = setInterval(function () {
text.textContent = --sec;
window.addEventListener("load", () => {
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Open the gate before waiting for images

Because the rules dialog is only opened from the window load event, it waits for every image on the page (including the QR code below the link) to finish loading before showing the modal. On slow or stalled image loads, first-time visitors can see and click the QQ invite link for an extended period without ever seeing the required notice, which defeats the purpose of gating access; use DOMContentLoaded/ready instead so the modal appears as soon as the DOM is available.

Useful? React with 👍 / 👎.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

因为弹窗依赖 jquery 插件,所以需要等待 main.min.js 加载完毕后才能执行弹窗动作。
为缓解此问题我已为页面内容添加模糊效果并将文章中的图片调整为懒加载模式。

@zkitefly
Copy link
Copy Markdown
Member

zkitefly commented Jun 3, 2026

@codex review

@chatgpt-codex-connector
Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Keep them coming!

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

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

Successfully merging this pull request may close these issues.

2 participants