forked from star-history/star-history
-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
114 lines (98 loc) · 2.76 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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link href="./assets/nvd3.css" rel="stylesheet" type="text/css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/github-fork-ribbon-css/0.2.0/gh-fork-ribbon.min.css" />
<!--[if lt IE 9]>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/github-fork-ribbon-css/0.2.0/gh-fork-ribbon.ie.min.css" />
<![endif]-->
<style>
text {
font: 12px sans-serif;
}
svg {
display: block;
}
#chart,
svg {
display: block;
margin-left: auto;
margin-right: auto;
margin: auto;
padding-right: 20pt;
max-width: 800px;
height: 80%;
}
body {
margin: auto;
font-size: 15pt;
}
.nav {
font-weight: 100;
text-transform: uppercase;
text-align: center;
background-color: #30A06E;
color: white;
padding: 12pt;
margin: 0;
}
input {
max-width: 300px;
height: 30px;
font-size: 15pt;
margin:4pt;
}
button {
text-decoration: none;
text-align: center;
font-size: 16pt;
background-color: #01A94C;
color: white;
border-radius: 24pt;
padding: 6pt 10pt;
cursor: default;
}
#theForm {
display: inline-block;
padding: 0;
margin: 0;
}
footer {
max-width: 800px;
margin: auto;
}
#clearBtn {
float: right;
background-color: #9b0000;
}
</style>
<title>Star history</title>
</head>
<body>
<div class="nav">
<form id="theForm">
<input type="text" id="repo" name="repo" placeholder="torvalds/linux">
<button type="submit" id="theBtn" >See star history</button>
</form>
<img src="./assets/loadinfo.net.gif" alt="Loading..." id="theGif" style="visibility:hidden;">
</div>
<a class="github-fork-ribbon" href="http://github.com/timqian/star-history" title="Fork me on GitHub">Fork me on GitHub</a>
<div id="chart">
<svg></svg>
</div>
<footer>
<button id="clearBtn" >clear</button>
<a href="https://github.com/timqian/star-history-plugin">Chrome extension</a>
</footer>
<script type="text/javascript" src="./dist/bundle.js" charset="utf-8"></script>
<!--Google analytics-->
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-56506279-1', 'auto');
ga('send', 'pageview');
</script>
<!--Google analytics-->
</body>