.disable-hover,
.disable-hover * {
pointer-events: none !important;
}
var body = document.body,
timer;
window.addEventListener('scroll', function() {
clearTimeout(timer);
if(!body.classList.contains('disable-hover')) {
body.classList.add('disable-hover')
}
timer = setTimeout(function(){
body.classList.remove('disable-hover')
},500);
}, false);
Какие должны быть мои действия?
var path = require('path');
var express = require('express');
var app = express();
app.use(express.static(path.join(__dirname, './public'))); // если сайт лежит в папке public в корне проекта
app.listen(3000, function () {
console.log('Example app listening on port 3000!');
});
<?php
// script for cron
shell_exec('php script1.php > /dev/null 2>/dev/null &'); // run script1.php as background process
shell_exec('php script2.php > /dev/null 2>/dev/null &'); // run script2.php as background process
shell_exec('php script3.php > /dev/null 2>/dev/null &'); // run script3.php as background process
?>