#githubwidget
###Description
The idea was to create a small widget, where some infos about a Github-Repository are shown.
###Install & Config
- Copy the folder to your project
- Set the BASEPATH variable in the 'githubwidget.js' {BASEPATH} is the folder where the folders css, font and js for the widget are
- Include the JS-Script to your page <script type="text/javascript" src="githubwidget/js/githubwidget.js"></script>
- After including, change a container into a widget. Set the username and the Repo-Name
<script type="text/javascript">
$('#widgetDiv').githubwidget({ user: 'l33tsource', name: 'githubwidget' });
</script>
###Example
<!DOCTYPE html>
<html lang="en">
<head>
<title>Github-Widget-Example</title>
<meta charset="utf-8">
</head>
<body>
<div id="widgetDiv"></div>
<script type="text/javascript" src="https://code.jquery.com/jquery-2.1.4.min.js"></script>
<script type="text/javascript" src="githubwidget/js/githubwidget.js"></script>
<script type="text/javascript">
$('#widgetDiv').githubwidget({ user: 'l33tsource', name: 'githubwidget' });
</script>
</body>
</html>
###Config options
param name | default value | optional |
---|---|---|
user | '' | no |
name | '' | no |
titelmaxlen | -1 (meaning not truncated) | yes |
branch | 'master' | yes |
###Credits
Build by @chefe
####The Font The Font Awesome font is licensed under the SIL Open Font License - http://scripts.sil.org/OFL Font Awesome CSS, LESS, and SASS files are licensed under the MIT License - http://opensource.org/licenses/mit-license.html The Font Awesome pictograms are licensed under the CC BY 3.0 License - http://creativecommons.org/licenses/by/3.0/ Attribution is no longer required in Font Awesome 3.0, but much appreciated: "Font Awesome by Dave Gandy - http://fortawesome.github.com/Font-Awesome" ####jQuery Dual licensed under the MIT and GPL licenses. https://github.com/jquery/jquery