4
4
< title > Erik Zaadi @ GitHub -> jQuery Plugins -> jQuery GitHub Badge 1.0 -> Sample Page</ title >
5
5
6
6
< script type ="text/javascript " src ="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js "> </ script >
7
-
8
- < script type ="text/javascript " src ="../jquery.GitHubBadge.min.js "> </ script >
7
+ < script type ="text/javascript " src ="../../../chili/jquery.chili-2.2.js "> </ script >
8
+ < script type ="text/javascript ">
9
+ ChiliBook . recipeFolder = "http://erikzaadi.github.com/chili/" ;
10
+ </ script >
11
+ < script type ="text/javascript " src ="../jquery.GitHubBadge.min.js "> </ script >
9
12
10
13
< script type ="text/javascript ">
11
14
$ ( document ) . ready ( function ( ) {
59
62
< div >
60
63
< h3 > Usage :</ h3 >
61
64
< h4 > Simple Usage : </ h4 >
62
- < pre > < code > $('Selector').GitHubBadge('usernamestring');</ code > </ pre >
65
+ < pre > < code class =" js " > $('Selector').GitHubBadge('usernamestring');</ code > </ pre >
63
66
< h4 > Advanced Usage : </ h4 >
64
- < pre > < code > $('Selector').GitHubBadge({
67
+ < pre > < code class =" js " > $('Selector').GitHubBadge({
65
68
user: 'usernamestring', // Mandatory (Duh!)
66
69
showErrors: true, //Display error messages (default:false)
67
70
showForks: true, //Shows not only personal public repositories, but forks as well (default:true)
@@ -79,5 +82,14 @@ <h4>Advanced Usage : </h4>
79
82
Typical usage : loading image/text...</ div >
80
83
</ div >
81
84
< div > < a href ="../ "> Home</ a > </ div >
85
+ < script type ="text/javascript ">
86
+ var gaJsHost = ( ( "https:" == document . location . protocol ) ? "https://ssl." : "http://www." ) ;
87
+ document . write ( unescape ( "%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E" ) ) ;
88
+ </ script >
89
+ < script type ="text/javascript ">
90
+ try {
91
+ var pageTracker = _gat . _getTracker ( "UA-8728177-2" ) ;
92
+ pageTracker . _trackPageview ( ) ;
93
+ } catch ( err ) { } </ script >
82
94
</ body >
83
95
</ html >
0 commit comments