switch (Model[i].Type) {
case EventType.Call:
className = 'my-class-call';
break;
case EventType.Meeting:
className = 'my-class-meeting';
break;
// ...
}
<a class="@className" id="user-event-@i" href="@Url.Action("Details", "Event", new { @id = @Model[i].Id })">
<div style="width: 100%; min-height: 110px; border-top: 2px solid #CFCED1; border-left: 1px solid #CFCED1; border-right: 1px solid #CFCED1; background-color: @backgroundColor; cursor: pointer;">
</div>
</a>
.my-class-call { ... }
.my-class-call:hover { ... }
.my-class-meeting { ... }
.my-class-meeting:hover { ... }
function replaceDash (string $str):string
{
$notDash = [
'‐',
'−',
'‒',
'⁃',
'–',
'—',
'―',
];
return str_replace($notDash, '-', $str);
}
git clone https://github.com/chrisjbillington/git-nautilus-icons.git
cd git-nautilus-icons
sudo apt-get install python3-gi python3-nautilus python3-pip
pip3 install --user git-nautilus-icons
nautilus -q
=
:server {
listen 8083;
root /www;
location = / {
# отдаём файл index.html
rewrite ^ /index.html break;
}
# всё остальное проксируем
location / {
proxy_pass http://localhost:8082;
...
}
}
const number = 123456.789;
new Intl.NumberFormat('ru-RU').format(number);
// "123 456,789"
по умолчанию { style: 'decimal' }
new Intl.NumberFormat('ru-RU', { minimumFractionDigits: 6 })
.format(123456.789012345);
// "123 456,789012" - после запятой не разделяет