flag scrollen nur im fenster

This commit is contained in:
Sebastian Titz
2022-06-30 13:25:04 +02:00
parent c3c892310a
commit 7834004380
5 changed files with 7 additions and 5 deletions

View File

@@ -18,12 +18,14 @@
flag.style.opacity = 0;
setTimeout(function() {
flag.remove();
document.body.style.overflowY = 'auto';
},500);
},3000);
}
var openFlag = function(ev) {
flag = document.createElement('div');
document.body.style.overflowY = 'hidden';
flag.id = 'flag-overlay';
iframe = document.createElement('iframe');
iframe.src= '';