data = [[34225, "EK", Array(2)], [74322, "EK", Array(2)], [53769, "MH", Array(2)],[53281, "SU", Array(2)], [30178, "EK", Array(2)]]
data.sort((a, b) => a[0] - b[0])
Object.entries(arr.queues).forEach(([a, span]) => {
const q = document.querySelector(`a[data-queue="${a}"]`)
if(q) {
q.querySelector('span').textContent = `(${span.count})`
}
})
const http = require('http');
const server = http.createServer((req, res) => {
if (req.method === 'POST') {
// Handle post info...
}
else {
res.end(`
<!doctype html>
<html>
<body>
<form action="/" method="post">
<input type="text" name="fname" /><br />
<input type="number" name="age" /><br />
<input type="file" name="photo" /><br />
<button>Save</button>
</form>
</body>
</html>
`);
}
});
server.listen(3000);
const links = document.querySelectorAll('a') // ссылки
for (const link of links) {
const txt = link.textContent
link.outerHTML = `<span class="link">${txt}</span>`
}