forked from heipei/github-commit-badge
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
77 additions
and
106 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,59 +1,30 @@ | ||
<html> | ||
<head> | ||
<link rel="stylesheet" type="text/css" href="style.css"> | ||
</head> | ||
<body> | ||
|
||
<script type="text/javascript" src="lib/prototype.js"> | ||
</script> | ||
|
||
<script type="text/javascript" src="lib/date.js"> | ||
</script> | ||
|
||
<script type="text/javascript" src="lib/md5.js"> | ||
</script> | ||
|
||
<script type="text/javascript" src="lib/jquery.js"> | ||
</script> | ||
|
||
<!-- <script type="text/javascript" src="loadlibs.js"> | ||
</script> --> | ||
|
||
<script type="text/javascript"> | ||
jQuery.noConflict(); | ||
</script> | ||
|
||
<div id="container"> | ||
<script type="text/javascript"> | ||
USERNAME="heipei" | ||
REPO="github-test" | ||
BRANCH="master" | ||
</script> | ||
|
||
<script type="text/javascript" src="test.js"> | ||
</script> | ||
</div> | ||
<script type="text/javascript" src="loadlibs.js"></script> | ||
|
||
<div id="container"> | ||
<script type="text/javascript"> | ||
USERNAME="heipei" | ||
REPO="xmpp4r" | ||
BRANCH="master" | ||
</script> | ||
|
||
<div id="container"> | ||
<script type="text/javascript" src="test.js"> | ||
</script> | ||
</div> | ||
<script type="text/javascript"> | ||
USERNAME="schacon" | ||
REPO="grit" | ||
BRANCH="master" | ||
</script> | ||
|
||
<script type="text/javascript" src="test.js"> | ||
</script> | ||
<script type="text/javascript"> | ||
var Badges = new Array(); | ||
Badges[0] = new Object; | ||
Badges[0]["username"] = "heipei"; | ||
Badges[0]["repo"] = "github-test"; | ||
Badges[0]["branch"] = "master"; | ||
|
||
Badges[1] = new Object; | ||
Badges[1]["username"] = "heipei"; | ||
Badges[1]["repo"] = "xmpp4r"; | ||
Badges[1]["branch"] = "master"; | ||
|
||
Badges[2] = new Object; | ||
Badges[2]["username"] = "schacon"; | ||
Badges[2]["repo"] = "grit"; | ||
Badges[2]["branch"] = "master"; | ||
</script> | ||
|
||
<script type="text/javascript" src="test.js"></script> | ||
</div> | ||
|
||
</body> | ||
</html | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,15 @@ | ||
['md5', 'jquery', 'date'].each(function(lib) { | ||
var myLib = document.createElement("script"); | ||
myLib.setAttribute("type","text/javascript"); | ||
myLib.setAttribute("src","lib/" + lib + ".js"); | ||
document.documentElement.appendChild(myLib); | ||
}); | ||
// Load the necessary libraries | ||
var myLibs = ["jquery", "md5", "date", "prototype"]; | ||
for (var i=0; i < myLibs.length; ++i) { | ||
var myScript = document.createElement("script"); | ||
myScript.setAttribute("type","text/javascript"); | ||
myScript.setAttribute("src","lib/" + myLibs[i] + ".js"); | ||
document.documentElement.appendChild(myScript); | ||
}; | ||
// Write the stylesheet into the <head> | ||
myHead = document.getElementsByTagName("head")[0]; | ||
myCSS = document.createElement("link"); | ||
myCSS.setAttribute("rel","stylesheet"); | ||
myCSS.setAttribute("type","text/css"); | ||
myCSS.setAttribute("href","style.css"); | ||
myHead.appendChild(myCSS); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters