forked from hustcc/canvas-nest.js
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
31 lines (29 loc) · 1.04 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>canvas-nest.js</title>
</head>
<body>
<div style="float:right;" id="github_iframe"></div>
<script type="text/javascript" color="255,0,0" opacity='0.7' zIndex="-2" count="200" src="src/canvas-nest.js"></script>
<script type="text/javascript">
function async_load() {
//async load github
var i = document.createElement("iframe");
i.src = "https://ghbtns.com/github-btn.html?user=hustcc&repo=canvas-nest.js&type=star&count=true";
i.scrolling = "no";
i.frameborder = "0";
i.border = "0";
i.setAttribute("frameborder", "0", 0);
i.width = "100px";
i.height = "20px";
document.getElementById("github_iframe").appendChild(i);
}
if (window.addEventListener) {window.addEventListener("load", async_load, false);}
else if (window.attachEvent) {window.attachEvent("onload", async_load);}
else {window.onload = async_load;}
</script>
</body>
</html>