Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
SkuciSe
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Tim 2 - 2022
SkuciSe
Commits
d5420220
Commit
d5420220
authored
Sep 21, 2022
by
Milovan Samardzic
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
frontKonacno.v2
parent
69ad2507
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
3 deletions
+16
-3
SkuciSe/src/main/resources/static/js/main.js
+13
-0
SkuciSe/src/main/resources/templates/chat.html
+1
-1
SkuciSe/src/main/resources/templates/register.html
+2
-2
No files found.
SkuciSe/src/main/resources/static/js/main.js
View file @
d5420220
...
...
@@ -119,4 +119,16 @@ function prikaziOglase(){
function
prikaziOcene
(){
document
.
getElementById
(
"div-oglasi"
).
style
.
display
=
"none"
;
document
.
getElementById
(
"div-ocene"
).
style
.
display
=
"block"
;
}
function
proveriBroj
(){
const
re
=
new
RegExp
(
'^[
\
+]?[(]?[0-9]{3}[)]?[-
\
s
\
.]?[0-9]{3}[-
\
s
\
.]?[0-9]{4,6}$'
);
let
val
=
document
.
getElementById
(
"brojTelefona"
).
value
;
if
(
re
.
test
(
val
))
{
console
.
log
(
"Dobar"
)
return
true
}
else
{
console
.
log
(
"Los"
)
return
false
}
}
\ No newline at end of file
SkuciSe/src/main/resources/templates/chat.html
View file @
d5420220
...
...
@@ -28,7 +28,7 @@
<div
class=
"form-group d-flex justify-content-start align-items-center flex-wrap w-100"
>
<div
class=
"col-9"
>
<textarea
id=
"private-message"
class=
"form-control m-2 w-100"
rows=
3
placeholder=
"Unesite poruku ovde..."
></textarea>
placeholder=
"Unesite poruku ovde..."
required
></textarea>
</div>
<div
class=
"col-3"
>
<button
id=
"send-private"
class=
"btn btn-primary m-1"
type=
"button"
>
Posaljite poruku
</button>
...
...
SkuciSe/src/main/resources/templates/register.html
View file @
d5420220
...
...
@@ -97,7 +97,7 @@
<div
class=
"form-content"
>
<div
class=
"form-items"
>
<form
class=
"requires-validation"
novalidate
th:object=
"${newUser}"
method=
"POST"
th:action=
"@{/register-proccess}"
enctype=
"multipart/form-data"
>
th:action=
"@{/register-proccess}"
enctype=
"multipart/form-data"
onsubmit=
"return proveriBroj()"
>
<div
class=
"col-md-12"
>
<input
th:field=
"${newUser.ime}"
class=
"form-control"
type=
"text"
name=
"name"
placeholder=
"Ime"
required
>
...
...
@@ -114,7 +114,7 @@
<div
class=
"col-md-12"
>
<input
th:field=
"${newUser.telefon}"
class=
"form-control"
type=
"text"
name=
"phone"
placeholder=
"Broj telefona"
required
>
placeholder=
"Broj telefona"
required
id=
"brojTelefona"
>
<div
class=
"valid-feedback"
>
Dobar broj!
</div>
<div
class=
"invalid-feedback"
>
Broj telefona ne sme biti prazan!
</div>
</div>
...
...
Write
Preview
Markdown
is supported
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