-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
126 lines (101 loc) · 3.73 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
115
116
117
118
119
120
121
122
123
124
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Visualise Pull Requests</title>
<link rel="shortcut icon" href="images/Graph_by_dw_noun_project.png" type="image/x-icon">
<link rel="icon" href="images/Graph_by_dw_noun_project.png" type="image/x-icon">
<link rel="stylesheet" href="http://code.jquery.com/ui/1.11.4/themes/smoothness/jquery-ui.css">
<script src="http://code.jquery.com/jquery-1.10.2.js"></script>
<script src="http://code.jquery.com/ui/1.11.4/jquery-ui.js"></script>
<style type="text/css">
body {
font-family: futura, sans-serif;
max-width: 30rem;
margin-left: auto ;
margin-right: auto ;
color: #333;
}
h1, h2, h3, li, p {
font-family: futura, sans-serif;
line-height: 1.25;
color: #111;
text-rendering: optimizeLegibility;
}
h1 {
text-align: center;
}
</style>
</head>
<body link="darkgrey" vlink="grey">
<div class="container">
<div class="header">
<h1>Graph pull requests from any Github repository</h1>
<h2></h2>
<br>
</div>
<h2 id="bookmarklet">How to use this as a bookmarklet</h2>
<ol>
<li>Drag this link, <a href="javascript:(function(){
var url = buildURL();
if (url != null) {
var win = window.open(url, '_blank');
if ( win != null ) {
win.focus();
}
}
else {
alert('Don\'t think you\'re on a github repository, sorry');
}
})();
function buildURL() {
baseURL = 'http://dhood.github.io/pullrequest-visualiser/plot.html';
url = null;
currentLink = window.location.href;
afterGithub = currentLink.match(/github.com\/(.*)/);
if ( afterGithub != null && afterGithub.length > 1 ) {
afterGithub = afterGithub[1];
pieces = afterGithub.split('/');
if ( pieces.length >= 2 ) {
repoOwner = pieces[0];
repoName = pieces[1];
url = baseURL + '?' + repoOwner + '&' + repoName;
}
}
return url;
}">Graph PRs</a>, to your bookmarks bar.</li>
<li>Visit a Github <a href="https://github.com/KSP-CKAN/CKAN">repository</a> for which you’d like to graph the open pull requests over time.</li>
<li>Click the bookmarklet and a <a href="#dialog">graph</a> will open in a new window (once popups have been allowed, if necessary).</li>
</ol>
<div id="dialog" title="Example graph" >
<img src="images/sampleGraph.png" alt="Sample graph" style="width:30rem;">
</div>
<center class="share-buttons">
<iframe allowtransparency="true" frameborder="0" scrolling="no" src="https://platform.twitter.com/widgets/tweet_button.html?url=http://dhood.github.io/pullrequest-visualiser&text=Now you can visualise github repositories' open pull requests over time" style="width:130px; height:20px;"></iframe>
</center>
<br><br>
<i>
Firefox/Iceweasel users, only <a href="http://dhood.github.io/pullrequest-visualiser/plot.html">
manual use</a> available.</i>
<br><br>
<h2 id="cant-find-your-bookmarks-bar">Can’t find your bookmarks bar?</h2>
<p>Try these instructions to enable your bookmarks bar: <a href="https://support.google.com/chrome/answer/95745?hl=en">Chrome</a>,
<a href="https://support.apple.com/kb/PH19265?locale=en_US">Safari</a>.</p>
<span style="margin-top:15px; display:inline-block; font-size:13px">Made by Deanna Hood. Open source contributions welcome at
<a href="http://www.github.com/dhood/pullrequest-visualiser">github.com/dhood/pullrequest-visualiser</a>
</span>
<script type="text/javascript">
$(function() {
$( "#dialog" ).dialog({
width: 500,
autoOpen: false
});
$( 'a[href=\\#dialog]' ).on( 'click', function() {
$( "#dialog" ).dialog( "open" );
});
});
</script>
</body>
</html>