File tree Expand file tree Collapse file tree 1 file changed +20
-2
lines changed Expand file tree Collapse file tree 1 file changed +20
-2
lines changed Original file line number Diff line number Diff line change 2525 </ul >
2626 <form class =" form-inline" role =" form" >
2727 <div class =" form-group" >
28- <input class =" form-control" type =" text" placeholder =" Your comments" v-model =" newcomment" />
28+ <input class =" form-control" type =" text" id = " box " style = " width : 300 px ; height : 20 px " placeholder =" Your comments" v-model =" newcomment" v-on:focus = ' textboxFocus($event) ' v-on:blur = ' textboxBlur($event) ' />
2929 </div >
3030 <div class =" form-group" >
3131 <!-- <button class="btn btn-default" v-on:click='submit($event)'>Add</button> -->
8181 this .newcomment = ' ' ;
8282 });
8383
84- }
84+ },
85+
86+ textboxFocus (e ){
87+ $ (e .currentTarget ).animate ({
88+ width: ' 150px' ,
89+ height: ' 100px'
90+ }, 500 , function () {
91+ // Animation complete.
92+ });
93+ },
94+
95+ textboxBlur (e ){
96+ $ (e .currentTarget ).animate ({
97+ width: ' 100px' ,
98+ height: ' 20px'
99+ }, 500 , function () {
100+ // Animation complete.
101+ });
102+ },
85103 },
86104
87105 beforeUpdate (){
You can’t perform that action at this time.
0 commit comments