const validClasses = ['className', 'jobsWrapper'];
return [...el.classList].some(className => validClasses.includes(className));
function come(elem) {
var docViewTop = $(window).scrollTop(),
docViewBottom = docViewTop + $(window).height(),
elemTop = $(elem).offset().top,
elemBottom = elemTop + $(elem).height();
return ((elemBottom <= docViewBottom) && (elemTop >= docViewTop));
}
if (come("#section2")) {
...
}
data: {
dataform: []
},
data: {
dataform: {}
},
$json = file_get_contents('php://input');
$data = json_decode($json, JSON_BIGINT_AS_STRING);
print_r($data);