setTimeout(() => {
win.close();
}, 100)
In most browsers, this method will block while the print dialog is open. However in more recent versions of Safari, it may return immediately
if (window.matchMedia && window.matchMedia('(prefers-color-scheme: dark)').matches) {
// dark mode
}
window.matchMedia('(prefers-color-scheme: dark)').addEventListener('change', e => {
const newColorScheme = e.matches ? "dark" : "light";
});
/* Light mode */
@media (prefers-color-scheme: light) {
body {
background-color: white;
color: black;
}
}
/* Dark mode */
@media (prefers-color-scheme: dark) {
body {
background-color: black;
color: white;
}
}
__EVENTTARGET:
__EVENTARGUMENT:
__LASTFOCUS:
__VIEWSTATE: ........
__VIEWSTATEGENERATOR: 0470EB9F
__EVENTVALIDATION: ..........
ctl00%24ContentPlaceHolder1%24OEMSearch: uuuuuuuuuuuuu
ctl00%24ContentPlaceHolder1%24OEMSearchbtn: Search
ctl00%24ContentPlaceHolder1%24OEMDistinct:
(() => {
const body = new FormData(document.forms.form1)
body.set('ctl00$ContentPlaceHolder1$OEMSearch', 'te')
fetch('./CrossReference.aspx', {
method: 'POST',
body,
}).then(r => r.text()).then(console.log)
})()
newString(v-for='(item, index) in stringslist.'
:key='item.id'
:info='item'
@delete-string="deleteString(index)"
@change="onChange(index, $event)"
clip-path: polygon(0 0, 100% 0%, 100% 83%, 0% 100%);
let str = '{Филиал:ГНС,Цех:ГНС,МестоХранения:Голосов А.Ю,МатериальноеЛицо:Семенко Т.Ф,Номенклатура:Ботинки кожаные,ВариантНоменклатуры:Ми,ЕдиницаИзмерения:пар,Количество:1},';
str = str
.replace(/^{/, '')
.replace(/},?$/, '')
.split(',')
.reduce((_, i) => {
let arr = i.split(':');
_[arr[0]] = arr[1];
return _;
}, {});
console.log(str);