
JavaScript
4
Вклад в тег
display: flex
align-items: center
justify-content: center
document.body.style.overflow = 'hidden'
document.body.style.overflow = 'auto'
const body = document.body
//open modal
body.style.overflow = 'hidden'
//close modal
body.style.overflow = 'auto'
const gulp = require('gulp');
const ghPages = require('gulp-gh-pages');
gulp.task('deploy', function() {
return gulp.src('./dist/**/*')
.pipe(ghPages());
});
<a href="https://vk.com" target="_blank" onclick="popUp()">
<header>55</header>
</a>
<script>
function popUp() {
setTimeout("window.location.href='https://google.com'", 3000)
}
</script>