Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
2
2021-136
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
2021-136
2021-136
Commits
7350d2db
Commit
7350d2db
authored
Nov 26, 2021
by
Ariyasuthan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Upload Front end
parent
3cd94f25
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
160 additions
and
0 deletions
+160
-0
Front End/QuestionRecommender.vue
Front End/QuestionRecommender.vue
+160
-0
No files found.
Front End/QuestionRecommender.vue
0 → 100644
View file @
7350d2db
<
template
>
<TopBar></TopBar>
<div
class=
"question"
>
<div
class=
"row justify-content-center"
>
<div
class=
"col-md-8"
>
<div
class=
"card"
>
<div
class=
"card-header"
>
Question Recommeder
</div>
<div
class=
"card-body"
>
<div
v-if=
"error"
class=
"alert alert-danger"
>
{{
error
}}
</div>
<form
action=
"#"
@
submit.prevent=
"submit"
>
<div
class=
"form-group row"
>
<label
for=
"questions1"
class=
"col-md-4 col-form-label text-md-right"
>
Enter 1st number:
</label>
<div
class=
"col-md-6"
>
<input
id=
"questions1"
type=
"number"
class=
"form-control"
name=
"questions1"
value
required
autofocus
v-model=
"questions1"
/>
</div>
</div>
<!--
<div
class=
"form-group row"
>
<label
for=
"questions2"
class=
"col-md-4 col-form-label text-md-right"
>
Enter 2nd number:
</label>
<div
class=
"col-md-6"
>
<input
id=
"questions2"
type=
"number"
class=
"form-control"
name=
"questions2"
value
required
autofocus
v-model=
"questions2"
/>
</div>
</div>
-->
<div
class=
"form-group row mb-0"
>
<div
class=
"col-md-8 offset-md-4"
>
<button
type=
"submit"
class=
"btn btn-primary"
>
Submit
</button>
</div>
</div>
</form>
</div>
</div>
</div>
</div>
</div>
</
template
>
<
script
>
import
{
projectFirestore
}
from
'
../firebase/config
'
import
TopBar
from
"
../components/TopBar.vue
"
export
default
{
name
:
'
Questions
'
,
components
:{
TopBar
},
data
()
{
return
{
questions1
:
''
,
questions2
:
''
}
},
methods
:{
submit
(){
let
questions
=
{
'
Questions
'
:
this
.
questions1
}
projectFirestore
.
collection
(
'
Question numbers
'
).
doc
(
'
selected
'
).
update
(
questions
).
catch
((
e
)
=>
{
console
.
log
(
e
)
})
this
.
$router
.
push
(
'
/quiz
'
)
}
}
}
</
script
>
<
style
scoped
>
*
{
box-sizing
:
border-box
;
font-family
:
"Montserrat"
;
min-width
:
70%
!important
;
}
section
{
height
:
100%
;
display
:
flex
;
justify-content
:
center
;
flex-direction
:
column
;
}
.card
{
border
:
rgb
(
94
,
45
,
94
)
solid
;
box-shadow
:
0px
0px
20px
#14021233
;
border-radius
:
8px
;
background-color
:
whitesmoke
;
height
:
350px
;
}
.question
{
width
:
60%
;
min-height
:
100%
!important
;
margin
:
0px
auto
;
padding
:
100px
;
}
.form-group
{
margin-top
:
20px
;
font-size
:
20px
;
color
:
#9e9e9e
;
}
.form-group
input
,
.form-group
textarea
{
width
:
50%
!important
;
height
:
50px
!important
;
padding
:
5px
;
font-size
:
18px
;
border
:
1px
solid
rgba
(
128
,
128
,
128
,
0.199
);
margin-top
:
5px
;
margin-bottom
:
85px
;
white-space
:
pre-wrap
;
overflow-wrap
:
break-word
;
overflow
:
hidden
;
}
textarea
{
resize
:
vertical
;
}
h4
{
color
:
black
;
font-size
:
large
;
text-align
:
center
;
}
button
{
background-color
:
cornflowerblue
;
}
.card-header
{
font-size
:
40px
;
}
</
style
>
\ No newline at end of file
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