Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
allCampaign
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
Administrator
allCampaign
Commits
c600e886
Commit
c600e886
authored
Aug 03, 2020
by
Chao Sun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
--prod
parent
1f06eff1
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
11 additions
and
8 deletions
+11
-8
questionnaire/.gitignore
+1
-0
questionnaire/package-lock.json
+0
-0
questionnaire/src/app/age/age.component.css
+7
-5
questionnaire/src/app/age/age.component.html
+3
-3
No files found.
questionnaire/.gitignore
View file @
c600e886
...
@@ -31,6 +31,7 @@ speed-measure-plugin.json
...
@@ -31,6 +31,7 @@ speed-measure-plugin.json
!.vscode/extensions.json
!.vscode/extensions.json
.history/*
.history/*
# misc
# misc
/.sass-cache
/.sass-cache
/connect.lock
/connect.lock
...
...
questionnaire/package-lock.json
View file @
c600e886
This source diff could not be displayed because it is too large. You can
view the blob
instead.
questionnaire/src/app/age/age.component.css
View file @
c600e886
...
@@ -50,10 +50,11 @@
...
@@ -50,10 +50,11 @@
}
}
.ageWrapper
#dot
{
.ageWrapper
#dot
{
position
:
absolute
;
position
:
absolute
;
height
:
4
5px
;
height
:
3
5px
;
width
:
1px
;
width
:
1px
;
background
:
#5566e9
;
background
:
#5566e9
;
z-index
:
1
;
z-index
:
1
;
top
:
66%
;
}
}
#dot
span
{
#dot
span
{
width
:
8px
;
width
:
8px
;
...
@@ -76,17 +77,18 @@
...
@@ -76,17 +77,18 @@
width
:
1.6666%
;
width
:
1.6666%
;
height
:
8px
;
height
:
8px
;
border-left
:
1px
#d5d5d5
solid
;
border-left
:
1px
#d5d5d5
solid
;
position
:
relative
;
}
}
.age
li
:nth-child
(
5
n
+
1
)
{
.age
li
:nth-child
(
10
n
+
1
)
{
height
:
15
px
;
height
:
20
px
;
position
:
relative
;
position
:
relative
;
width
:
1.6666%
;
width
:
1.6666%
;
border-left
:
1px
#d5d5d5
solid
;
border-left
:
1px
#d5d5d5
solid
;
}
}
.age
li
span
{
.age
li
span
{
position
:
absolute
;
position
:
absolute
;
top
:
15
px
;
top
:
20
px
;
left
:
-8px
;
left
:
-8px
;
}
}
questionnaire/src/app/age/age.component.html
View file @
c600e886
...
@@ -20,10 +20,10 @@
...
@@ -20,10 +20,10 @@
<div
id=
"dot"
[
ngStyle
]="{'
left
'
:
(
value2-20
)/
60
*
100
+
'%'}"
>
<div
id=
"dot"
[
ngStyle
]="{'
left
'
:
(
value2-20
)/
60
*
100
+
'%'}"
>
<span></span>
<span></span>
</div>
</div>
<input
style=
"position: absolute; opacity: 0
.5; left: 0;width: '100%' "
type=
"range"
[(
ngModel
)]="
value2
"
<input
style=
"position: absolute; opacity: 0
; left: 0;width: '100%';top: 58%;z-index: 2; "
type=
"range
"
(
ngModelChange
)="
selectAge
($
event
)"
min=
"20"
max=
"80"
step=
"1"
/>
[(
ngModel
)]="
value2
"
(
ngModelChange
)="
selectAge
($
event
)"
min=
"20"
max=
"80"
step=
"1"
/>
<h2
>
{{value2}}
</h2>
<h2
style=
"text-align: center;"
>
{{value2}}
</h2>
<!-- <div style="text-align: center;font-size: 36px;color:#5566e9;">{{value2}}</div>
<!-- <div style="text-align: center;font-size: 36px;color:#5566e9;">{{value2}}</div>
<nz-slider [(ngModel)]="value2" [nzDisabled]="disabled" [nzMin]='20' [nzMax]="80" [nzTipFormatter]="null"
<nz-slider [(ngModel)]="value2" [nzDisabled]="disabled" [nzMin]='20' [nzMax]="80" [nzTipFormatter]="null"
(ngModelChange)="selectAge($event)">
(ngModelChange)="selectAge($event)">
...
...
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