Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
projet-cdaw
Project
Project
Details
Activity
Releases
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Thibaut Felten
projet-cdaw
Commits
f5bf9b53
Commit
f5bf9b53
authored
Dec 03, 2020
by
Robin Borgogno
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
joinPrivate
parent
ba60d466
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
6 deletions
+2
-6
JoinPrivate.vue
frontend/src/views/JoinPrivate.vue
+2
-6
No files found.
frontend/src/views/JoinPrivate.vue
View file @
f5bf9b53
...
@@ -3,11 +3,9 @@
...
@@ -3,11 +3,9 @@
<LoginNavbar></LoginNavbar>
<LoginNavbar></LoginNavbar>
<div
class=
"row _centered"
>
<div
class=
"row _centered"
>
<div
class=
"column _600"
>
<div
class=
"column _600"
>
<form>
<tr><label
class=
"label"
>
Code de la partie :
</label></tr>
<tr><label
class=
"label"
>
Code de la partie :
</label></tr>
<tr><input
v-model=
"idgame"
class=
"codeGame"
id=
"codeGame"
required
></tr>
<tr><input
v-model=
"idgame"
class=
"codeGame"
id=
"codeGame"
required
></tr>
<tr><button
@
click=
"rejoindre()"
type=
"submit"
id=
"btn"
>
Rejoindre
</button></tr>
<tr><button
@
click=
"rejoindre()"
id=
"btn"
>
Rejoindre
</button></tr>
</form>
</div>
</div>
</div>
</div>
</div>
</div>
...
@@ -24,8 +22,6 @@ export default {
...
@@ -24,8 +22,6 @@ export default {
methods
:
{
methods
:
{
rejoindre
:
async
function
(){
rejoindre
:
async
function
(){
if
((
Number
(
this
.
idgame
)
!=
this
.
idgame
||
Number
(
this
.
idgame
)
<
0
)){
if
((
Number
(
this
.
idgame
)
!=
this
.
idgame
||
Number
(
this
.
idgame
)
<
0
)){
console
.
log
(
Number
(
this
.
idgame
)
!=
this
.
idgame
)
console
.
log
(
Number
(
this
.
idgame
)
<
0
)
return
return
}
}
const
url
=
"http://localhost/felten/projet-cdaw/backend/MVC/api.php/gameuser"
const
url
=
"http://localhost/felten/projet-cdaw/backend/MVC/api.php/gameuser"
...
@@ -41,7 +37,7 @@ export default {
...
@@ -41,7 +37,7 @@ export default {
game
.
id
=
this
.
idgame
;
game
.
id
=
this
.
idgame
;
let
response
=
await
fetch
(
url
,
params
)
let
response
=
await
fetch
(
url
,
params
)
console
.
log
(
response
)
console
.
log
(
response
)
this
.
$router
.
push
(
"/playerPrivate"
)
this
.
$router
.
push
(
"/playerPrivate"
)
}
}
},
},
components
:
{
components
:
{
...
...
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