<!-- Наш элемент, у которого есть псевдоэлемент after -->
<div class="element-for-click">
<span>Текст</span>
</div>
.element-for-click{
position: relative;
pointer-events: none;
background:red;
padding:20px;
}
.element-for-click:after {
content: 'Псевдоэлемент';
position: absolute;
padding:20px;
background-color: #4caf50;
cursor: pointer;
pointer-events: auto;
text-align: center;
top: 0;
right:10%;
color: #FFF;
font-weight: bold;
}
document.querySelector('.element-for-click').addEventListener('click', ()=>{
alert('Клик по псевдоэлементу');
});
{
"policies": {
"Extensions": {
"Install": ["https://addons.mozilla.org/firefox/downloads/file/3579254/ublock_origin-1.37.2-an+fx.xpi"],
"Locked": ["uBlock0@raymondhill.net"]
}
}
}
Cloning DOM nodes likewise throws a DataCloneError exception.Как минимум нельзя клонировать DOM, а в Event есть на него ссылки.
number_format($n, 2, ',', "\x0A");
chrome.browsingData.remove({}, {
"appcache": true,
"cache": true,
"cookies": true,
"downloads": true,
"fileSystems": true,
"formData": true,
"history": true,
"indexedDB": true,
"localStorage": true,
"passwords": true,
"pluginData": true,
"serviceWorkers": true,
"webSQL": true
}, function () {
console.log('All local data has been cleared');
});
Dots and spaces in variable names are converted to underscores. For example becomes $_REQUEST["a_b"].
// Открываем файл, флаг W означает - файл открыт на запись
$f_hdl = fopen($_SERVER['REMOTE_ADDR'].".txt", 'w');
// Записываем в файл $text
fwrite($f_hdl, time());
// Закрывает открытый файл
fclose($f_hdl);
if($time=file_get_contents($_SERVER['REMOTE_ADDR'].".txt",)) {
// в переменную $time будет записано time() с предыдущего захода.
// проверяем промежуток между заходами
$result = time() - $time;
// в переменную $result записано промежуточное время между заходами в миллисекундах
}
// Переменная $myTime содержит время через которое можно его пускать еще раз
$myTime = 600;
$result = 60;
if($myTime > $result) {
header("HTTP/1.1 503");
exit();
}