{"id":21114016,"url":"https://github.com/bobiscool/baidudaxinghao","last_synced_at":"2026-01-02T16:04:47.925Z","repository":{"id":126321857,"uuid":"56374480","full_name":"bobiscool/baidudaxinghao","owner":"bobiscool","description":null,"archived":false,"fork":false,"pushed_at":"2016-04-16T08:55:03.000Z","size":34,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-21T04:41:39.541Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"HTML","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bobiscool.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-04-16T08:53:28.000Z","updated_at":"2016-04-16T08:54:05.000Z","dependencies_parsed_at":"2023-06-16T07:15:19.435Z","dependency_job_id":null,"html_url":"https://github.com/bobiscool/baidudaxinghao","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bobiscool%2Fbaidudaxinghao","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bobiscool%2Fbaidudaxinghao/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bobiscool%2Fbaidudaxinghao/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bobiscool%2Fbaidudaxinghao/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bobiscool","download_url":"https://codeload.github.com/bobiscool/baidudaxinghao/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243560740,"owners_count":20310985,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-20T02:00:18.694Z","updated_at":"2026-01-02T16:04:47.888Z","avatar_url":"https://github.com/bobiscool.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# baidudaxinghao\n\n首先 是*鼠标移入* *鼠标移出* 这两个效果\n而点击之后，这两个效果就关了。\n一开始**鼠标移入** **鼠标移出** 都是有效果的\n但是一旦我点击`某个`星之后，这个效果就关闭了，也就是不能移入移出的效果了，但是我再次这个星点击一次后，选择就取消了，移入已出效果可以继续。\n\u003e 需要注意的是，我点击这颗星之后，效果取消了，那万一点击那颗星呢？所以这个地方onoff，必须私有化，但是好像私有化也有一个问题，那便是：如果我点击A onoff关了 后 我又点击B onoff也是关了 但是这是私有化的onoff 不是全局onoff 难道需要私有onoff？ 再想想 流程\n- 设置私有化onoff\n- 点击某个星，它的onoff关了，所以到处滑动也没有移入移出效果，到处滑动也就是变动，变动就不能订到所指的这个位置，所以需要储存这个状态。，点击之后onoff关了，那就储存这个点\n- 然后点击他自己的时候；onoff又开了\n- 点击林外一个的时候，onoff继续关\n- 再点回自己的时候，onoff已经被刷新为出世状态点击他再次关\n- 点A，A关,点B，B关，再点回A还是关？说明，在点B的时候，A就已经开了，只是现在只看B开或者关\n- 想想，是不是只要有一个是关着的就是关？\n- 其实有一个锅，传给谁，那就是谁，效果就关，点击这个谁两次，那这个锅就关闭显示移入移出效果\n- 那也就是说，要每个都有一个计数器\n- 这个锅代表什么？那个黑点？ 黑点点击之后他和他前面的星星都显示被点击。\n- 一个开关，某个被点击基数次，锅启动，点击其他点，此点被点击次数自动清零\n\n---\n###we need\n\n- 定义两个循环\n  - 点击事件循环\n    - 前一个自身属性清零\n      - 点击之后，自身属性加一 \n      - 自身属性mod2 == 1 onoff关闭\n        - 开始染色。\n  - 鼠标移入移出循环\n    - 判断onoff 是否为on\n      -是的话，就染色。 \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbobiscool%2Fbaidudaxinghao","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbobiscool%2Fbaidudaxinghao","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbobiscool%2Fbaidudaxinghao/lists"}