-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
342 lines (297 loc) · 13.8 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
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
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->
<title>CodeHub - Best way to browse and learn Programming</title>
<!-- Bootstrap -->
<link href="assets/bootstrap/css/bootstrap.min.css" rel="stylesheet">
<!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->
<link href="https://fonts.googleapis.com/css?family=Comfortaa" rel="stylesheet">
<link href="https://fonts.googleapis.com/css?family=Exo|Maven+Pro" rel="stylesheet">
<script src="https://www.gstatic.com/firebasejs/3.7.4/firebase.js"></script>
<script type="text/javascript">
var config = {
apiKey: "AIzaSyBOD6QkC26R99Tzvy58dzBfpVn6RVcrBIk",
authDomain: "chib-2b239.firebaseapp.com",
databaseURL: "https://chib-2b239.firebaseio.com",
projectId: "chib-2b239",
storageBucket: "chib-2b239.appspot.com",
messagingSenderId: "288947426276"
};
firebase.initializeApp(config);
/**
* Function called when clicking the Login/Logout button.
*/
// [START buttoncallback]
function toggleSignIn() {
document.getElementById('quickstart-sign-in').textContent = 'Login Successfull !! Redirecting to Course Portal...';
if (!firebase.auth().currentUser) {
// [START createprovider]
var provider = new firebase.auth.GoogleAuthProvider();
// [END createprovider]
// [START addscopes]
provider.addScope('https://www.googleapis.com/auth/plus.login');
// [END addscopes]
// [START signin]
firebase.auth().signInWithRedirect(provider);
// [END signin]
} else {
// [START signout]
firebase.auth().signOut();
// [END signout]
}
// [START_EXCLUDE]
document.getElementById('quickstart-sign-in').disabled = true;
// [END_EXCLUDE]
}
// [END buttoncallback]
/**
* initApp handles setting up UI event listeners and registering Firebase auth listeners:
* - firebase.auth().onAuthStateChanged: This listener is called when the user is signed in or
* out, and that is where we update the UI.
* - firebase.auth().getRedirectResult(): This promise completes when the user gets back from
* the auth redirect flow. It is where you can get the OAuth access token from the IDP.
*/
function initApp() {
// Result from Redirect auth flow.
// [START getidptoken]
firebase.auth().getRedirectResult().then(function(result) {
if (result.credential) {
// This gives you a Google Access Token. You can use it to access the Google API.
var token = result.credential.accessToken;
// [START_EXCLUDE]
window.location = "https://codehubplatform.github.io/EnglishWebContent/";
} else {
// [END_EXCLUDE]
}
// The signed-in user info.
var user = result.user;
}).catch(function(error) {
// Handle Errors here.
var errorCode = error.code;
var errorMessage = error.message;
// The email of the user's account used.
var email = error.email;
// The firebase.auth.AuthCredential type that was used.
var credential = error.credential;
// [START_EXCLUDE]
if (errorCode === 'auth/account-exists-with-different-credential') {
alert('You have already signed up with a different auth provider for that email.');
// If you are using multiple auth providers on your app you should handle linking
// the user's accounts here.
} else {
console.error(error);
}
// [END_EXCLUDE]
});
// [END getidptoken]
// Listening for auth state changes.
// [START authstatelistener]
firebase.auth().onAuthStateChanged(function(user) {
if (user) {
window.location = "https://codehubplatform.github.io/EnglishWebContent/";
// User is signed in.
var displayName = user.displayName;
var email = user.email;
var emailVerified = user.emailVerified;
var photoURL = user.photoURL;
var isAnonymous = user.isAnonymous;
var uid = user.uid;
var providerData = user.providerData;
// [START_EXCLUDE]
document.getElementById('quickstart-sign-in').textContent = 'Login Successfull !! Redirecting to Course Portal...';
// [END_EXCLUDE]
} else {
// User is signed out.
// [START_EXCLUDE]
document.getElementById('quickstart-sign-in').textContent = 'Sign in with Google to continue';
// [END_EXCLUDE]
}
// [START_EXCLUDE]
document.getElementById('quickstart-sign-in').disabled = false;
// [END_EXCLUDE]
});
// [END authstatelistener]
document.getElementById('quickstart-sign-in').addEventListener('click', toggleSignIn, false);
}
window.onload = function() {
initApp();
};
</script>
<style type="text/css">
/* Shared */
.loginBtn {
box-sizing: border-box;
position: relative;
/* width: 13em; - apply for fixed size */
margin: 0.2em;
padding: 0 15px 0 46px;
border: none;
text-align: left;
line-height: 34px;
white-space: nowrap;
border-radius: 0.2em;
font-size: 16px;
color: #FFF;
}
.loginBtn:before {
content: "";
box-sizing: border-box;
position: absolute;
top: 0;
left: 0;
width: 34px;
height: 100%;
}
.loginBtn:focus {
outline: none;
}
.loginBtn:active {
box-shadow: inset 0 0 0 32px rgba(0,0,0,0.1);
}
/* Facebook */
.loginBtn--facebook {
background-color: #4C69BA;
background-image: linear-gradient(#4C69BA, #3B55A0);
/*font-family: "Helvetica neue", Helvetica Neue, Helvetica, Arial, sans-serif;*/
text-shadow: 0 -1px 0 #354C8C;
}
.loginBtn--facebook:before {
border-right: #364e92 1px solid;
background: url('https://s3-us-west-2.amazonaws.com/s.cdpn.io/14082/icon_facebook.png') 6px 6px no-repeat;
}
.loginBtn--facebook:hover,
.loginBtn--facebook:focus {
background-color: #5B7BD5;
background-image: linear-gradient(#5B7BD5, #4864B1);
}
/* Google */
.loginBtn--google {
/*font-family: "Roboto", Roboto, arial, sans-serif;*/
background: #DD4B39;
}
.loginBtn--google:before {
border-right: #BB3F30 1px solid;
background: url('https://s3-us-west-2.amazonaws.com/s.cdpn.io/14082/icon_google.png') 6px 6px no-repeat;
}
.loginBtn--google:hover,
.loginBtn--google:focus {
background: #E74B37;
}
</style>
</head>
<body>
<div class="row" style="background:#2196F3;">
<div class="col-md-6">
<p class="pull-right" style="padding: 11px;font-size: 22px;color: white;">Access Code Hub In Web</p>
</div>
<div class="col-md-6" style="
padding: 11px;
">
<button id="quickstart-sign-in" class="loginBtn loginBtn--google ">
Login with Google to continue
</button>
</div>
</div>
<section ng-init="init()" class="blue-bg ng-scope" style="
background: url(https://a.slack-edge.com/d24e/img/apps/[email protected]) center center;
background-size: 1038px 432px;
min-height: 400px;
position: relative;
text-align: center;
z-index: 1;font-family: 'Comfortaa', cursive;
"><div class="container"><div class="row margin-top-70px" style="
margin-top: 0px;
"><div class="col-sm-6 col-xs-offset-0 text-center"><img width="409px" height="496px" class="img-responsive" src="assets/images/codehub.png"></div><div class="col-sm-6 col-xs-offset-0 text-left"><div class="width100p margin-top-60px" style="
margin-top: 110px;
"><h1 class="color-white" style="
font-size: 19px;color:white;font-family: 'Maven Pro', sans-serif;
">StudyOwl Presents<br></h1><h1 class="color-white" style="
font-size: 69px;color:white;
">CodeHub<br></h1><h2 style="color:white;font-family: 'Maven Pro', sans-serif;">Best way to Browse and Learn Programming</h2></div><div class="width100p margin-top-30px"><p class="color-white margin-bottom5px" style="color:white;">Available on Android, Get it on </p><a href="https://play.google.com/store/apps/details?id=trycodehub.com" target="_blank" analytics-on="click" analytics-event="google-play" analytics-category="google-play-button-in-header" class="link"><img class="img-responsive" ng-src="images/google_play.png" alt="" height="58px" widht="180px" style="margin-left:-5px" src="https://www.appsurfer.com/images/google_play.png"></a></div>
<p class="color-white margin-bottom5px" style="color:white;">Enter your 10 digit <b>India</b> mobile number and we'll send download link directly to your phone </p>
<input type="text" id="phone" name="phone" required placeholder="enter phone number" ><input type="submit" id="btnSubmit" value="Submit">
</div></div></div>
</section>
<section style="text-align: center;font-family: 'Comfortaa', cursive;background: #2196F3;">
<div style="
padding-bottom: 53px;
font-size: 69px;
color:white;
font-family: 'Comfortaa', cursive;
padding-top: 82px;
" class="center-block">
<h5>4 Million Students want to learn the programming in India, but for most of them english is a barrier, lets give them some hope... </h5>
<h2 style="text-align:center">India's First Mobile Application for Programming with multi-lingual support </h2>
<h3 style="text-align:center">Available in Hindi, Telugu & English </h3>
<h5>Coming soon in more languages</h5>
</div>
<img style="width: 600px;" class="img-responsive center-block" src="assets/images/multiplebig.png">
</section>
<section ng-init="init()" class="blue-bg ng-scope" style="
background: url(https://a.slack-edge.com/d24e/img/apps/[email protected]) center center;
background-size: 1038px 432px;
min-height: 400px;
position: relative;
text-align: center;
z-index: 1;font-family: 'Comfortaa', cursive;
"><div class="container"><div class="row margin-top-70px" style="
margin-top: 0px;
"><div class="col-sm-6 col-xs-offset-0"><div class="width100p margin-top-60px" style="
margin-top: 110px;
"><h1 class="color-white" style="
font-size: 69px;color:white;
">Offline Supported<br></h1><h2 style="color:white;font-family: 'Maven Pro', sans-serif;">Sync Once, Access Anywhere</h2>
<h5 style="color:white;
">*Chrome Browser Required</h5>
</div></div>
<div class="col-sm-6 col-xs-offset-0 text-center"><img ng-src="images/home_graphics.png" alt="" width="409px" height="496px" class="img-responsive" src="assets/images/offlineCodeHub.png"></div>
</div>
</div></section>
<section class="blue-bg ng-scope" style="
background:#081222;
text-align: center;
font-family: 'Comfortaa', cursive;
"><div class="container"><div class="row margin-top-70px" style="
margin-top: 0px;
"><div class="col-sm-6 col-xs-offset-0 text-center"><img ng-src="images/home_graphics.png" alt="" width="409px" height="496px" class="img-responsive" src="assets/images/doubts2.png"></div><div class="col-sm-6 col-xs-offset-0 text-left"><div class="width100p margin-top-60px" style="
margin-top: 110px;
"><h1 class="color-white" style="
font-size: 69px;color:white;
">Ask your Doubts<br></h1><h2 style="color:white;font-family: 'Maven Pro', sans-serif;">Get your doubts cleared with personal chat support from local developer community in your mother tongue. </h2></div></div></div></div></section>
<div class="center-block" style="color: white;font-family: 'Comfortaa', cursive;padding: 52px;background: #009688;">
<h3 class="text-center">Download Now</h3><a href="https://play.google.com/store/apps/details?id=trycodehub.com" target="_blank" analytics-on="click" analytics-event="google-play" analytics-category="google-play-button-in-header" class="link center-block"><img class="img-responsive center-block" ng-src="images/google_play.png" alt="" height="58px" widht="180px" style="/* margin-left:-5px */margin-left: none;" src="https://www.appsurfer.com/images/google_play.png"></a>
</div>
<div style="background:black;color:white;text-align:center;padding:10px;font-family: 'Comfortaa', cursive;">
© StudyOwl Education Private Limited
<p style="
padding: 15px;
">Part of <img src="https://verbalizeit-wordpress.s3.amazonaws.com/wp-content/uploads/2015/08/Fb_Start1.png" style="height: 46px;background: white;border-radius: 3px;padding: 5px;"></p>
<p><u>Messaging partners</u></p><a href="https://msg91.com/startups/?utm_source=startup-banner"><img src="https://msg91.com/images/startups/msg91Badge.png" width="120" height="90" title="MSG91 - SMS for Startups" alt="Bulk SMS - MSG91"></a>
</div>
<!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script>
<!-- Include all compiled plugins (below), or include individual files as needed -->
<script src="assets/bootstrap/js/bootstrap.min.js"></script>
<script>
// Initialize Firebase
// the script where you handle the form input.
$("#btnSubmit").button().click(function(){
var bla = $('#phone').val();
var url = "https://control.msg91.com/api/sendhttp.php?authkey=146838A2yEGMDEUn158db941b&message=Download%20Code%20Hub%20today%20..%20https://play.google.com/store/apps/details?id=trycodehub.com&sender=STDOWL&route=4&country=91&mobiles="+bla;
$.get(url, function(data, status){
alert("Data: " + data + "\nStatus: " + status);
});
alert("If mobile number is right, download link has been sent to your mobile number ");
});
</script>
</body>
</html>