-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
128 lines (112 loc) · 4.23 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
125
126
127
128
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="style.css">
<title>GitAnalysis</title>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/animate.css/3.7.2/animate.min.css">
<script type="text/javascript" src="https://www.gstatic.com/charts/loader.js"></script>
<link href="https://fonts.googleapis.com/css2?family=Karla&display=swap" rel="stylesheet">
<script src="https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.24.0/moment.min.js"></script>
<body>
<div class="container">
<div class="header">
<p class="logo">GitAnalysis</p>
</div>
<div class="searchbar animated fadeInDown" id="grid-1">
<h1>Welcome to GitAnalysis</h1>
<p class="title-text">GitAnalysis is a tool for university markers and students to use in order to analyse
GitHub repositories. The report generated calculates how much each student has contirbuted
to the project and can be used to aid the grading of projects.</p>
<p class="toHide">Please Enter the Repository Link: </p>
<div id="input-container">
<div id="generate-container">
<form class="generate">
<input type="text" id="search" class="search hide toHide" placeholder="Enter Repository Link">
<button type="button" id="generate-btn" class="searchButton search toHide">Generate Report</button>
</form>
</div>
<div id="date-container" class="date-hide">
<form>
<span>Start Date: </span>
<select id="start-date">
<option>DD/MM/YYYY</option>
</select>
<span>Timeframe: </span>
<select id="timeframe">
<option>Select Timeframe</option>
<option value="4">4 Weeks</option>
<option value="8">8 Weeks</option>
<option value="12">12 Weeks</option>
<option value="16">16 Weeks</option>
</select>
</form>
</div>
<div id="print-container">
<form id="myForm">
<input id="example-print" type=button name=print value="Print" onClick="window.print()">
</form>
</div>
</div>
</div>
<div class="title-1" id="title-1">
<h3 class="title-1-text"><u><b>Overall Contribution</b></u></h3>
</div>
<div class="container__table" id="grid-2">
<table class="total-table">
<thead>
<tr>
<th>Name</th>
<th>Commits</th>
<th>Additions</th>
<th>Deletions</th>
<th>%</th>
</tr>
</thead>
<tbody id="data__table">
</tbody>
</table>
</div>
<div class="piechart" id="grid-3">
<div id="pie-container">
<canvas id="piechart" style="width:100% !important"></canvas>
</div>
</div>
<div class="title-2" id="title-2">
<h3 class="title-2-text"><u><b>Contributions by Week</b></u></h3>
</div>
<div class="barchart" id="grid-4">
<div id="bar-container">
<canvas id="barchart"></canvas>
</div>
</div>
<div class="title-3" id="title-3">
<h3 class="title-3-text"><u><b>Behaviour</b></u></h3>
</div>
<div class="behaviour-container" id="grid-5">
<h4>Why Behaviour is Important:</h4>
<ul>
<li>Repository interaction behaviours vary greatly between users</li>
<li>Some users 'commit' after only a few lines of code</li>
<li>Whereas others commit after a full day of work</li>
<li>This is why knowing a users average Additions and Deletions <b><u>per commit</u></b> is important</li>
</ul>
</div>
<div class="behaviour-table-container" id="grid-6">
<table class="behaviour-table">
<thead>
<tr>
<th>Name</th>
<th>Avg. Additions</th>
<th>Avg. Deletions</th>
</tr>
</thead>
<tbody id="behaviour-table-body">
</tbody>
</div>
</div>
</body>
</html>
<script type="text/javascript" src="app.js"></script>
<script src="https://cdn.jsdelivr.net/npm/chart.js@2.9.3/dist/Chart.min.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script>