function guessDate(str) {
const f = new Intl.DateTimeFormat('en-US', {
timeZone: 'Europe/Moscow',
hour: '2-digit',
minute: '2-digit',
hour12: false,
});
for (const offset of ['+03', '+04', '+02']) {
const d = new Date(`${str}:00${offset}:00`)
if (str.endsWith(f.format(d))) {
// console.log(offset, '\t', str);
return d;
}
}
}
+03 1980-06-01 12:00
+03 1980-12-01 12:00
+04 1981-06-01 12:00
+03 1981-12-01 12:00
+03 1991-06-01 12:00
+02 1991-12-01 12:00
+04 1992-06-01 12:00
+03 1992-12-01 12:00
+04 2011-06-01 12:00
+04 2011-12-01 12:00
+04 2014-06-01 12:00
+03 2014-12-01 12:00
+03 2015-06-01 12:00
+03 2015-12-01 12:00
let group_list = document.querySelectorAll('.option__group');
group_list.forEach(function(g_e)
{
if(g_e.querySelector('label').innerHTML == ' Цвет:' )
{
g_e.classList.add("displayblock");
}
else
{
g_e.classList.remove("displayblock");
}
});
u.id
это адрес сайта и автоматически заменил на соответствующий markdown-синтаксис ссылок. Такое может быть, например, при пересылке кода как обычного текста в мессенджерах.- let text = `{"content":"<svg width=\"133\" height=\"510\" viewBox=\"0 0 133 510\">"}`
+ let text = '{"content":"<svg width=\\"133\\" height=\\"510\\" viewBox=\\"0 0 133 510\\">"}'
console.log(JSON.stringify({content: '<svg width="133" height="510" viewBox="0 0 133 510">'}))
// '{"content":"<svg width=\\"133\\" height=\\"510\\" viewBox=\\"0 0 133 510\\">"}'
site:www.inkema.com "/images/cms/" filetype:pdf
googler "site:www.inkema.com /images/cms/ filetype:pdf" --json > files.json
<svg width='0' height='0'>
<defs>
<clipPath id='example' clipPathUnits='objectBoundingBox'>
<path d="M 0 0 a 1 1 0 0 0 1 1 h -1 v -1z"/>
</clipPath>
</defs>
</svg>
.example {
clip-path: url(#example);
}
<script setup>
const foo = ref('foo')
const bar = () => console.log('bar')
defineExpose({
foo,
bar,
})
</script>
<template>
<Child ref="child" />
</template>
<script setup>
const child = ref(null);
onMounted(() => {
console.log(child.value.foo)
console.log(child.value.bar())
})
</script>
<meta name="twitter:card" content="summary_large_image" />
<meta name="twitter:image" content="{IMAGE URL}" />
shell_exec
+ chromium
с флагами headless
disable-gpu
и print-to-pdf
отрисует вам что угодно, что может отобразить chrome.