Skip to content

Commit 0119877

Browse files
committed
4.0.8
1 parent 0d87513 commit 0119877

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

docs/github-btn.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
<!doctype html><html lang=en><meta charset=utf-8><style>body{padding:0;margin:0;overflow:hidden;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans",sans-serif;font-size:11px;font-weight:700;line-height:14px}.github-btn{height:20px;overflow:hidden}.gh-btn,.gh-count,.gh-ico{float:left}.gh-btn,.gh-count{padding:2px 5px 2px 4px;color:#333;text-decoration:none;white-space:nowrap;cursor:pointer;border-radius:3px}.gh-btn{background-color:#eee;background-image:-webkit-gradient(linear,left top,left bottom,color-stop(0,#fcfcfc),to(#eee));background-image:linear-gradient(to bottom,#fcfcfc 0,#eee 100%);background-repeat:no-repeat;border:1px solid #d5d5d5}.gh-btn:focus,.gh-btn:hover{text-decoration:none;background-color:#ddd;background-image:-webkit-gradient(linear,left top,left bottom,color-stop(0,#eee),to(#ddd));background-image:linear-gradient(to bottom,#eee 0,#ddd 100%);border-color:#ccc}.gh-btn:active{background-color:#dcdcdc;background-image:none;border-color:#b5b5b5;box-shadow:inset 0 2px 4px rgba(0,0,0,.15)}.gh-ico{width:14px;height:14px;margin-right:4px;background:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='12 12 40 40'%3e%3cpath fill='%23333' d='M32 13.4c-10.5 0-19 8.5-19 19 0 8.4 5.5 15.5 13 18 1 .2 1.3-.4 1.3-.9v-3.2c-5.3 1.1-6.4-2.6-6.4-2.6-.9-2.1-2.1-2.7-2.1-2.7-1.7-1.2.1-1.1.1-1.1 1.9.1 2.9 2 2.9 2 1.7 2.9 4.5 2.1 5.5 1.6.2-1.2.7-2.1 1.2-2.6-4.2-.5-8.7-2.1-8.7-9.4 0-2.1.7-3.7 2-5.1-.2-.5-.8-2.4.2-5 0 0 1.6-.5 5.2 2 1.5-.4 3.1-.7 4.8-.7 1.6 0 3.3.2 4.7.7 3.6-2.4 5.2-2 5.2-2 1 2.6.4 4.6.2 5 1.2 1.3 2 3 2 5.1 0 7.3-4.5 8.9-8.7 9.4.7.6 1.3 1.7 1.3 3.5v5.2c0 .5.4 1.1 1.3.9 7.5-2.6 13-9.7 13-18.1 0-10.5-8.5-19-19-19z'/%3e%3c/svg%3e") 0 0/100% 100% no-repeat}.gh-count{position:relative;display:none;margin-left:4px;background-color:#fafafa;border:1px solid #d4d4d4}.gh-count:focus,.gh-count:hover{color:#0366d6}.gh-count::after,.gh-count::before{position:absolute;display:inline-block;width:0;height:0;content:"";border-color:transparent;border-style:solid}.gh-count::before{top:50%;left:-3px;margin-top:-4px;border-width:4px 4px 4px 0;border-right-color:#fafafa}.gh-count::after{top:50%;left:-4px;z-index:-1;margin-top:-5px;border-width:5px 5px 5px 0;border-right-color:#d4d4d4}.github-btn-large{height:30px}.github-btn-large .gh-btn,.github-btn-large .gh-count{padding:3px 10px 3px 8px;font-size:16px;line-height:22px;border-radius:4px}.github-btn-large .gh-ico{width:20px;height:20px}.github-btn-large .gh-count{margin-left:6px}.github-btn-large .gh-count::before{left:-5px;margin-top:-6px;border-width:6px 6px 6px 0}.github-btn-large .gh-count::after{left:-6px;margin-top:-7px;border-width:7px 7px 7px 0}</style><span class=github-btn><a class=gh-btn href=# rel="noopener noreferrer" target=_blank><span class=gh-ico aria-hidden=true></span> <span class=gh-text></span> </a><a class=gh-count href=# rel="noopener noreferrer" target=_blank aria-hidden=true></a></span><script>!function(){"use strict";function e(t){return String(t).replace(/(\d)(?=(\d{3})+$)/g,"$1,")}function t(t){var e=document.head,a=document.createElement("script");a.src=t+"?callback=callback",e.insertBefore(a,e.firstChild)}var a,r=(g=function(){for(var t,e=[],a=window.location,r=a.href.slice(a.href.indexOf("?")+1).split("&"),s=0,o=r.length;s<o;s++)t=r[s].split("="),e.push(t[0]),e[t[0]]=t[1];return e}()).user,s=g.repo,o=g.type,n=g.count,c=g.size,l=g.v,u=document.querySelector(".gh-btn"),i=document.querySelector(".github-btn"),b=document.querySelector(".gh-text"),h=document.querySelector(".gh-count"),f=" on GitHub",d="https://github.com/",g="https://api.github.com/",x=d+r+"/"+s,C=r+"/"+s;switch(window.callback=function(t){if("Not Found"!==t.data.message){switch(o){case"watch":"2"===l?(h.textContent=t.data.subscribers_count&&e(t.data.subscribers_count),h.setAttribute("aria-label",h.textContent+" watchers"+f)):(h.textContent=t.data.stargazers_count&&e(t.data.stargazers_count),h.setAttribute("aria-label",h.textContent+" stargazers"+f));break;case"star":h.textContent=t.data.stargazers_count&&e(t.data.stargazers_count),h.setAttribute("aria-label",h.textContent+" stargazers"+f);break;case"fork":h.textContent=t.data.network_count&&e(t.data.network_count),h.setAttribute("aria-label",h.textContent+" forks"+f);break;case"follow":h.textContent=t.data.followers&&e(t.data.followers),h.setAttribute("aria-label",h.textContent+" followers"+f)}"true"===n&&""!==h.textContent&&(h.style.display="block",h.removeAttribute("aria-hidden"))}},u.href=x,o){case"watch":"2"===l?(i.className+=" github-watchers",b.textContent="Watch",h.href=x+"/watchers"):(i.className+=" github-stargazers",b.textContent="Star",h.href=x+"/stargazers"),a=b.textContent+" "+C;break;case"star":i.className+=" github-stargazers",b.textContent="Star",h.href=x+"/stargazers",a=b.textContent+" "+C;break;case"fork":i.className+=" github-forks",b.textContent="Fork",u.href=x+"/fork",h.href=x+"/network",a=b.textContent+" "+C;break;case"follow":i.className+=" github-me",b.textContent="Follow @"+r,u.href=d+r,h.href=d+r+"?tab=followers",a=b.textContent;break;case"sponsor":i.className+=" github-me",b.textContent="Sponsor @"+r,u.href=d+"sponsors/"+r,a=b.textContent}u.setAttribute("aria-label",a+f),document.title=a+f,"large"===c&&(i.className+=" github-btn-large"),"true"===n&&"sponsor"!==o&&t("follow"===o?g+"users/"+r:g+"repos/"+r+"/"+s)}()</script>
1+
<!doctype html><html lang=en><meta charset=utf-8><style>body{padding:0;margin:0;overflow:hidden;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans",sans-serif;font-size:11px;font-weight:700;line-height:14px}.github-btn{height:20px;overflow:hidden}.gh-btn,.gh-count,.gh-ico{float:left}.gh-btn,.gh-count{padding:2px 5px 2px 4px;color:#333;text-decoration:none;white-space:nowrap;cursor:pointer;border-radius:3px}.gh-btn{background-color:#eee;background-image:-webkit-gradient(linear,left top,left bottom,color-stop(0,#fcfcfc),to(#eee));background-image:linear-gradient(to bottom,#fcfcfc 0,#eee 100%);background-repeat:no-repeat;border:1px solid #d5d5d5}.gh-btn:focus,.gh-btn:hover{text-decoration:none;background-color:#ddd;background-image:-webkit-gradient(linear,left top,left bottom,color-stop(0,#eee),to(#ddd));background-image:linear-gradient(to bottom,#eee 0,#ddd 100%);border-color:#ccc}.gh-btn:active{background-color:#dcdcdc;background-image:none;border-color:#b5b5b5;box-shadow:inset 0 2px 4px rgba(0,0,0,.15)}.gh-ico{width:14px;height:14px;margin-right:4px;background:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='12 12 40 40'%3e%3cpath fill='%23333' d='M32 13.4c-10.5 0-19 8.5-19 19 0 8.4 5.5 15.5 13 18 1 .2 1.3-.4 1.3-.9v-3.2c-5.3 1.1-6.4-2.6-6.4-2.6-.9-2.1-2.1-2.7-2.1-2.7-1.7-1.2.1-1.1.1-1.1 1.9.1 2.9 2 2.9 2 1.7 2.9 4.5 2.1 5.5 1.6.2-1.2.7-2.1 1.2-2.6-4.2-.5-8.7-2.1-8.7-9.4 0-2.1.7-3.7 2-5.1-.2-.5-.8-2.4.2-5 0 0 1.6-.5 5.2 2 1.5-.4 3.1-.7 4.8-.7 1.6 0 3.3.2 4.7.7 3.6-2.4 5.2-2 5.2-2 1 2.6.4 4.6.2 5 1.2 1.3 2 3 2 5.1 0 7.3-4.5 8.9-8.7 9.4.7.6 1.3 1.7 1.3 3.5v5.2c0 .5.4 1.1 1.3.9 7.5-2.6 13-9.7 13-18.1 0-10.5-8.5-19-19-19z'/%3e%3c/svg%3e") 0 0/100% 100% no-repeat}.gh-count{position:relative;display:none;margin-left:4px;background-color:#fafafa;border:1px solid #d4d4d4}.gh-count:focus,.gh-count:hover{color:#0366d6}.gh-count::after,.gh-count::before{position:absolute;display:inline-block;width:0;height:0;content:"";border-color:transparent;border-style:solid}.gh-count::before{top:50%;left:-3px;margin-top:-4px;border-width:4px 4px 4px 0;border-right-color:#fafafa}.gh-count::after{top:50%;left:-4px;z-index:-1;margin-top:-5px;border-width:5px 5px 5px 0;border-right-color:#d4d4d4}.github-btn-large{height:30px}.github-btn-large .gh-btn,.github-btn-large .gh-count{padding:3px 10px 3px 8px;font-size:16px;line-height:22px;border-radius:4px}.github-btn-large .gh-ico{width:20px;height:20px}.github-btn-large .gh-count{margin-left:6px}.github-btn-large .gh-count::before{left:-5px;margin-top:-6px;border-width:6px 6px 6px 0}.github-btn-large .gh-count::after{left:-6px;margin-top:-7px;border-width:7px 7px 7px 0}</style><span class=github-btn><a class=gh-btn href=# rel="noopener noreferrer" target=_blank><span class=gh-ico aria-hidden=true></span> <span class=gh-text></span> </a><a class=gh-count href=# rel="noopener noreferrer" target=_blank aria-hidden=true></a></span><script>!function(){"use strict";function e(t){return String(t).replace(/(\d)(?=(\d{3})+$)/g,"$1,")}var t,a=(d=function(){for(var t,e=[],a=window.location,r=a.href.slice(a.href.indexOf("?")+1).split("&"),s=0,o=r.length;s<o;s++)t=r[s].split("="),e.push(t[0]),e[t[0]]=t[1];return e}()).user,r=d.repo,s=d.type,o=d.count,n=d.size,c=d.v,l=document.querySelector(".gh-btn"),u=document.querySelector(".github-btn"),i=document.querySelector(".gh-text"),b=document.querySelector(".gh-count"),h=" on GitHub",f="https://github.com/",d="https://api.github.com/",g=f+a+"/"+r,x=a+"/"+r;switch(window.callback=function(t){if("Not Found"!==t.data.message){switch(s){case"watch":"2"===c?(b.textContent=t.data.subscribers_count&&e(t.data.subscribers_count),b.setAttribute("aria-label",b.textContent+" watchers"+h)):(b.textContent=t.data.stargazers_count&&e(t.data.stargazers_count),b.setAttribute("aria-label",b.textContent+" stargazers"+h));break;case"star":b.textContent=t.data.stargazers_count&&e(t.data.stargazers_count),b.setAttribute("aria-label",b.textContent+" stargazers"+h);break;case"fork":b.textContent=t.data.network_count&&e(t.data.network_count),b.setAttribute("aria-label",b.textContent+" forks"+h);break;case"follow":b.textContent=t.data.followers&&e(t.data.followers),b.setAttribute("aria-label",b.textContent+" followers"+h)}"true"===o&&""!==b.textContent&&(b.style.display="block",b.removeAttribute("aria-hidden"))}},l.href=g,s){case"watch":"2"===c?(u.className+=" github-watchers",i.textContent="Watch",b.href=g+"/watchers"):(u.className+=" github-stargazers",i.textContent="Star",b.href=g+"/stargazers"),t=i.textContent+" "+x;break;case"star":u.className+=" github-stargazers",i.textContent="Star",b.href=g+"/stargazers",t=i.textContent+" "+x;break;case"fork":u.className+=" github-forks",i.textContent="Fork",l.href=g+"/fork",b.href=g+"/network",t=i.textContent+" "+x;break;case"follow":u.className+=" github-me",i.textContent="Follow @"+a,l.href=f+a,b.href=f+a+"?tab=followers",t=i.textContent;break;case"sponsor":u.className+=" github-me",i.textContent="Sponsor @"+a,l.href=f+"sponsors/"+a,t=i.textContent}l.setAttribute("aria-label",t+h),document.title=t+h,"large"===n&&(u.className+=" github-btn-large"),"true"===o&&"sponsor"!==s&&(n="follow"===s?d+"users/"+a:d+"repos/"+a+"/"+r,d=document.head,(r=document.createElement("script")).src=n+"?callback=callback",d.insertBefore(r,d.firstChild))}()</script>

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "github-buttons",
3-
"version": "4.0.7",
3+
"version": "4.0.8",
44
"description": "Showcase your GitHub (repo's) success with these buttons",
55
"private": true,
66
"homepage": "https://ghbtns.com/",

0 commit comments

Comments
 (0)