-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpractice.html
261 lines (239 loc) · 13.6 KB
/
practice.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
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<!--Website Information for SEO-->
<title>Practice | BaketheCode</title>
<meta name="Author" content="BaketheCode" />
<meta name="Description" content="Online Platform for Learning new Programming Languages and Online Coding Practices." />
<meta name="Keywords" content="BaketheCode, bakethecode, Bakethecode, Online Coding Platform, Learn Coding Online, learn while code, earn while coding,
learn C++, C, Java, C++ Practice problems, c practice problems, java practice problems, python practice problems, how to earn money while coding,
best coding platform, best online coding platform, online coding compiler, online C++ compiler, online compilers for java, online compiler for python" />
<!-- Schema.org markup for Google+ -->
<meta itemprop="name" content="BaketheCode">
<meta itemprop="description" content="Online Platform for Learning new Programming Languages and Online Coding Practices.">
<meta itemprop="image" content="https://github.com/theRoushan/Images/blob/master/logo-red.png?raw=true">
<!-- Twitter Card data -->
<meta name="twitter:card" content="summary">
<meta name="twitter:site" content="bakethecode.me">
<meta name="twitter:title" content="BaketheCode">
<meta name="twitter:description" content="Online Platform for Learning new Programming Languages and Online Coding Practices.">
<meta name="twitter:creator" content="@theroushan">
<meta name="twitter:image" content="https://github.com/theRoushan/Images/blob/master/logo-red.png?raw=true">
<!-- Open Graph data -->
<meta property="og:title" content="BaketheCode" />
<meta property="og:type" content="article" />
<meta property="og:url" content="https://bakethecode.me" />
<meta property="og:image" content="https://github.com/theRoushan/Images/blob/master/logo-red.png?raw=true" />
<meta property="og:description" content="Online Platform for Learning new Programming Languages and Online Coding Practices." />
<meta property="og:site_name" content="BaketheCode" />
<link rel="icon" href="/img/logo-red.png">
<!-- Including required CSS -->
<link href="css/bootstrap/bootstrap.css" rel="stylesheet" />
<link href="css/bootstrap/login-register.css" rel="stylesheet" />
<link rel="stylesheet" href="css/practice_html.css">
<link rel="stylesheet" type="text/css" href="css/hover.css" media="all">
<!--Including Required Javascript Files-->
<script src="css/bootstrap/jquery-1.10.2.js" type="text/javascript"></script>
<script src="css/bootstrap/bootstrap.js" type="text/javascript"></script>
<!-- Fontawesome CDN Network -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<link rel="stylesheet" href="https://netdna.bootstrapcdn.com/font-awesome/4.0.3/css/font-awesome.css">
</head>
<body>
<header id="header">
<img src="img/logo-red.png" alt="" class="logo hvr-grow" height="50px" width="50px">
<div class="logo-text" id="mobile-nav">
<h2 id="logo-text" style="color: red; padding-left: 5px;" class="logo-text">BaketheCode</h2>
<i class="fa fa-bars" id="hamburger" onclick="mobileNav();"></i>
</div>
<ul id="nav">
<li class="logo hvr-grow"><a href="index.html">Home</a></li>
<li class="logo hvr-grow"><a href="practice.html" style="color: red;">Practice</a></li>
<li class="logo hvr-grow"><a href="dashboard.html">Dashboard</a></li>
<li class="logo hvr-grow "><a href="code_library.html">Code Library</a></li>
<li class="logo hvr-grow "><a href="contests.html">Contests</a></li>
<li class="logo hvr-grow "><a href="contact_us.html">Contact Us</a></li>
</ul>
<ul id="authentication-state-links">
<li id="sign-in-link"><a href="Login.html" class="sign-in" data-toggle="modal" href="javascript:void(0)" onclick="openLoginModal();">Sign In</a></li>
<li id="sign-up-link"><a href="Register.html" class="sign-up" data-toggle="modal" href="javascript:void(0)" onclick="openRegisterModal();" style="background-color: #ff5349; color: white;">Sign Up</a></li>
<a href="user/profile.html" class="user-avatar-link" style="text-decoration: none;">
<div id="user-avatar">
<img src="img/logo-red.png" alt="" id="avatar" height="32px" width="32px">
<h5 id="username" style="min-width: 100px;">username</h5>
<i class="fa fa-angle-down"></i>
</div>
</a>
<li id="logout-link"><a href="" onclick="logout()" class="logout">Logout</a></li>
</ul>
</header>
<!-- Modal Box for User Signin and SignUp -->
<div class="modal fade login" id="loginModal">
<div class="modal-dialog login animated">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
<h4 class="modal-title">Login with</h4>
</div>
<div class="modal-body">
<div class="box">
<div class="content">
<div class="social">
<a class="circle github" href="#">
<i class="fa fa-github fa-fw"></i>
</a>
<a id="google_login" class="circle google" href="#">
<i class="fa fa-google-plus fa-fw"></i>
</a>
<a id="facebook_login" class="circle facebook" href="#">
<i class="fa fa-facebook fa-fw"></i>
</a>
</div>
<div class="division">
<div class="line l"></div>
<span>or</span>
<div class="line r"></div>
</div>
<div class="error"></div>
<div class="form loginBox">
<form method="" action="" accept-charset="UTF-8" id="login-form">
<input id="login-email" class="form-control" type="text" placeholder="Email" name="email">
<input id="login-password" class="form-control" type="password" placeholder="Password" name="password">
<input class="btn btn-default btn-login" type="button" value="Login" onclick="login()">
<a href="forgot_password.html" style="color: #ff5349;">Forgot Password?</a>
</form>
</div>
</div>
</div>
<div class="box">
<div class="content registerBox" style="display:none;">
<div class="form">
<form method="" html="{:multipart=>true}" data-remote="true" action="" accept-charset="UTF-8" id="signup-form">
<input id="user-name" class="form-control" type="text" placeholder="UserName" name="user-name" required>
<input id="signup-email" class="form-control" type="text" placeholder="Email" name="email">
<input id="signup-password" class="form-control" type="password" placeholder="Password" name="password">
<input id="signup-password-confirmation" class="form-control" type="password" placeholder="Repeat Password" name="password_confirmation">
<input class="btn btn-default btn-register" type="button" value="Create account" name="commit" onclick="signup()">
</form>
</div>
</div>
</div>
</div>
<div class=" modal-footer">
<div class="forgot login-footer">
<span>Looking to
<a href="javascript: showRegisterForm();" style="color: #ff5349;">create an account</a>
?</span>
</div>
<div class="forgot register-footer" style="display:none">
<span>Already have an account?</span>
<a href="javascript: showLoginForm();" style="color: #ff5349;">Login</a>
</div>
</div>
</div>
</div>
</div>
<section class="main-container">
<div class="main-content">
</div>
<div class="sidebar">
<div class="top-questions">
<h4 class="top-questions-heading">Top Rated Problems</h4>
<ol>
<li><a href="">Playing with Numbers</a></li>
<li><a href="">COVID-19 Tracker</a></li>
<li><a href="">COVID-19 Fund Raise</a></li>
<li><a href="">Solve the Puzzle</a></li>
<li><a href="">Hanoi Tower</a></li>
<li><a href="">Find the Thief</a></li>
<li><a href="">Riya's Lucky Number</a></li>
<li><a href="">Minesweeper</a></li>
</ol>
<button class="see-more">See More</button>
</div>
<div class="top-programming-languages">
<h4 class="top-programming-lanuages-heading">Top Used Languages</h4>
<ol>
<li><a href="">R</a></li>
<li><a href="">C</a></li>
<li><a href="">C++</a></li>
<li><a href="">Python</a></li>
<li><a href="">Javascript</a></li>
<li><a href="">Java</a></li>
</ol>
<button class="see-more">See More</button>
</div>
</div>
</section>
<!--Footer-->
<section class="footer">
<div class="links">
<a href="index.html">Home</a>
<a href="practice.html">Practice</a>
<a href="dashboard.html">Dashboard</a>
<a href="contests.html">Contest</a>
<a href="contact_us.html">Contact Us</a>
<a href="about-us.html">About Us</a>
</div>
</section>
<script>
// When the user scrolls the page, execute myFunction
window.onscroll = function() {
myFunction()
};
// Get the header
var header = document.getElementById("header");
var loggedheader = document.getElementById("logged-header");
// Get the offset position of the navbar
var sticky = header.offsetTop;
// Add the sticky class to the header when you reach its scroll position. Remove "sticky" when you leave the scroll position
function myFunction() {
if (window.pageYOffset > sticky) {
header.classList.add("sticky");
} else {
header.classList.remove("sticky");
}
}
</script>
<script src="https://www.gstatic.com/firebasejs/7.13.1/firebase-app.js"></script>
<!-- TODO: Add SDKs for Firebase products that you want to use
https://firebase.google.com/docs/web/setup#available-libraries -->
<script src="https://www.gstatic.com/firebasejs/7.13.1/firebase-analytics.js"></script>
<script src="https://www.gstatic.com/firebasejs/7.13.1/firebase-auth.js"></script>
<script src="https://www.gstatic.com/firebasejs/7.14.1/firebase-firestore.js"></script>
<script src="javascript/app.js"></script>
<script src="javascript/function.js"></script>
<script>
firebase.auth().onAuthStateChanged(function(user) {
if (user) {
// User is signed in.
localStorage.setItem("isLogged", "yes"); //saves the login stats for pass-reset access and profile.html
console.log("User is already logged in.");
document.getElementById("sign-in-link").style.cssText = "display: none ";
document.getElementById("sign-up-link").style.cssText = "display: none ";
document.getElementById("logout-link").style.cssText = "display: flex ";
document.getElementById("user-avatar").style.cssText = "display: flex ";
document.getElementById("username").innerText = user.displayName;
document.getElementById("avatar").src = user.photoURL;
if (!user.emailVerified) {
sweeetAlertEmailVerification()
}
} else {
localStorage.setItem("isLogged", "no"); //saves the login stats for pass-reset access and profile.html
console.log("User is not logged in.");
document.getElementById("sign-in-link").style.cssText = "display: flex ";
document.getElementById("sign-up-link").style.cssText = "display: flex ";
document.getElementById("logout-link").style.cssText = "display: none ";
document.getElementById("user-avatar").style.cssText = "display: none ";
}
});
</script>
<script>
getQuestion();
</script>
<!--adding sweetalert dialog-->
<script src="https://cdn.jsdelivr.net/npm/sweetalert2@9"></script>
</body>
</html>