Skip to content

Commit 4cdb896

Browse files
authored
Update timer.js
Fixed issue with about.
1 parent 6ebf31d commit 4cdb896

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

js/timer.js

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -781,6 +781,13 @@ btnEmail.addEventListener('click', function() {});
781781

782782
btnAbout.addEventListener('click', function() {
783783
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+
}
784791
});
785792

786793
txtMin.addEventListener('click', function() {
@@ -929,10 +936,6 @@ setTimeout(function() {
929936
'font-size': '1.25em',
930937
'display': 'inline'
931938
});
932-
933-
$('#bodyAbout').css({
934-
'height': `${($('#bodyAbout').height() * 100) / $('html').height()}%`
935-
});
936939

937940
$("#spanTitleAbout").append($("#titleAbout"));
938941

0 commit comments

Comments
 (0)