{"id":19510809,"url":"https://github.com/smuyyh/githubwidgets","last_synced_at":"2025-04-26T03:32:23.367Z","repository":{"id":108853143,"uuid":"66754523","full_name":"smuyyh/GitHubWidgets","owner":"smuyyh","description":"GitHub html widget, include User Widget、Repo Widget and Activity Widget.","archived":false,"fork":false,"pushed_at":"2017-03-10T07:46:12.000Z","size":1329,"stargazers_count":18,"open_issues_count":0,"forks_count":7,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-04T07:36:00.279Z","etag":null,"topics":["github","github-html-widget","gua-jian","javascript","weibo"],"latest_commit_sha":null,"homepage":"http://blog.csdn.net/yyh352091626","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/smuyyh.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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-08-28T07:03:40.000Z","updated_at":"2024-02-16T07:00:05.000Z","dependencies_parsed_at":"2023-04-15T22:47:03.957Z","dependency_job_id":null,"html_url":"https://github.com/smuyyh/GitHubWidgets","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/smuyyh%2FGitHubWidgets","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/smuyyh%2FGitHubWidgets/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/smuyyh%2FGitHubWidgets/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/smuyyh%2FGitHubWidgets/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/smuyyh","download_url":"https://codeload.github.com/smuyyh/GitHubWidgets/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250926916,"owners_count":21509057,"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":["github","github-html-widget","gua-jian","javascript","weibo"],"created_at":"2024-11-10T23:17:47.432Z","updated_at":"2025-04-26T03:32:23.360Z","avatar_url":"https://github.com/smuyyh.png","language":"JavaScript","readme":"# GitHubWidgets\nGitHub html widget, include User Widget、Repo Widget and Activity Widget.\n\n## Priview\n### User Widget\n\u003cimg src=\"https://github.com/smuyyh/GitHubWidgets/blob/master/screenshot/github_user_1.png?raw=true\" width=210/\u003e\n\n## Repo Widget\n\u003cimg src=\"https://github.com/smuyyh/GitHubWidgets/blob/master/screenshot/github_repo_1.png?raw=true\" width=380/\u003e\n\n## Activity Widget\n\u003cimg src=\"https://github.com/smuyyh/GitHubWidgets/blob/master/screenshot/github_activity_1.png?raw=true\" width=380/\u003e\n\n## How to use\n- User Widget\n\nCopy and paste this code in your HTML body, replacing “data-username” with your GitHub username\n```xml\n\u003cdiv class=\"github-widget\" data-username=\"smuyyh\"\u003e\u003c/div\u003e\n\u003cscript src=\"../js/github_user_widget_en.js\"\u003e\u003c/script\u003e\n```\n\n- Repo Widget\n\nCopy and paste this code in your HTML body, replacing “data-repo” with your GitHub username/reponame\n```xml\n\u003cscript type=\"text/javascript\" src=\"../js/jquery-1.7.1.min.js\"\u003e\u003c/script\u003e\n\u003cscript type=\"text/javascript\" src=\"../js/github_repo_widget_en.js\"\u003e\u003c/script\u003e\n\u003cdiv class=\"github-widget-repo\" data-repo=\"smuyyh/SprintNBA\" style=\"width:600px\"\u003e\u003c/div\u003e\n```\nor\n```xml\n\u003chead\u003e\n    \u003clink type=\"text/css\" rel=\"stylesheet\" href=\"../css/github_repo_widget_2.css\"/\u003e\n\u003c/head\u003e\n\u003cbody\u003e\n    \u003cdiv class=\"gitinfo\" style=\"margin:15px 0; width:600px;\"\u003e\u003c/div\u003e\n\n    \u003cscript src=\"../js/jquery-1.7.1.min.js\"\u003e\u003c/script\u003e\n    \u003cscript type=\"text/javascript\"\u003evar git_name =\"/smuyyh/IncrementallyUpdate\"\u003c/script\u003e\n    \u003cscript type=\"text/javascript\" src=\"../js/github_repo_widget_2_en.js\"\u003e\u003c/script\u003e\n\u003c/body\u003e\n```\n\n- Activity Widget\n\nCopy and paste link in your HTML head, and div/script in your HTML body, replacing “username” with your GitHub username\n```xml\n\u003chead\u003e\n    \u003clink href=\"../css/github_widget_activity.css\" rel=\"stylesheet\"\u003e\n\u003c/head\u003e\n\n\u003cbody\u003e\n    \u003cdiv id=\"widget-container\" style=\"width:600px\"\u003e\u003c/div\u003e\n    \u003cscript src=\"../js/jquery-1.7.1.min.js\"\u003e\u003c/script\u003e\n    \u003cscript src=\"../js/github_widget_activity.js\"\u003e\u003c/script\u003e\n    \u003cscript\u003e\n      $(function(){\n        $('#widget-container').activity({\n          username: 'smuyyh'\n        });\n      });\n    \u003c/script\u003e\n\u003c/body\u003e\n```\n\n## 为博客添加GitHub挂件（以CSDN博客为例）\n管理博客 -\u003e 博客栏目 -\u003e 添加栏目\n```xml\n\u003cdiv class=\"github-widget\" data-username=\"smuyyh\"\u003e\u003c/div\u003e\n\u003cscript type=\"text/javascript\" src=\"https://rawgit.com/smuyyh/GitHubWidgets/master/js/github_user_widget_en.js\"\u003e\u003c/script\u003e\n\n\u003c!--js文件真实地址是以raw.githubusercontent.com开头，raw.githubusercontent.com在Response中设置了X-Content-Type-Options:nosniff ，\n浏览器强制检查资源的MIME。解决方法就是将js链接中的raw.githubusercontent.com换成rawgit.com。  --\u003e\n```\n![csdn](https://github.com/smuyyh/GitHubWidgets/blob/master/screenshot/csdn_widget_1.png?raw=true)\n\n### 效果\n\n\u003cimg src=\"https://github.com/smuyyh/GitHubWidgets/blob/master/screenshot/csdn_widget_2.png?raw=true\" width=210/\u003e\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsmuyyh%2Fgithubwidgets","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsmuyyh%2Fgithubwidgets","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsmuyyh%2Fgithubwidgets/lists"}