File tree Expand file tree Collapse file tree 3 files changed +29
-4
lines changed Expand file tree Collapse file tree 3 files changed +29
-4
lines changed Original file line number Diff line number Diff line change 11< script type ="text/javascript ">
2+ // Show spacer div
3+ $ ( '#reply-control' ) . on ( 'shown.bs.collapse' , function ( ) {
4+ $ ( '#show-reply-form-when-visible' ) . css ( {
5+ height : '200px'
6+ } ) ;
7+ } ) ;
8+
9+ // Hide spacer div
10+ $ ( '#reply-control' ) . on ( 'hidden.bs.collapse' , function ( ) {
11+ $ ( '#show-reply-form-when-visible' ) . css ( {
12+ height : '0'
13+ } ) ;
14+ } ) ;
215
316 $ ( '.btn-comment-reply' ) . click ( function ( aE ) {
417 $ ( '#reply-control' ) . collapse ( 'show' ) ;
2033 } ) ;
2134
2235 function isElementInViewport ( aEl ) {
23- //special bonus for those using jQuery
36+ // special bonus for those using jQuery
2437 if ( aEl instanceof jQuery ) {
2538 aEl = aEl [ 0 ] ;
2639 }
5366
5467 var handler = fireIfElementVisible ( $ ( '#show-reply-form-when-visible' ) , callback ) ;
5568
56- //jQuery
69+ // jQuery
5770 $ ( window ) . on ( 'DOMContentLoaded load resize scroll' , handler ) ;
5871
5972</ script >
Original file line number Diff line number Diff line change 55 {{> includes/head.html }}
66 < link rel ="stylesheet " type ="text/css " media ="all " href ="/redist/npm/bootstrap-markdown/css/bootstrap-markdown.min.css ">
77 < style >
8- # show-reply-form-when-visible { height : 200px ; }
8+ # show-reply-form-when-visible {
9+ -moz-transition : height 1s ease;
10+ -ms-transition : height 1s ease;
11+ -o-transition : height 1s ease;
12+ -webkit-transition : height 1s ease;
13+ transition : height 1s ease;
14+ }
915 </ style >
1016</ head >
1117< body >
Original file line number Diff line number Diff line change 66 < link rel ="stylesheet " type ="text/css " media ="all " href ="/redist/npm/bootstrap-markdown/css/bootstrap-markdown.min.css ">
77 < link rel ="stylesheet " type ="text/css " media ="all " href ="/css/scriptPage.css ">
88 < style >
9- # show-reply-form-when-visible { height : 200px ; }
9+ # show-reply-form-when-visible {
10+ -moz-transition : height 1s ease;
11+ -ms-transition : height 1s ease;
12+ -o-transition : height 1s ease;
13+ -webkit-transition : height 1s ease;
14+ transition : height 1s ease;
15+ }
1016 </ style >
1117</ head >
1218< body >
You can’t perform that action at this time.
0 commit comments