This repository has been archived by the owner on Jun 23, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 12
/
index.html
171 lines (166 loc) · 8.32 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
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>LeetComp: Analysing compensations from leetcode.com</title>
<meta name="LeetComp" content="Leetcode compensations analyzed.">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet"
integrity="sha384-1BmE4kWBq78iYhFldvKuhfTAU6auU8tT94WrHftjDbrCEXSU1oBoqyl2QvZ6jIW3" crossorigin="anonymous">
<link rel="stylesheet" href="css/styles.css">
</head>
<body>
<div class="container">
<!-- Top Banner -->
<h2 id="leetComp" class="col">LeetComp: Leetcode compensations</h2>
<div style="text-align: center;">
<a href="https://github.com/kuutsav/LeetComp/stargazers">
<img alt="star this repo" src="https://img.shields.io/github/stars/kuutsav/LeetComp?style=social">
</a>
</div>
<br>
<div class="alert alert-primary" id="headBanner" role="alert">
<div style="font-size: small;">
LeetComp works by regularly fetching and parsing new posts from the leetcode
compensations page (only supports posts from <b>India</b> at the moment).<br>
<span style="font-size: smaller;">(<strong>Chart 1</strong> shows salary distribution; x axis has the
salary ranges and y axis has the counts for that range. <strong>Chart 2</strong> shows salary
distribution by yoe bins; x axis has the yoe bins and y axis has the annual salary in ₹LPA.
<strong>Chart 3</strong> shows number of offers by month;
x axis has the month and y axis has the offer counts.)
</span>
</div>
</div>
<!-- Total - Base pay toggle -->
<div class="btn-group btn-group-toggle">
<label class="btn btn-secondary active" onclick="makeTotalPayButton()" id="totalPayButton">Total Pay</label>
<label class="btn btn-secondary" onclick="makeBasePayButton()" id="basePayButton">Base Pay</label>
</div>
<!-- Charts -->
<div class="row">
<div id="salaryBarChart" style="height: 300px;" class="col-12">
<canvas id="salaryBarChartJs" width="300" height="300"></canvas>
<!-- Salary bar chart -->
</div>
</div>
<div class="row">
<div id="salaryYoeBinsChart" style="height:264px;" class="col-4">
<canvas id="salaryYoeBinsChartJs" width="270" height="270"></canvas>
<!-- Salary Yoe bins chart -->
</div>
<div id="countsByMonthChart" style="height: 270px;" class="col-8">
<canvas id="countsByMonthChartJs" width="270" height="270"></canvas>
<!-- Salary Yoe bins chart -->
</div>
</div>
<br>
<!-- Static content -->
<div id="mostOffersTitle"><b>📈 Most offers so far (static list)</b></div>
<hr>
<div class="row" id="mostOffers"></div>
<hr>
<div id="mostOffers30Title"><b>📈 Most offers in the last 30 days (static list)</b></div>
<hr>
<div class="row" id="mostOffers30"></div>
<hr>
<br>
<!-- Data Table controls -->
<div class="row">
<!-- Full Time - Internship toggle -->
<div class="col-auto mr-auto">
<div class="btn-group btn-group-toggle">
<label class="btn btn-secondary active" onclick="makeFullTimeButton()" id="fullTimeButton">Full
Time</label>
<label class="btn btn-secondary" onclick="makeInternButton()"
id="internshipButton">Internship</label>
</div>
</div>
<!-- Search -->
<div class="col-auto mr-auto">
<input type="search" class="form-control-sm rounded" placeholder="Search" aria-label="Search"
aria-describedby="search-addon" id="search" onkeyup="SearchYoeFilter()" />
</div>
<!-- Min - Max Yoe filter -->
<div class="col-auto mr-auto">
<input type="search" class="form-control-sm rounded" placeholder="#" aria-label="minYoe"
aria-describedby="min-yoe" id="minYoe" onkeyup="SearchYoeFilter()" /> to
<input type="search" class="form-control-sm rounded" placeholder="#" aria-label="maxYoe"
aria-describedby="max-yoe" id="maxYoe" onkeyup="SearchYoeFilter()" /> YOE
</div>
</div>
<br>
<!-- Data Table -->
<table id="postInfo" class="table table-hover">
<thead>
<tr>
<th scope="col" style="width:35%">Company (<span id="nRows"></span>)
<p class="secondaryText secondaryTheadText">Role</p>
</th>
</th>
<th scope="col" style="width:13%">Yoe<span class="sortButton" onclick="sortBySalary(this)"
id="cleanYoe"> ▾</span></th>
<th scope="col" style="width:22%">Salary<span class="sortButton" onclick="sortBySalary(this)"
id="cleanSalaryTotal"> ▾</span><span class="sortButton" onclick="sortBySalary(this)"
id="cleanSalary"> ▾</span></th>
<th scope="col" style="width:15%">Date<span class="sortButton" onclick="sortBySalary(this)"
id="date"> ▾</span></th>
<th scope="col" style="width:10%">Votes<span class="sortButton" onclick="sortBySalary(this)"
id="voteCount"> ▾</span>
<p class="secondaryText secondaryTheadText">Views</p>
</th>
<th scope="col" style="width:5%">PostId</th>
</tr>
</thead>
<tbody>
<tr></tr>
</tbody>
</table>
<!-- Pagination -->
<nav>
<ul class="pagination">
<li class="page-item">
<a class="page-link" aria-label="Previous" onclick="decrementNavPageNo()">
<span aria-hidden="true">«</span>
</a>
</li>
<li class="page-item"><a class="page-link" onclick="filterNavData(this)" id="navPageNo1">1</a>
</li>
<li class="page-item"><a class="page-link" onclick="filterNavData(this)" id="navPageNo2">2</a>
</li>
<li class="page-item"><a class="page-link" onclick="filterNavData(this)" id="navPageNo3">3</a>
</li>
<li class="page-item">
<a class="page-link" aria-label="Next" onclick="incrementNavPageNo()">
<span aria-hidden="true">»</span>
</a>
</li>
</ul>
</nav>
<div id="stats"></div>
<div style="text-align: center;">Inspired by
<a href="https://www.levels.fyi/Salaries/Software-Engineer/India/">levels.fyi</a> and
<a href="http://csrankings.org/">csrankings.org</a>
</div>
<hr>
<script src="https://utteranc.es/client.js" repo="kuutsav/LeetComp" issue-term="pathname" label="comments"
theme="github-light" crossorigin="anonymous" async></script>
</div>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js"
integrity="sha384-ka7Sk0Gln4gmtz2MlQnikT1wXgYsOg+OMhuP+IlRH9sENBO0LRn5q+8nbTov4+1p" crossorigin="anonymous">
</script>
<script src="js/data.js"></script>
<script src="https://cdn.jsdelivr.net/npm/chart.js"></script>
<script src="https://unpkg.com/@sgratzl/[email protected]/build/index.umd.min.js"></script>
<script src="js/scripts.js"></script>
<script async src="https://www.googletagmanager.com/gtag/js?id=G-G5Y6PERW9N"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag() {
dataLayer.push(arguments);
}
gtag('js', new Date());
gtag('config', 'G-G5Y6PERW9N');
</script>
</script>
</body>
</html>