File tree 2 files changed +4
-4
lines changed
2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 208
208
mediaRecorder . start ( ) ;
209
209
console . log ( 'Recording started, mediaRecorder state:' , mediaRecorder . state ) ;
210
210
211
- let seconds = 5 ;
211
+ let seconds = 2 ;
212
212
timerInterval = setInterval ( ( ) => {
213
213
document . getElementById ( 'timer' ) . innerText = seconds ;
214
214
seconds -- ;
236
236
237
237
console . log ( 'FormData:' , formData ) ; // Check the formData content
238
238
239
- fetch ( 'https ://csa-ai.stu.nighthawkcodingsociety.com /api/videos/upload' , {
239
+ fetch ( 'http ://localhost:8017 /api/videos/upload' , {
240
240
method : 'POST' ,
241
241
body : formData
242
242
} )
Original file line number Diff line number Diff line change 130
130
}
131
131
132
132
const signup_url = 'https://csa-ai.stu.nighthawkcodingsociety.com/api/person/createPerson' ;
133
- const login_url = 'https://csa-ai.stu.nighthawkcodingsociety.com/authenticate' ;
133
+ const login_url = 'https://csa-ai.stu.nighthawkcodingsociety.com/api/person/ authenticate' ;
134
134
135
135
function showErrorMessage ( message ) {
136
136
const errorAlert = document . getElementById ( "errorAlert" ) ;
184
184
document . cookie = "token=" + data . token + "; path=/" ;
185
185
console . log ( data )
186
186
if ( data . status !== 401 ) {
187
- window . location . replace ( "{{ site.baseurl }}/pages/dashboard .html" ) ;
187
+ window . location . replace ( "{{ site.baseurl }}/pages/aslsignin .html" ) ;
188
188
} else {
189
189
console . log ( "bad email and password" ) ;
190
190
showErrorMessage ( "Invalid email or password" ) ;
You can’t perform that action at this time.
0 commit comments