forked from QasimWani/LeetHub
-
Notifications
You must be signed in to change notification settings - Fork 0
/
popup.html
112 lines (105 loc) · 3.51 KB
/
popup.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
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" href="css/popup.css" />
<script
src="https://code.jquery.com/jquery-3.3.1.min.js"
integrity="sha256-FgpCb/KJQlLNfOu91ta32o/NMZxltwRo8QtmkMRdAu8="
crossorigin="anonymous"
></script>
<link
href="https://cdnjs.cloudflare.com/ajax/libs/semantic-ui/2.4.1/semantic.min.css"
rel="stylesheet"
/>
<script src="https://cdnjs.cloudflare.com/ajax/libs/semantic-ui/2.4.1/semantic.min.js"></script>
</head>
<body>
<div class="ui grid container">
<div class="sixteen wide center aligned column">
<h1 id="title">
Leet<span style="color: #f18500">Hub</span>
</h1>
<p id="caption">Sync your code from LeetCode to GitHub</p>
<br />
<!-- Authentication mode -->
<div id="auth_mode" hidden>
<p class="onboarding">
<br />
Authenticate with GitHub to use
<strong
>Leet<span style="color: #f18500">Hub</span></strong
>
</p>
<button id="authenticate" class="ui secondary button">
<i class="icon github"></i>
Authenticate
</button>
</div>
<!-- Repo Hook mode -->
<div id="hook_mode" hidden>
<p class="onboarding">
<br />
Set up repository hook to use
<strong
>Leet<span style="color: #f18500">Hub</span></strong
>
</p>
<a
id="hook_URL"
href=""
target="blank"
class="ui secondary button"
>
<i class="icon github"></i>
Set up Hook
</a>
</div>
<!-- Commit mode -->
<div id="commit_mode" hidden>
<p id="repo_url" class="ui small header"></p>
<p class="onboarding">
Problems Solved: <span id="p_solved">0</span>
</p>
<p class="ui small header">
<span style="color: #5cb85c">Easy:</span>
<span id="p_solved_easy" style="color: #000000; opacity: 0.75;">0 </span>
<span style="color: #f0ad4e">    Medium:</span>
<span id="p_solved_medium" style="color: #000000; opacity: 0.75;"
>0
</span>
<span style="color: #d9534f">    Hard:</span>
<span id="p_solved_hard" style="color: #000000; opacity: 0.75;">0 </span>
</p>
<div class="ui small header">
Want more features?
<a
style="color: cadetblue !important"
target="_blank"
href="https://github.com/QasimWani/LeetHub/labels/feature"
>Request a feature!</a
>
</div>
</div>
</div>
<!-- Generate Socials -->
<div id="socials" class="sixteen wide column">
<a href="https://github.com/QasimWani/LeetHub" target="_blank"
><i class="ui black github icon"></i
></a>
<a
href="https://www.linkedin.com/in/qasimwani"
target="_blank"
><i class="ui linkedin icon"></i
></a>
<a href="mailto:[email protected]" target="_blank"
><i class="ui red envelope icon"></i
></a>
<a id="welcome_URL" href="" target="_blank"
><i class="ui grey globe icon"></i
></a>
</div>
</div>
<script src="scripts/oauth2.js"></script>
<script type="text/javascript" src="popup.js"></script>
</body>
</html>