Skip to content

Fork of surbhioberoi/github-widget. A widget showing your github details that you can embed in any website.

License

Notifications You must be signed in to change notification settings

AlifPapp/Github-Widget

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 

Repository files navigation

Github Widget

Example

AutoSend.png

About

Forked from: surbhioberoi/github-widget

Changes:

  • Updated the css to incorporate github theme colors.
  • Added option to specify how many repos it displays.
  • Can use the Repo's gh-pages in your iframe.

How to use

  • Inline DOM manipulation:
    Expand Copy paste this code in your HTML
    <div class="github-widget" data-username="github" data-toprepos="3"></div>
    <div class="github-widget" data-username="AlifPapp" data-toprepos="4"></div>
    <script src="https://AlifPapp.github.io/Github-Widget/githubwidget.js"></script>
  • iframe:
    Expand 1: Create a new html file and use the Inline DOM manipulation method shown above.
    2: Link your new html file into your iframe.
    Example:
    <iframe src="github-widget/widget.html" width="330" height="515" scrolling="no" allowtransparency="true" frameborder="0" sandbox="allow-popups allow-popups-to-escape-sandbox allow-same-origin allow-scripts"></iframe>
  • iframe_2: (Using this repo's gh-pages)
    Expand Copy paste this code in your HTML
    <iframe src="https://AlifPapp.github.io/Github-Widget/#/?username=AlifPapp&toprepos=4" width="330" height="515" scrolling="no" allowtransparency="true" frameborder="0"     sandbox="allow-popups allow-popups-to-escape-sandbox allow-same-origin allow-scripts"></iframe>
    Options:
    • username=:username replace :username with your GitHub username
    • toprepos=:number replace :number with number of repos you want to list
    • style=:styles replace :styles with your own styles
    • css=:csslink replace :csslink with an external css link | Must be the last paramater

About

Fork of surbhioberoi/github-widget. A widget showing your github details that you can embed in any website.

Topics

Resources

License

Stars

Watchers

Forks