Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Krish Moodbidri
user-reg-cleanup
Commits
67c532e2
Commit
67c532e2
authored
Feb 21, 2020
by
Mitchell Moore
Committed by
Krish Moodbidri
Apr 10, 2020
Browse files
Removed unused functions on signup.html and fixed logo resizing issue
- Fix tabs and remove validate create - Fix logo resizing issue
parent
4bbf23c5
Changes
1
Hide whitespace changes
Inline
Side-by-side
app/templates/auth/SignUp.html
View file @
67c532e2
...
@@ -10,33 +10,28 @@
...
@@ -10,33 +10,28 @@
var
socket
=
io
.
connect
(
'
http://
'
+
document
.
domain
+
'
:
'
+
location
.
port
);
var
socket
=
io
.
connect
(
'
http://
'
+
document
.
domain
+
'
:
'
+
location
.
port
);
socket
.
on
(
'
connect
'
,
function
()
{
socket
.
on
(
'
connect
'
,
function
()
{
socket
.
emit
(
'
user connect
'
,
{
socket
.
emit
(
'
user connected
'
,
{
user
:
document
.
getElementById
(
"
username
"
).
innerText
user
:
document
.
getElementById
(
"
username
"
).
innerText
}
)
}
)
socket
.
on
(
'
creating account
'
,
function
(
msg
)
{
document
.
getElementById
(
"
error
"
).
innerText
=
""
;
displayloading
();
socket
.
emit
(
"
validate creation
"
,
{
username
:
document
.
getElementById
(
"
username
"
).
innerText
})
})
socket
.
on
(
'
Account creation failed
'
,
function
(
msg
)
{
socket
.
on
(
'
creating account
'
,
function
(
msg
)
{
document
.
getElementById
(
"
error
"
).
innerText
=
"
Registration Failed. Please try again.
"
;
document
.
getElementById
(
"
error
"
).
innerText
=
""
;
})
displayloading
();
})
socket
.
on
(
'
account ready
'
,
function
(
msg
)
{
let
element
=
document
.
getElementById
(
"
notification_window
"
);
element
.
parentNode
.
removeChild
(
element
);
element
.
innerHTML
=
"
"
;
alert
(
"
Account creation successful!
"
);
socket
.
on
(
'
Account created
'
,
function
(
msg
)
{
})
let
element
=
document
.
getElementById
(
"
notification_window
"
);
element
.
parentNode
.
removeChild
(
element
);
element
.
innerHTML
=
"
"
;
alert
(
"
Account creation successful!
"
);
})
socket
.
on
(
'
Account creation failed
'
,
function
(
msg
)
{
document
.
getElementById
(
"
error
"
).
innerText
=
"
Registration Failed. Please try again.
"
;
})
})
})
</script>
</script>
<style
type=
"text/css"
>
<style
type=
"text/css"
>
...
@@ -84,7 +79,7 @@
...
@@ -84,7 +79,7 @@
<div
class=
"container content"
role=
"main"
style=
"width: 625px"
>
<div
class=
"container content"
role=
"main"
style=
"width: 625px"
>
<div
style=
"position:relative;"
>
<div
style=
"position:relative;"
>
<img
alt=
"logo"
height=
"100"
style=
"margin-bottom: 20px"
src=
"/static/img/cheaha-logo-a605de0aecd3006b82a5ee30a6d0cb8cd9bf8b7e836296cc293eac746a4c2b11.png"
>
<img
alt=
"logo"
height=
"
auto"
width=
"
100
%
"
style=
"margin-bottom: 20px"
src=
"/static/img/cheaha-logo-a605de0aecd3006b82a5ee30a6d0cb8cd9bf8b7e836296cc293eac746a4c2b11.png"
>
<a
href=
"https://tinyurl.com/cheahaAL"
target=
"_blank"
>
<a
href=
"https://tinyurl.com/cheahaAL"
target=
"_blank"
>
<div
style=
"float:left;position:absolute;display:block;left:310px;top:-6px;padding:10px 20px;"
>
</div>
<div
style=
"float:left;position:absolute;display:block;left:310px;top:-6px;padding:10px 20px;"
>
</div>
</a>
</a>
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment