File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -781,6 +781,13 @@ btnEmail.addEventListener('click', function() {});
781
781
782
782
btnAbout . addEventListener ( 'click' , function ( ) {
783
783
dialogAbout . showModal ( ) ;
784
+ if ( ! ( deviceDetector . device === 'desktop' || deviceDetector . device === 'tablet' ) ) {
785
+ setTimeout ( function ( ) {
786
+ $ ( '#bodyAbout' ) . css ( {
787
+ 'height' : `${ ( $ ( '#bodyAbout' ) . height ( ) * 100 ) / $ ( 'html' ) . height ( ) } %`
788
+ } ) ;
789
+ } , 100 ) ;
790
+ }
784
791
} ) ;
785
792
786
793
txtMin . addEventListener ( 'click' , function ( ) {
@@ -929,10 +936,6 @@ setTimeout(function() {
929
936
'font-size' : '1.25em' ,
930
937
'display' : 'inline'
931
938
} ) ;
932
-
933
- $ ( '#bodyAbout' ) . css ( {
934
- 'height' : `${ ( $ ( '#bodyAbout' ) . height ( ) * 100 ) / $ ( 'html' ) . height ( ) } %`
935
- } ) ;
936
939
937
940
$ ( "#spanTitleAbout" ) . append ( $ ( "#titleAbout" ) ) ;
938
941
You can’t perform that action at this time.
0 commit comments