Code Monkey home page Code Monkey logo

github-buttons's People

Contributors

chrisbarr avatar ded avatar dependabot[bot] avatar feralou avatar gjtorikian avatar hollowman6 avatar it-ony avatar jamiebuilds avatar jhutchings1 avatar jodal avatar joshferrara avatar krinkle avatar mariatta avatar mdo avatar mxschmitt avatar necolas avatar ntkme avatar patrickhlauke avatar rondevera avatar stevemao avatar stupideveloper avatar therealklanni avatar xhmikosr avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

github-buttons's Issues

Delete permissions over a repository for a user

Hi Chris,

it seems that when you try to delete a permission for a user doesn't work. Have you try it? this is the error that throws:

Fatal error: Uncaught exception 'APIException' with message '0: Curl request failed'

Cheers,

Marvi

The Fork with Count is Not Correct

The code I use in my website :

<iframe src="http://ghbtns.com/github-btn.html?   user=WeCase&repo=WeCase&type=fork&count=true&size=large"allowtransparency="true" frameborder="0" scrolling="0" width="130" height="30">
</iframe>

It counts 9 but the correct one is 14

http can't access http

I'm getting a strange protocol must match error.

Uncaught SecurityError: Blocked a frame with origin "http://ghbtns.com" from accessing a frame with origin "http://localhost:3000". Protocols, domains, and ports must match.

This is my iframe code:

<iframe src="http://ghbtns.com/github-btn.html?user=jasonshark&repo=oakland-crime-api&type=fork&count=true" allowtransparency="true" frameborder="0" scrolling="0" width="62" height="20"></iframe>

How can http not match http? I am running a node.js express server. I'm hoping this isn't a chrome issue. Anyone else run into this?

SSL and free certificates for ghbtns.com

I know you have addressed SSL in the readme, and beyond selfhosting could you offer SSL on your domain using a free SSL solution like https://www.startssl.com/ ?

I think it would be helpful others as I continue to run into gh-pages where not just your buttons but all of the resources have been included with explicit HTTP protocol and fail to work. This is made more complicated by the use of extensions like https everywhere which treat github as a secure only site.

Issue button?

Hi thanks for these great buttons good work!!! I'm making use of them at d2p2.pro/download

Just an idea for an addition, could you add a "report issue" button that jumps straight to: github.com/USER/REPO/issues/new with a count of the current issues?

Cheers!

Update the docs

Hi Mark.

Long time fan, first time contributor. I noticed you removed jQuery from the codebase through a pull request, but the docs still say it's in there. Now, while a huge fan of jQuery, if you don't have it, you probably shouldn't say you do.

No rush to get back to me, just wanted to make sure you were aware of the issue.

XOXO,
Dave

Another javascript version

Hi. I made my own version of this that I use on my github pages. It only has support for the Star button with the large size. The only thing you can customize is the repo.

Include these files on your website:

Then add the button like this:

Example:

Just want to put this here in case anyone wants to copy it.

Cheers.

Doesn't actually do functionality.

It doesn't point to the correct urls.

<url>/toggle_watch for watch
<url>/fork_select for fork

and for following:
https://github.com/users/follow?target=<user>

adding a "Download on Github" button

It would be cool to have similar functionality for a "Download on Github" button like on the demo page

Note: also the bugtracker link in the readme points to "markdotto/github-buttons/issues" instead of "mdo/github-buttons/issues"

Provide a non-iframe option

Would be nice to have a way of including these buttons that didn't rely on the use of an iframe. There isn't much JS involved, so it would probably be better to roll it up with a site's own scripts...maybe even have the buttons work without JS as only the count requires it.

X-Frame-Options set to DENY

I am currently experiencing this on your site as well as my own:

screen shot 2016-01-12 at 7 02 23 pm

This seems new. Like, even as of a few hours ago. Here's a glimpse at the response headers:

screen shot 2016-01-12 at 7 03 24 pm

What is adding that header and is there a way to change/remove it so it works again? πŸ˜„

h

Star

<script async defer src="https://buttons.github.io/buttons.js"></script>

Project URL change breaks people whose site(s) still use Github Pages links

I've noticed tonight, while reviewing the work of a few developers, I was repeatedly confronted with an alert that

"For security reasons, framing is not allowed."

http://cl.ly/image/3L3y3B381o2B

and then am redirected to the 404 page for what used to be the Github Pages URL for this project!

One such affected project is @stolksdorf's Parallax JS demo page, so you can head over there (at the moment) to see this redirect in action. (PS, heads up @stolksdorf!)

Though this is obviously something that @github is doing intentionally to avoid people serving framed github pages, in this particular instance it appears to break the websites of anyone who is using github-buttons in their blog or project site, etc, and hasn't yet updated the URL to refer to ghbtns.com. I'm not sure if the solution here is more evangelism about the URL change, or putting up the old GH pages again, or something else, but I just figured I'd drop in to let you know that at the moment, there are some really averse affects for anyone who uses the project and hasn't updated in the last month.

Button stays highlighted after mouse is no longer hovering

I have only tried this with the follow button. This happens on both Windows 8.1 and Ubuntu 14.04 machines with the latest version of Chrome.

When I have the mouse over the button, and slowly move it away on the top side, the button remains highlighted blue, even after the mouse is no longer over it. This does not happen when moving the mouse off in any other direction.

URGENT! gh-pages broken!

This is an urgent message to everyone! Github-Buttons is currently broken, and is impairing many sites involving them, including impress.js, many sites that I maintain, and more!

Visit http://bartaz.github.com/impress.js to see the horrendous mess. The gh-pages branch was deleted. Thus, github-buttons has broken tons of sites.

Please fix this immediately!

Add a GitHub Followers Button

It would be awesome if there was a button for a user's GitHub Followers.

It would function just like the Repo's Watchers button.

Sign in with GitHub button

I'm not sure of the implications of this style of iframe button but tons of people ask for a standard Sign in with GitHub button for building quick API applications.

Would a button like that make sense as part of this project?

Double slash issue

I've noticed that the following URL will be requested:

https://api.github.com/repos//?callback=callback

The double slash seems to be unnecessary.

"count" doesn't work if the repo name has a period ( . ) in it

For example, this works:

http://ghbtns.com/github-btn.html?user=TooTallNate&type=watch&count=true&size=large&repo=node-lame

screen shot 2014-05-21 at 3 00 32 pm

But, this does not work, and outputs "undefined" for the watcher count.

http://ghbtns.com/github-btn.html?user=TooTallNate&type=watch&count=true&size=large&repo=mpg123.js

screen shot 2014-05-21 at 3 00 46 pm

Probably some kind of encoding/escaping issue…

Buttons do not work in Firefox

Buttons opened in Firefox (tested in 26.0) occasionally point back to this repository regardless of how they're configured.

Inspecting the same HTML document across Chrome and Firefox reveals that the script's source in the head tag of the iframe is pointing back to the author in Firefox but not in Chrome:

<iframe src="http://ghbtns.com/github-btn.html?user=rails&repo=rails&type=watch" allowtransparency="true" frameborder="0" height="20" scrolling="0" width="62">
#document
    <html>
        <head>
            <script src="https://api.github.com/users/mdo?callback=callback"></script>
        </head>
        <body>...</body>
    </html>
</iframe>

Any ideas?

Add HTTPS

I can't use iframe in my https website since these iframes are in HTML. Can you please get a free SSL cert from http://startssl.com or pay 20$ month and get a SSL behind cloudflare? That should be easier.

Feature: button for "Star repo"?

Thanks for sharing this brilliant and popular set of buttons!

Now that watching and starring are separate things, would you consider implementing a similar button for "star repo", with optional data count, etc?

Cheers,

Is there an official button?

Not an issue but simple question: Is there an official button? I think it would be great to include the answer in README just so users knows.

I've looked quite a bit but can't find any link for official button. This is ever more surprising for site that advertises itself for "social coding".

Unsafe JavaScript attempt to access frame

OSX 10.8.2, Chrome 26.0.1410.43

Unsafe JavaScript attempt to access frame with URL http://verifyjs.com/
from frame with URL http://ghbtns.com/github-btn.html?user=jpillora&type=follow.
Domains, protocols and ports must match.

Redesign buttons

Redesign buttons to apply on new button design (for example count).

Example:
example

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.