.wui-select-container:has(input:disabled)::after {
}
props.medications
.filter(f => f.Purposes.findIndex(i => props.purpose === i.Purpose) > -1)
// Если ни одного нет, findIndex вернет -1,
// условие не выполнится и элемент отфильтруется.
c:\users\delph
cd c:\server\data\htdocs\project_dir
composer require ...
@if($manifestExists)
<link rel="manifest" href="{{ asset('manifests') }}/user.webmanifest">
@endif
https://programest.github.io/lang.json
https://programest.github.io/AdilPortfolio/lang.json
/lang.json
– слеш вначале означает, что путь к файлу на сервере будет определятся от корня, то есть грубо говоря от названия сайта, от домена. В данном случае от https://programest.github.io
<form action="receive_data.php" method="post">
<input name="username">
<button type="submit">Send</button>
</form>
<?php
$name = $_POST['username'];
$to = 'nobody@example.com';
$subject = 'the subject';
$message = 'hello '.$name;
$headers = 'From: webmaster@example.com';
mail($to, $subject, $message, $headers);
header('Location: /other_page.php');
box-sizing: border-box;
width: calc((100% - 30px * 2) / 3);
gap: 20px 30px;
.grid {
display: flex;
flex-wrap: wrap;
gap: 20px 30px;
}
.item {
box-sizing: border-box;
width: calc((100% - 30px * 2) / 3);
text-decoration: none;
color: #000;
padding: 20px;
border: 1px solid #000;
}
function makeItem(title) {
return `<a class="dropdown-item"><i class="icon icon-line-circle"></i><span>${title}</span></a>`;
}
fetch('../russia.json')
.then(response => response.json())
.then(json => {
const itemsHtmlString = json.map(item => makeItem(item.city)).join()
$('.search__city .dropdown-menu').html(itemsHtmlString);
});
const select = document.querySelector('select');// Берем первый селект на странице
select.addEventListener('change', () => {
switch (select.value) {
case 1:
select.style.border = '1px solid red';
break;
case 2:
select.style.border = '1px solid green';
break;
case 3:
select.style.border = '1px solid blue';
break;
}
})
document.querySelectorAll('select').forEach(select => {
select.addEventListener('change', () => {
switch (select.value) {
case 1:
select.style.border = '1px solid red';
break;
case 2:
select.style.border = '1px solid green';
break;
case 3:
select.style.border = '1px solid blue';
break;
}
})
})
/react-cat-energy-landing
как можно исправить эту проблему??
@mixin example() {
&::hover { color: red; } // Так можно
// но миксин можно использовать только внутри родительского селектора
}
&::hover { color: red; } // Так нельзя, нет родителя
.block {
&::hover { color: red; } // Так можно, есть родительский селектор (.block)
}
@include example(); // Так нельзя, внутри обращение к родителю, а его нет
.block {
@include example(); // Так можно
}