File tree Expand file tree Collapse file tree 4 files changed +612
-6
lines changed Expand file tree Collapse file tree 4 files changed +612
-6
lines changed Original file line number Diff line number Diff line change 2
2
< div class ="panel ">
3
3
< h1 > Guess the Color</ h1 >
4
4
< h2 > Number of colors: {{ colorsNumber }}</ h2 >
5
- < label for ="colors ">
6
- Enter number of colors and press Enter:
7
- < input id ="colors " type ="number " v-model ="colorsNumber " min ="2 " max ="10 " />
8
- </ label >
5
+ < input type ="number " :value ="colorsNumber " @input ="colorsNumber = $event.target.value " />
9
6
</ div >
10
7
</ main >
Original file line number Diff line number Diff line change 2
2
< div class ="panel ">
3
3
< h1 > Guess the Color</ h1 >
4
4
< h2 > Number of colors: {{ colorsNumber }}</ h2 >
5
- < input type ="number " :value ="colorsNumber " @input ="colorsNumber = $event.target.value " />
5
+ < label for ="colors ">
6
+ Enter number of colors and press Enter:
7
+ < input id ="colors " type ="number " v-model ="colorsNumber " min ="2 " max ="10 " />
8
+ </ label >
6
9
</ div >
7
10
</ main >
Original file line number Diff line number Diff line change 2
2
< div class ="panel ">
3
3
< h1 > Guess the Color</ h1 >
4
4
< h2 > Number of colors: {{ colorsNumber }}</ h2 >
5
- < input type ="number " :value ="colorsNumber " @input ="colorsNumber = $event.target.value " />
5
+ < label for ="colors ">
6
+ Enter number of colors and press Enter:
7
+ < input id ="colors " type ="number " v-model ="colorsNumber " min ="2 " max ="10 " />
8
+ </ label >
6
9
</ div >
7
10
< section class ="flex " v-if ="gameStarted "> Game is started</ section >
8
11
</ main >
You can’t perform that action at this time.
0 commit comments